06-24-2019 04:31 PM
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!
Solved! Go to Solution.
06-24-2019 05:30 PM
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
06-25-2019 12:30 PM
Turns out DAQ didn't need counter. Thanks!