From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-24-2009 07:00 AM
Hello:
I'm adding new functionality to a very large Labview application. It requires creating new strict type enums that will be passed around to many sub vis. They are passed by value (controls to the child vi).
I would like to be able to modify just the subvi that takes the control rather than chase down all instances of where the enum is passed into the sub vi.
Inside the subvi I would like to be able to dynamically change the enum input to either the old type or the new type, make it a polymorphic sub vi. I've played around with Varients but no luck.
Thanks,
Mike
06-24-2009 07:13 AM
Hi, Mike,
Similar question was in discussion today:
http://forums.ni.com/ni/board/message?board.id=170&thread.id=418654
Andrey.
06-24-2009 08:47 AM
06-24-2009 08:59 AM
the application uses this sub vi many times. This sub vi takes in a strict enum as a control. I have to create a new enum that has new strings and number of elements and use that enum under certain conditions or still use the original enum control under certain situations.
I've followed the previous poster's link and that seems to be what I'm after but I try it out and can't seem to understand how to create a generic ref to the enum contol
06-24-2009 09:01 AM
06-24-2009 09:08 AM
yes, I have that has my plan B. I just have to keep the strings that match with the old in the same index I guess, thanks for your help. I will do it that way and save alot of hastle.
MIke