LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is control in Connector Pane ?

Sathish

Hi Ppl,

I'm using LabVIEW 2010. I came across the property node Is On Connector Pane which tells if the given control is connected on the connector pane. This is a Scripting node and is available only in Development environment. Is there are a way to get this info without using scripting, so that it works with the LabVIEW RTE ?
Thanks,
0 Kudos
Message 1 of 5
(3,049 Views)

Not as far as I know. What are you ultimately trying to determine? Why is this information necessary for you at run-time? Are you trying to detect if the input has been wired up at a higher level? If so, this is a fairly common question. Typically you'd set the control to some value which you know if invalid (such as NaN for floats) and then check the value in the subVI.

0 Kudos
Message 2 of 5
(3,045 Views)

@smercurio_fc wrote:

Not as far as I know. What are you ultimately trying to determine? Why is this information necessary for you at run-time? Are you trying to detect if the input has been wired up at a higher level? If so, this is a fairly common question. Typically you'd set the control to some value which you know if invalid (such as NaN for floats) and then check the value in the subVI.


 

addding too Saverio...

 

I recomend using the terminal option "required" for wires the sub-VI needs to operate. if the sub-VI has to be used in two ways, one wired and one not wired, then use Wrappers to call the target VI as you desire. You can go the next step infact and include the target VI in a library, make it private and mark the two rappers as public. That way your sub-VI can only be called the way you want.

 

Have fun,

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 5
(3,040 Views)

Hi,

Thanks for replying. I'm actually building a custom step type in TestStand. This could have set the Adapter to be the LabVIEW RTE. That is why I need it in the RTE. I need this info, as I'll have to set the Value of the control before the VI is executed. For controls tha are in the connector pane values will be passed by TestStand from the parameters set. So I'll have to make out if its in the connector pane or not. So that I can set the value. Hope this is clear.

 

Thanks,

Sathish

0 Kudos
Message 4 of 5
(3,035 Views)

Ppl any help on this. I have figured a round about approach. I'm able to get the list of controls on the connector pane using TestStand API's. The API I'm using is as follows

Step.Module(LabVIEWModule).Parameters.Item(<index>).ParameterName

 

Parameter Name gives me the control name thats on the connector pane. I wondering at this point, If TestStand if able to figure out if a control is on connector pane, I should be also abel to do it without using the scripting node.

 

Thanks,

Sathish

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