LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire analog signal and counter input as well as generate counter output simultaneously

I am trying to acquire analog signal as well as a counter input (for rpm measurement) and then generate a counter output (for sending PWM signals) all in the same vi and while loop. I have all in the same loop as I want the measurements to be synchronized. The counter input and output work fine in the same while loop but once I add the analog input task in the loop, I get only the analog input and the counter input tasks working with no response from the counter output task. I tried putting the counter output task in a separate while loop and even that did not work. Any suggestions as to how to resolve this? 

0 Kudos
Message 1 of 2
(238 Views)

Hi jkas,

 


@jkas wrote:

even that did not work. Any suggestions as to how to resolve this? 


How should we help with a generic description like "does not work"?

 

Do you get any errors?

 

Why don't you cleanup your VI?

I usually recommend to use one loop per task, so I would use 3 loops for your 3 DAQmx tasks…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(203 Views)