Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to export digital output pulse wave simultaneously?

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...

 

2020-07-13 160335.png

0 Kudos
Message 1 of 2
(1,378 Views)

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

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 2
(1,346 Views)