Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2167

Digital Trigger Output with NI 9403 and NI cDAQ-9178

$
0
0

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!


Viewing all articles
Browse latest Browse all 2167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>