07-13-2020 02:05 AM
Hi, i have trouble using NI-9401.
I want to export digital output pulse wave simultaneously, such as DIO/line2 and DIO/line3 in NI-9401.
Shortly say, I hope export 1kHz sampling rate to DIO/line2 and 10kHz sampling rate to DIO/line3, respectively.
I tried 'DAQ assistant' and then convert to 'NI-DAQmx code make'. But in this code, i read only line2 or line3(The export line is change randomly while i repeat run and stop.)
I have deficient ability about labview and English so you may hard to understand my speech...
07-13-2020 09:23 AM
You won't be able to run 2 tasks with 2 different sample rates on a single module. The hardware doesn't support that.
A simple workaround is to put both digital lines into a single task at 10 kHz. Then expand the digital data you *intend* to output at 1 kHz by replicating every original point 10 times. Then when you output the expanded data at 10 kHz, the output signal will look like you wanted it to.
-Kevin P