ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net in XControl

Solved!
Go to solution

I'm doing a wrapper for .Net library.
Without X-control, everything works, here it is necessary to do the following:

net.png


There is a client and a widget. After the connection, you need to register a callback.
Such a scheme works.

I want to hide the ref in the X-control so that there are no .Net references outside .
I have a control on the front and I save the link in each cluster in the cluster:

facade.PNG

 


Connect maked as a separate method

connct.PNG


but when I call it, the link WFWidget is zero.
All other variables are successfully saved, but the link to the widget is lost.
How to save a link in Display State In cluster and use outside of facade?

0 Kudos
Message 1 of 2
(2,493 Views)
Solution
Accepted by topic author Artem.SPb

When you save a ref to the state cluster, you need to set the flag "state changed?", then everything works.

xc.PNG

Message 2 of 2
(2,465 Views)