Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9401, delay in sending output signal in different channels

Solved!
Go to solution

I was messing around with a 9401 using LabVIEW's built in digital - continuous output example vi. I noticed that for every channel there is a delay from when the vi is run and the signal actually being sent. On channel 0 there's no delay but on channel 1 there's a delay equal to the pulse width and on channel 2 the delay is twice the pulse width, for channel 3, 3 times ect. 

Is this something built into the 9401, or is there something in code doing this that I missed? I plan on using 1 second pulses and having several second delays on some channels is not preferable.

0 Kudos
Message 1 of 3
(1,261 Views)
Solution
Accepted by topic author Joepeep

Hi,

 

That's because the output array is written that way. The output order is:

  1. 1: 00000001
  2. 2: 00000010
  3. 4: 00000100
  4. 8: 00001000

and so on... If you want all the channel to output  at the same time, try 255 as that would be 11111111.

 

0 Kudos
Message 2 of 3
(1,231 Views)

Thanks! This fixes the delay issue but now I can only get constant output although that's what I want in this case. 

0 Kudos
Message 3 of 3
(1,207 Views)