LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Suppress error from an instrument

Solved!
Go to solution

I'm am using a vi to communicate with a Tek TDP oscilloscope over GPIB. The vi's that I'm using, which come with the driver for the scope, read the pulse and period of a waveform. The problem is that I call the VI in a loop several times until I get the waveform that I want. Prior to the waveform that i want being generated there is no pulse at all so the vis' return an error. I would like to completely suppress this error. That is I dont want it displayed at all. Is there an easy way to do that. If there's a way to suppress all errors for the vi that would work, however I would prefer a method that would only suppress, ie not display, one particular error.

 

Thanks,

Chuck

Message 1 of 5
(3,765 Views)

Chuck,

 

Look at the Clear Errors vi and see if this does what you want.

 

-cb

0 Kudos
Message 2 of 5
(3,760 Views)
You could also unbundle the error cluster and only supress (use Clear Errors vi) those that you want to ignore.
0 Kudos
Message 3 of 5
(3,759 Views)
Solution
Accepted by topic author chuck72352

Actually, if you only want to suppress one error, I think the best way would be to use a Simple Error Handler (Dialog and User Interface Palette).  Set the error code at the top left to the error you want to ignore and the type of dialog to 0 and it will suppress only that error.

 

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




Message 4 of 5
(3,752 Views)

Thanks, that works perfect.

 

0 Kudos
Message 5 of 5
(3,718 Views)