01-16-2012 05:32 AM
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?
01-16-2012 05:38 AM
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
01-16-2012 06:32 AM
ye, as you dscribe. Think i'll try increasing the dealy before read slighly.
01-17-2012 12:37 AM
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
01-17-2012 02:28 AM
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