LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Mathan

Automatically create constants/controls,indicators when dropping a subvi

Status: Declined

Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.

This idea specifically needed for instrument driver vis and may not for the common subvis.

 

So for every subvi in the instrument driver vis (say tektronix oscilloscope driver vis), we need to manually create the constants/controls and indicators everytime and instead if automatically when dropping the subvi from the palette, if all are created with some default values (off course with "View as icon" unchecked so that BD will be neat and readable) will save a lot of development time. Please comment.

 

Thanks,

Mathan

8 Comments
tst
Knight of NI Knight of NI
Knight of NI

I don't feel the need for this at all, but here are two options:

 

First, LV 2009 ships with a Quick Drop shortcut which allows creating all the controls and indicators for a subVI.

 

Second, if you want, you can create a merge VI for each VI where you want this. You can then place that VI in the palette, which will basically give you exactly what you want - you drop the VI from the palette and it's dropped with all the controls and indicators.


___________________
Try to take over the world!
Knight of NI

I would agree with tst.

 

Besides, how would you know that a VI came from an instrument driver library as opposed to some other library? It's not like instrument driver libraries have any special tattoos or anything.

muks
Proven Zealot
Yes.How would u distinguish the libraries then?
AristosQueue (NI)
NI Employee (retired)
I could see this being something that the author of the VI marked on terminals on the conpane... "Constant Wired By Default". The option would make the terminal have a constant created by default when the subVI is dropped on a diagram. ... it would go along with the somewhat rare but still interesting request for terminals that must be constants.
tst
Knight of NI Knight of NI
Knight of NI

> the somewhat rare but still interesting request for terminals that must be constants.

 

After two days I still can't decide whether this is a good idea or not, which I guess means I haven't managed to come up with a really good use case. I just have a nagging feeling that maybe this IS something I would like.


___________________
Try to take over the world!
G-Money
NI Employee (retired)

Mathan,

 

        Did the quick drop shortcut available in LV 2009 encompass the functionality you were looking for or do you think there needs to be more added to get what you need?

Mathan
Trusted Enthusiast

G-Money,

 

Give me a week. Ill explore more with LabVIEW2009 and let you know.

 

Regards,

Mathan

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.