NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

error 1055 prevention

Hi Guys,

 

If you have a funtion that has a reference but is not used every time, a 1055 error occurs from the refnum being invalid.  I want to test the reference when it enters the function so that none of the reference calls are used (case structure) but I don't I don't see any tools for testing a refnum.  Whats the best method for testing "is a refnum?

 

Regards,

 

Eximo  😛

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 1 of 3
(3,648 Views)

Hey Eximo,

 

This seems more like a programming issue than a TestStand issue, but if you are using LabVIEW as your code module you can use:notanumorrefnum.JPG

 

or 

notvalidrefenum.JPG

hope this helps.

BeauH
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,495 Views)

That may work.....but i'll just copy the code from the vi, maybe the use of a status to boolean will keep suppress the error, the biggest problem is if I use anything to check to see if the error exists, it causes an error, and stops the progress of the program.  I'll try and see if that works

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 3 of 3
(3,493 Views)