jamesdlee Posted November 30, 2011 Share Posted November 30, 2011 I am trying to setup a daqfactory routine to poll for the data and paramters from a TEI49i ozone instrument. I have the communications and am able to send commands and receive the data back (I am doing this within a sequence). However, the routine also needs to poll and receive data from a few other instruments (done in other sequences) and i want to make it so if one of them happens to be switched off the sequence does not crash, returns 'NAN' or some other flag for data it cannot get and carries on polling for data from the other instruments. I guess i'm basiocally asking how i can get daqfactory to treat not getting back data once it polls for it thrugh the serial port, without the sequence just crashing. Any help you can give would be much appreciated. Link to comment Share on other sites More sharing options...
AzeoTech Posted November 30, 2011 Share Posted November 30, 2011 Add a try/catch error handler around your comms to prevent the sequence from stopping. Then if there is a comms error, you can do something special. See section 5.19 in the help for more info. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.