LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to get my vi to trigger, not sure where to add the trigger

Solved!
Go to solution

I need a vi that can trigger using an analog rising edge (1V), then produces a square wave (any square wave will do for now), and then show the measurement of the waveform.  Attached is the code that I have made so far.  Not sure how to get a trigger attached, or where to place the trigger, onto what I have done so far.  Another question is where to have it triggered from, do I need to add another generate waveform to produce the trigger signal?

Any help is appreciated!!

 

-ncm
0 Kudos
Message 1 of 3
(2,310 Views)

BTW, I am using a NI USB 6351 for my DAQ.  Not sure if this helps any but wanted to include that.

-ncm
0 Kudos
Message 2 of 3
(2,295 Views)
Solution
Accepted by topic author ncm

Hi,

 

You can place a DAQmx start trigger VI in the code at the top, between the DAQmx Timing and DAQmx write VIs, and then set the trigger type to "Analog Edge" and specify the channel to trigger from (in this case I think you would use the APFI line on your card).  Check out the 'Voltage - Continuous Output' Example'  if you need help implementing this in code, that example covers analog output with different types of triggering in a setup similar to yours.

Message 3 of 3
(2,269 Views)