Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Create Errors

Hi,

 

I am reading some data from the serial port and then manipulating it. That is fine. However I do things like CRC and Length checks which I then compare with the packet received and output either a true or false. What I want to do is create some kind of error notification at the end that would be able me to take all the possible error inputs, check them and display if any error has occured. How can I achieve this?

 

So how can I say a false is an error from length or CRC. I do not want to use the  "Display message to user" function as I do not want the program to create any sort of pop up messages. 

 

I am using Labview 8.5

 

regards

Harshil.

0 Kudos
Message 1 of 3
(3,307 Views)

use the errorcluster to generate an error.

In the higher level program a decision must be made how to handle this error (ignore or display or just log)

That is fundamental because a lower level driver should indeed never use a popup window.

greetings from the Netherlands
0 Kudos
Message 2 of 3
(3,301 Views)

See:

http://zone.ni.com/devzone/cda/tut/p/id/3209

 

If you don't want a popup just wire an indicator to the error line. You can also look at the General Error Handler vi's help file that will explain how to use it.

 

Hope this helps

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 3 of 3
(3,301 Views)