06-24-2019
04:31 PM
- last edited on
10-20-2025
11:01 AM
by
Content Cleaner
Goal:
Output a finite waveform every time external trigger is detected (multiple times in a single run)
Problem:
I planned to modify this example: https://forums.ni.com/t5/Example-Code/NI-DAQmx-Retriggerable-Analog-Output-LabVIEW/ta-p/3996084
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
- last edited on
10-20-2025
11:02 AM
by
Content Cleaner
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!