I am using an NI USB-6363 daq and nidaqmx in Python.
The function which I want to achieve is, for a ~ 2 MHz digital counter input (square wave), I want to reduce its rate to ~ 1 MHz, by sending out an output pulse for every other input pulse (shape and duty cycle do not matter).
I imagine this can be done by resetting the counter input when it reaches 2, and send a counter output. There seems to be some instructions here: https://www.ni.com/en-us/support/documentation/supplemental/21/using-the-counter-output-event-property-in-ni-daqmx.html. However, this is in LabView and I am not so sure how to implement it in Python. Or more specifically, what kind of functions should I call?
Any help would be much appreciated! And please let me know if anything is unclear.