08-04-2014 03:10 PM
I am in a situation where I need to use subpanels to dynamically link subVIs for data entry. I also like to have the calling VI be able to modify the strings[] parameter of several of the enums in the subVI, but this does not appear to be possible as the subVI is not in edit mode. Does anyone know of a way around this?
I'm reading data from a file to initialize the enums, so I could have the subVI read the file instead, however I was hoping to do it once in the main VI and send the strings to the subVIs to speed up execution.
Thanks!
Solved! Go to Solution.
08-04-2014 03:14 PM
Use rings instead of enums.
08-05-2014 06:38 AM
derekemuff wrote:
I'm reading data from a file to initialize the enums, so I could have the subVI read the file instead, however I was hoping to do it once in the main VI and send the strings to the subVIs to speed up execution.
That's impossible. Enums are set in stone at runtime. Oh wait, you are trying to use scripting at run-time. Sorry, that doesn't work. Notice that the property node for the Strings[] for the enum is blue? That tells you that it is a scripting node and only useful for editing VIs during edit time.
As RavensFan said, you need to use a Ring. Their data type is an actual number.