LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange error in teststand from labview-vi

Solved!
Go to solution

Hello,

i have the attached vi "labview.jpg" that i call in Teststand.

But: There is see much more error-text what i never set in labview.

 

Where is this text coming from?

 

Thanks

Download All
0 Kudos
Message 1 of 2
(2,210 Views)
Solution
Accepted by topic author OnlyOne
Hey again OnlyOne!
The reason you're getting this output is because you've specified an error code which is already in use. 
Error Code 0:
FieldPoint:  Success
=========================
LabVIEW:  Error connecting to GPIB driver or device.
=========================
Motion:  No error.
=========================
NI SoftMotion:  No error.
=========================
NI-488:  Error connecting to driver or device.
=========================
VISA:  (Hex 0x0) Operation completed successfully.

In order to work around this you need to define your own custom error code for the 'V3 is Null' instance. This error code will need to be included with your future builds.

Defining a Custom Error Code:

  • Go to Tools > Advanced > Edit Error Codes
  • Choose Create New Error Code File
  • Choose a code to fit your new error within the range of -8999 to -8000, 5000 to 9999, or 500,000 to 599,999 so as to not overwrite an existing error code.
  • Add the error code text and save in the LabVIEW\user.lib\errors directory.
  • Using the Error Cluster from Error Code VI enter the value of your error code and wire a True Constant to the Show Call Chain input.

Use the Error Cluster from Error Code VI to generate your error.


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

Message 2 of 2
(2,187 Views)