Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital Trigger Output with NI 9403 and NI cDAQ-9178

Hello All,

I am currently using a NI cDAQ-9178 chassis, with a NI 9403 module, and a NI 9923 connector block. I have a pulse wave that is connected to PFI0 of the chassis to use as a trigger. I have connected a wire to the DIO channel 5 and it has a voltage divider conencted to it to reduce the output voltage from 5 V to 3.3 V. I want the DIO channel 5 output to be 0 V every time when the trigger goes to 0 V. In this system, a low bit pattern is 3.3 V and a high bit pattern is 0 V. Attached are some pictures of the oscilloscope screen and my code. The purple/pink is the pulse wave and the yellow is the output connected to channel 5. As you can see, it does trigger low, but it skips one until it goes to 0 V. I want this to go every time and to not skip one. The number of times the for loop is executed is just a placeholder and will be modified later. Any suggestions? Thanks!

0 Kudos
Message 1 of 2
(4,549 Views)

Hello

 

Did you create the task on NIMAX? Maybe you will need to review the task configuration. Check the sample rate.

 

Regards,

Héctor M.

0 Kudos
Message 2 of 2
(4,340 Views)