LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Retriggerable external digital trigger for analog output

Solved!
Go to solution

Goal:

Output a finite waveform every time external trigger is detected (multiple times in a single run)

 

Problem:

I planned to modify this example: http://www.ni.com/example/29787/en/

After downloading this example and testing it, I noticed a continuous output, even when I did not activate my external trigger at all.

 

Questions:

Why is there a continuous output signal when I start the program, despite the absence of any trigger?

Is there any way to modify waveform length coming out of the waveform buffer generation.vi (or function generator.vi)? It appears to always give a second's worth of data despite changing any of the input parameters

 

Any input is appreciated!

0 Kudos
Message 1 of 3
(2,210 Views)
Solution
Accepted by topic author azthlbs

The default values for that code example should have required a trigger signal at PFI0 before any samples were generated.  Did you change any of the config parameters on the front panel, even if you didn't change any of the code?

 

Also, what DAQ device are you using?   Some newer devices would support retriggering an AO task directly, without needing to do things indirectly with the counter task.  That would be a lot more straightforward if you have hardware to support it.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 3
(2,184 Views)

Turns out DAQ didn't need counter. Thanks!

0 Kudos
Message 3 of 3
(2,158 Views)