VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Control refnum in a custom device

Solved!
Go to solution

I'm actually developing a custom device for Veristand 2011 with Labview 2011.

It's a Inline model.

During the Initialization (and only in the init step), I'm trying to list recursively all controls inside a Cluster (representing a data structure).

This does not work when trying to deploy the veristand project. I get the 1055 error code:

 

Error 1055 occurred at an unidentified location
Possible reason(s):

LabVIEW:  Object reference is invalid.

 

 

I've tried this simple example and I cannot get the control's name or any other prperty.

 

I've tried the same code in a labview RT project and that works perfectly.

 

Is there something I missed?

 

 

0 Kudos
Message 1 of 3
(6,040 Views)
Solution
Accepted by topic author Rondin
I don't think RT code when run in a built exe like NI VeriStand has a front panel. Therefore code like this won't work. If you build your test vi into an RT EXE do you get the same problem?

why do you have this code? perhaps we can find an alternative
Stephen B
Message 2 of 3
(6,017 Views)

Sorry for replying so late! I've had some "unxepected errors" trying to post my answer.

 

Indeed! You're right. I've tried again in a Labview Project, building and deploying a RT exe instead of running the test code under the Labview environnement. It didn't work. 

I've also tried to uncheck the "remove front panel" checkbox in my example RT Exe build specification under ther "Source File Settings" section. It didn't work neither. I'm wondering if this setting is relevant in a RT exe.

 

I've already found a workaround using the Open G library. It worked in my Veristand project but it's not as recursive, smart nor efiicient as a I would expect.

 

 

 

0 Kudos
Message 3 of 3
(5,938 Views)