From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview program DAQ setting

Dear all,

I make a Labview program using 3 DAQ for Angle, speed and torque measurement.

Analog Input channel, AI0 (DAQ3) for angle, AI1 (DAQ2) for speed and AI2 (DAQ3) for Torque.

I found that only DAQ 3 for Angle in working, DAQ2 (Speed) and DAQ 1 (Torque) are not working.

Please check for me where is the root cause.

Attached the project file for you to study.

 

Thank you.

best regards.

0 Kudos
Message 1 of 4
(812 Views)

Hello,

 

Physically you have 3 different DAQ, right ?

Do they have the same name in NI MAX? In your VI it seems you are calling 3 times the same device as the name is identical.

Using separate names would be better.

 

By not working you mean no data for Speed and Torque or same data as Angle?

Did you look at the error output ? As the Device 3 is first in the dataflow if an error occurs the rest will not be executed.

 

If possible, do not use DAQ assistant as it is hidding the issues.

Moreover you are using local variables into your loop to create the file data and they will have race condition. Please use directly the terminal to avoid this.

0 Kudos
Message 2 of 4
(809 Views)

Hi,

Physically , i used 1 DAQ only.

Speed and Torque data same as Angle data.

 

**Did you look at the error output ? 

Ans: Noted. I will check again any error shown in error panel.

 

 

**you are using local variables into your loop to create the file data and they will have race condition. Please use directly the terminal to avoid this.

Ans: Noted. i will use direct terminal.

 

best regards.

 

0 Kudos
Message 3 of 4
(794 Views)

If only 1 DAQ there is some chances that you have an error message saying that the device is reserved. 

Give us an update of that error cluster when available. 

0 Kudos
Message 4 of 4
(775 Views)