LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible for visa/labview to become confused?

I have an application that uses visa serial comms to read  quartzdyne sensors from a Qlink module. Two sensors are used. Each sensor measures both P and T. After approx 30 mins of operation it was noted/logged that Sensor A’s value reverts to sensor B’s labiew indicator, and sensors B’s values reverts to A’s indicators in labview. Like labview has becomes confused and swapped them over!

 

It reverted when labview was momentarily unable to read sensors A; the value was displayed in labview as ‘0’. I can live with a momentary loss, however i cant live with the values swapping over like that.

 

Is this something anyone has came across before?

0 Kudos
Message 1 of 5
(2,719 Views)

Are both sensors on there own com-port?

Or do the sensor sent interleaved data (sensorA,sensorB,sensorA,sensorB), if that's the case AND one of samples get's missed, then the data might be interpreted wrong.

 

Ton 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 5
(2,716 Views)

ye, as you dscribe. Think i'll try increasing the dealy before read slighly.

0 Kudos
Message 3 of 5
(2,710 Views)

The delay is not the most reliable way to handle such situations.

Does the messages sent from the devices have some identifier?

Or you could read a specific number of characters, or up until a message seperator.

 

Ton 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 5
(2,687 Views)

ye, i had actually decided afterwards  to use the advacned visa  controls to wait for an linefeed event. will try that today.

 

cheers for your advice

0 Kudos
Message 5 of 5
(2,681 Views)