From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

NI DAQ 6361 Generate voltage upon trigger and stop generation upon stop trigger

I have been working to generate a voltage upon trigger, where upon the voltage detected on the analog input reaches 2.0V, a voltage will be generated in the output. However, when the voltage detected on the analog input is below 2.0V, no voltage will be generated in the output.

 

I have been thinking about using DAQmxCfgDigEdgeStartTrig() function to start the trigger, but how do i stop the trigger?  So far what I have found out are reference triggers to stop voltage acquisition.

 

Is there any way to stop voltage generated at the stop signal?

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

I would like to clarify that once the trigger condition(the falling edge) is met, the voltage output will stop.

 

How do I do that?

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

I'm not totally clear what you mean by "voltage output will stop" does that mean output 0 Volts or are you trying to tristate the output?

 

Would something like this work:

https://forums.ni.com/t5/Example-Programs/DAQmx-Generate-Acquired-Data-Software-Timed-Single-Point/t...

If you are looking for a hardware based solution maybe the folk over at Multifunction DAQ could help out.

My inclination is to checkout the "analog triggering" section in this article:

http://www.ni.com/tutorial/4329/en/#toc3

to generate a trigger for your analog output.

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