02-02-2020 07:43 PM
Hi,
I recently created a program to create an analog waveform (a square pulse wave with a linear ramp-down). The entire wave lasts for 3 seconds, and I want to align it with another digital output signal. What is the best way to achieve this?
Thanks!
Solved! Go to Solution.
02-02-2020 08:10 PM
Depending on your specific case, you probably want either
Do you just want them to start at the same time, or is there some other requirement.
These can both be carried out with the use of the DAQmx nodes if you're using DAQmx.
Take a look at the Timing (sample clock input) and Triggering VIs.
02-02-2020 08:20 PM
Thanks, that helps a lot since I didn't know how to look up the solution for my problem.
Yes I want them to both start at the same time, though my analog signal will end up longer than my digital. My analog output looks something like the attached file (source: https://forums.ni.com/t5/LabVIEW/Generate-analog-waveform-based-on-data-file/td-p/1791840). My digital signal is just a square pulse wave.
02-02-2020 09:00 PM
Ok, so you should set the digital task as the (start) trigger for the analog task.
You might need to use the matching "PFI<n>" name rather than the physical channel, which is something like /port0/line1 etc.
You can see which is the PFI value on the module, or I think via MAX.
Don't use a shared sample clock if the outputs are of different durations 🙂
02-02-2020 09:20 PM
Okay thanks!