From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XControl losing reference to component control

I have an xcontrol which in the exec state change I bundle a reference to the table which is contained within that xcontrol. If I put a probe there, the reference is valid. However, when I execute a method (shown in the bottom part of the diagram) the reference is 0 and throws an error. Is LabVIEW "doing me favors" again, or am I doing something incorrectly?

 

0 Kudos
Message 1 of 4
(2,234 Views)

Greg,

 

Would you mind posting the exact error that you're facing?

 

Also, is your VI available for viewing?

 

Regards,

 

-Larry H.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,210 Views)

Greg,

 

I'm running into a similar problem: queue and notifier references that I'm storing in the state data are becoming invalid.

 

Did you every solve your problem?  I'd be very interested in the solution you found.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 3 of 4
(2,169 Views)

For anyone else who runs across this problem I did figure out what I was doing wrong...

 

Anytime you change the State Data of your XControl you MUST remember to set the State Changed? field of the Active cluster in your Fascade.

 

Sometimes it's the little things you forget......

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 4 of 4
(2,160 Views)