07-07-2020 03:08 AM
Hello everyone,
i am using LabVIEW 2018 and a USB-6351 device to controle a stepper motor with a step/direction interface and to read an analog input. Right now i move the motor, then take a measurement, move the motor again, take another measurement etc.
This works but the start/stop of the motor adds some unwanted vibration to my system.
Is there a way to do both things (digitsl waveform for the motor, read analog input) simultaneously? If so, how do i do that?
Thanks in advance!
Solved! Go to Solution.
07-07-2020 03:17 AM
Hi sponge,
@spongysponge wrote:
Is there a way to do both things (digitsl waveform for the motor, read analog input) simultaneously? If so, how do i do that?
Create your two DAQmx task (DO, AI) and run them in parallel…
(You might look into syncing them, as explained in the example VIs found in the example finder.)
07-07-2020 03:43 PM
Thank you GerdW,
much easier than i thought. I tried to press it in to one task, which is obviously not how it works. Your solution works like a charm, looking into the syncing next.