LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When performing serial communication in error stream, there are three elements:status,code,source.

I want to know this three element represent what is the meaning?Every value represent Significance .

0 Kudos
Message 1 of 8
(3,615 Views)

Status is a boolean that is true when an error occurred and false when no error occurred. It tells you if an error occurred.

Code is an error code tha you can look up (e.g. right-click...explain error). It tells you what kind of error occurred.

Source is a text field that can contain information on where the error occured.

0 Kudos
Message 2 of 8
(3,613 Views)

If the "status" is false but there is some information in the "source" then it is considered a warning.

0 Kudos
Message 3 of 8
(3,605 Views)

The first place to look for information like that is the Context Help window. Everything altenbach told you is available there. It is good to get into the habit of keeping that window open while programming.

 

Lynn

0 Kudos
Message 4 of 8
(3,597 Views)

I want to know that every "code" represent meaning,how to search it.

0 Kudos
Message 5 of 8
(3,577 Views)

In the upper right part of the main LabVIEW Forum, there are links to LabVIEW tutorials.  View all of them and you will not have to ask such basic questions.

 

Bob Schor

0 Kudos
Message 6 of 8
(3,566 Views)

You want us to explain several million error codes to you? 

 

Go to Help->Explain Error and start typing them in one by one.  You'll get explanations there.  Don't forget to look at the negative values as well.

0 Kudos
Message 7 of 8
(3,551 Views)

@zhang519 wrote:

I want to know that every "code" represent meaning,how to search it.


Let's see here.  I typically run into:

7 - File not found (try to open a file that does not exist)

10 - Duplicate path (try to create a path that already exists)

1 - Input parameter invalid (typically from an invalid reference)

 

Beyond that, I'm using the Righ-click on the error cluster that is showing the error and selecting "Explain Error".


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 8
(3,546 Views)