LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6351 Analog IN / Digital OUT simultaneously

Solved!
Go to solution

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!

0 Kudos
Message 1 of 3
(1,763 Views)
Solution
Accepted by topic author spongysponge

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.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(1,757 Views)

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.

0 Kudos
Message 3 of 3
(1,705 Views)