Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69079

XControl strict reference

$
0
0

I have an XControl and I'd like to be able to launch a configuration VI asynchronously which calls methods and sets / reads properties of the XControl for configuration.

 

I can create a strict reference to the XControl (Control, not library) on the sub-VI.  I can then wire this reference to an Invoke node and invoke the XControl methods or access the XControl properties.  So far so good.

 

But then I wanted too much.  I wanted to launch this VI asynchronously from within the XControl itself (right-click menu - Configure).  Here is the problem.  I have NO strict reference to the control itself.  I can try to get the control reference from the FP of the owning VI but it is NOT strictly typed.  I don't know if a "cast to more specific" will work in the sub-VI.  I'm currently trying it out.

 

Once I start trying to do things like this, LV regularly crashes on me.  I'm clearly doing something which is beyond the defined scope of XControls and something somwhere is getting very upset about what I'm trying to do.

 

What to do?  Shouldn't we be able to get a strictly-typed reference to an XControl Control (as opposed to the Library) within the facade VI?  If not, why not?

 

Shane.


Viewing all articles
Browse latest Browse all 69079

Trending Articles