09-20-2018 10:41 AM - edited 09-20-2018 10:47 AM
Hi ,
do somebody know how to fetch one subvi's input and output parameters? I want to get the all the subvi's input and output parameters, then config it by mian vi. I made an example to show the controls that configured with terminals but it gets all the controls' name on the list.
Solved! Go to Solution.
09-20-2018 10:48 AM - edited 09-20-2018 10:49 AM
What exactly do you mean by subVI "arguments"? That isn't a term associated with LabVIEW subVI's.
If you are talking about the controls being present on the connector panel, you can us a scripting property node to determine if a control is on the connector panel.
09-20-2018 12:05 PM
I guess you are calling Labview module in TestStand
When Labview module is called you need to provide all the input values and variables to store output values
For detailed suggestion please provide more information on your requirement
09-20-2018 06:50 PM - edited 09-20-2018 06:51 PM
thanks both's reply, so sorry I didn't make the question clear.
I want to develop a function, the function can automatically fetch a subvi's input and output parameters and type, then I can config these parameters on GUI.
just like the labview module in teststand, if one LV vi loaded, the input and output parameters and data type are all displyed.
09-20-2018 09:26 PM
Like the others replying to this topic, I have no idea what it is that you want to do. When everyone is confused, it's usually because the request doesn't make sense. Perhaps if you could tell us why you want to do this, we can better understand your request (and probably come up with a solution that does make sense).
09-21-2018 12:04 AM - edited 09-21-2018 12:04 AM
Trying to understand your Query....!
If its TestStand Related please post the Query in https://forums.ni.com/t5/NI-TestStand/bd-p/330
When calling a VI in TestStand, it will display all the input and Output Parameters[Parameter Name, Type, In/Out, Log, Default, value].
For each Input Parameter you need to assign Value/a Variable Containing Value for that particular Node.
For Each Output parameter you need to assign a Variable where the Value Needs to be stored for Future Scope/analysis.
No you need to clear us on whats your requirement, what you want to achieve?
09-21-2018 07:04 AM
@jiaquwll wrote:
thanks both's reply, so sorry I didn't make the question clear.
I want to develop a function, the function can automatically fetch a subvi's input and output parameters and type, then I can config these parameters on GUI.
just like the labview module in teststand, if one LV vi loaded, the input and output parameters and data type are all displyed.
You can create a VI to get the input and outputs of another VI's connector panel. I showed you how to get whether a control is on the connector panel using a VI scripting node. There is another property node that will tell you if it is an indicator (output of VI) or control (input of VI).
But you aren't going to be able to configure these on a VI. You can't change between a control and indicator (actually you could, but you'll break that VI in the process).