LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error List as txt file

I have written a DLL for comunicating with a serial device. The problem is, that error messages can only be transfered as error code, which is not very meaningfull. With a text list of error codes with explanations it would be possible to generate an error messages. Does anybody know if such a list exists?

 

EPH

0 Kudos
Message 1 of 17
(2,983 Views)

Hi eph,

 

just look at the functions in the Dialog & UI functions palette. After reading the help for each of them you create your own error code descriptions

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 17
(2,982 Views)

just look at the functions in the Dialog & UI functions palette. After reading the help for each of them you create your own error code descriptions

Thank you for the answer, but this doesn't help. I do not want to create a list, because there are several error codes and this would take much time. My question was, if this list is already there, in LV or in the web/forums.

 

EPH

0 Kudos
Message 3 of 17
(2,973 Views)

Hi EPH,

 

how can there be a list for your DLL written by you? It's your DLL, so you have to create that list…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 17
(2,966 Views)

I don't want to create new error codes.  It is that my DLL comunicates via VISA with the serial port. And therefore some of the VISA-errors might occur. I send this error codes to the application, that uses the DLL. And at this point I want to generate a text message instead of "code -107...."

To make it clear: I want to use the build-in error codes.

 

EPH

0 Kudos
Message 5 of 17
(2,953 Views)

Sounds like you want to use Error Cluster From Error Code and then use the General Error Handler.


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 6 of 17
(2,951 Views)

Sounds like you want to use Error Cluster From Error Code and then use the General Error Handler.

No.

What I am searching for is a list like the following:

-107.....     Port doesn't exist

-107....      Port in use

-107....

....

 

EPH

0 Kudos
Message 7 of 17
(2,949 Views)

Hi EPH,

 

either copy the LabVIEW help or vreate your own list like this:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 17
(2,944 Views)

Hello GerdW,

 

that might help, thank you. But I have supposed, that such a list exists in LV.

 

EPH

0 Kudos
Message 9 of 17
(2,941 Views)

Hi EPH,

 

the LabVIEW help lists all error numbers. You just need to read and copy the help…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 17
(2,933 Views)