LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make DO TTL pulse with sample clock

Hello,

I am currently a student studying LabVIEW. I am using the NI 9401 DIO module to output a DO signal, and I have two requirements:

  1. A TTL pulse should be output when a Boolean button is pressed.
  2. The TTL pulse should be output at a constant 16 Hz.

I wrote a code to meet these two conditions, but I am currently facing an issue:

When I set the value to true in the case structure in the block diagram, and also set the Boolean button on the front panel to true before running the code, the TTL pulse is output at 16 Hz. However, even if I press the button again to change the value to false, the signal does not stop.

Also, if the case structure and the front panel are not pre-configured as mentioned above, the signal does not output, and the button does not respond when pressed.

It seems like the Boolean button's value is not being properly passed into the case structure, but I'm not sure how to resolve this issue.

I would appreciate your assistance.

Thank you.

0 Kudos
Message 1 of 1
(215 Views)