LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically set blank connector pane

Solved!
Go to solution

OK, I found this:

 

>To use call by reference for Vis with different, unknown connector panes,

>use Get/SetControlValue methods to set inputs & outputs instead of wiring

>to connector pane in Call by Ref; and force Vis to conform to "blank"

>connector pane (this can be set programmatically).

 

I'm getting and setting control values just fine as long as the vi that is called by reference has the same connector pattern and that all terminals are disconnected.  Any body know how to achieve the second part of this information (ie disconnect all terminals programmatically)?

 

If you can programmatically set the pattern of the referenced vi that would be even more snazzy or better yet, read the pattern and be able to create a strict typed reference to it, (knowing I would prefer to not worry about the exact pattern/connections of the vi's i'm calling).

 

 

 

 

0 Kudos
Message 1 of 4
(2,900 Views)
Solution
Accepted by topic author beavercreek
You should use VI server method "Run", instead of the call by reference. The
only reason to use Call By Reference, is to make use of the connector pane.
If you're not using this feature, use the Run method instead.

Set the wait to true, and the autodispose ref. also to true, and it does
exactly the same as a call by reference, without the pane feature.

Regards,

Wiebe.


Message 2 of 4
(2,867 Views)

I agree with wiebe, however the property you are looking for is: Connector Pane:Set Property

 

 

0 Kudos
Message 3 of 4
(2,866 Views)

"Christian_M" <x@no.email> wrote in message
news:1223979015647-791773@exchange.ni.com...
> I agree with wiebe, however the property you are looking for is: Connector
Pane:Set Property&nbsp;&nbsp;

That is the right property. I never used it... Didn't even now it was there!
Probably because it's new in 8.5.

It seems that all the names of all controls and indicators need to be the
same as the strict typed vi reference.

Also, it won't work in executables, or running VI's.

Regards,

Wiebe.



Message 4 of 4
(2,845 Views)