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
(188 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
(185 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
(170 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
(151 Views)