06-23-2009 09:27 AM
Hi,
I'm trying to modify the OpenG changed? subVI (shown below) so that it will write the new value of the variable sent to "Variant" if changed to disk (using the config VI suite). To do this I need to somehow extract the variable name of the variable (any type) which has been connected to the variant input of the changed? subVI by the calling VI so that I can use it as a key name. Is this possible? Is this information even forwarded to the subVI?
Solved! Go to Solution.
06-23-2009 10:02 AM
06-23-2009 10:03 AM
If you are using openg, there is a 'Get Data Name' function that extracts the name of the data passed into the variant.
06-24-2009 09:11 AM
Thanks for the reply guys! I hadn't noticed that little gem.
A follow-up question: is there a way to create a reference to a variable (in the self-VI) purely based to the variable label name and then setting the variable value? This, of course, is the "Read config file" part of the above.
Casper
06-24-2009 11:29 AM
Not sure if this is what you are after:
Get callers name
Open reference to caller VI
Get Vi property Controls[]
Itterate on controls ref until name property is a match
Set the vaule variant on the control.
06-24-2009 11:51 AM - edited 06-24-2009 11:52 AM