LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable number of outputs and output labels for Express VI

Hi I am building an express VI:

In which, expandable terminal has to change its name (label) according to the name given by the user in the control of Configuration VI.

It also needs to change the number of expandable terminals (e.g. from 5 to 10) if user wants to change from Configuration VI.

 

Is it possible? How?

0 Kudos
Message 1 of 7
(3,083 Views)

What exactlly do you mean by expandable terminals here? which express vi are you using?

0 Kudos
Message 2 of 7
(3,076 Views)

Hi,

 

I am creating a new VI from an existing VI, from create or edit express VI.

 

Does this help? If not, I will clarify further.

0 Kudos
Message 3 of 7
(3,071 Views)

Expandable terminals: Specifies whether the corresponding terminal is an expandable terminal in the new Express VI. Expandable terminals are controls and indicators that you can configure from the block diagram.

0 Kudos
Message 4 of 7
(3,067 Views)

I only experimented with the express VI creation tools, and that was a long time ago, so I'm hardly the best person for answering this.

 

That said, I assume that when you close the configuration dialog, you get an option to run code which modifies the created subVI. I'm assuming you will need to write your own scripting code which will rename the terminal labels (this would require the subVI to be in edit mode) and add them to the connector pane, then resize the express VI node.

 

Scripting is relatively complex and undocumented (at least in 8.6 and 2009. In 2010 it's now an official part of LV), but you can start with it by searching this site for the LV APIs group. In older LV versions, accessing scripting can be more complicated.


___________________
Try to take over the world!
0 Kudos
Message 5 of 7
(3,051 Views)

Yes, the control data of configuration VI provides change in the souce VI to change number of output terminals that needs to be connected to the connector pane and these connectors of connector pane needs to become expandable terminal( Terminal to grow/ type of terminal that can be wired).
But as I mentioned the expandable terminals will come out from variable that depends on the choise of user (who changes control data in configuration VI).
 
Another problem is as these expandable terminals are changeable, they do not have the same names (labels) always. Because names depend upon the input file to the Source VI. So how to change labels of those terminals according to the input file?
 
I have the source VI and configuration VI ready. They lack these two issues mentioned above. Kindly let me know, what do I need to do?
 
Can you explain a bit more about VI in editable mode?

0 Kudos
Message 6 of 7
(3,027 Views)

You can learn about how to do scripting here: http://decibel.ni.com/content/docs/DOC-4973  and it will walk you through how to generate VI code by running a VI.

National Instruments
Applications Engineer
0 Kudos
Message 7 of 7
(3,012 Views)