Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Read Write Errors, How to Ignore

Helllo All,

 

I'm trying to monitor up to 8 units via serial ports.  I do interrogate one port at a time.  My problem comes from this:

 

How do I keep a UUT dropout from interrupting my test for the other 7 units?  

 

I get a serial read error each time I interrogate a unit that has failed.  I still need to ping this unit to deterimine if it recovers.  I have automatic error handling turned off.  I try to just use the error cluster to catch the errors.  Unfortunately, on about the 3rd time a failed unit is interrogated, Labview pops up an error message that asks to continue or stop the execution.  

 

I've attached the printout of a serial read vi that I use extensively.  I also attached a jpg of an example sequence pane where its used.  

 

Thanks! 

Download All
0 Kudos
Message 1 of 3
(3,649 Views)

Hi

 

I would open up all 8 ports and write to each of them.

Then I would always use bytes at port to check if already bytes have arrived at these ports.

If so I would issue the read command for that port, and get the data.

 

In this way no errors are necessary.

greetings from the Netherlands
0 Kudos
Message 2 of 3
(3,645 Views)
Great!  Thanks for the advice.  I found some examples and I think this will solve my issues.  It will even give me a way to indicate an error condition.
0 Kudos
Message 3 of 3
(3,629 Views)