LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

'daqmx Stop Task' Causes program to Freeze

Hello All,

 

I have an issue where my program freezes/hangs as soon as it enters the daqmx Stop Task VI.

See the VI snippet below.

 

I have other data acquisition loops in the same vi but it's only this one (analogue input) which causes the program to hang.

 

It also happens if  I take away the Stop Task and leave the only the Clear Task.

 

Seems as if there's something related to that particular task which causes it to take a long time to clear the task.

DAQmx Issue.png

 

Any suggestions would be great help.

 

Thanks

Rhys

0 Kudos
Message 1 of 2
(2,752 Views)

What DAQ hardware do you use? Can your single module (cDAQ1Mod1) simultaneously measure voltage and current? Before the while loop you configure 8 voltage AI, and 8 current AI DAQ, but in your while loop you only read the voltages as I see?

Since you do not show the whole code, I am not sure what is wrong...Are you sure the DAQmx Stop task / Clear task make your VI hang?

0 Kudos
Message 2 of 2
(2,704 Views)