03-22-2018 02:49 PM
Hi,
I created the simplified attached MWE to clarify my issue.
I use a reference to access a cluster on the user interface (UI.vi) via property nodes from a SubVI (SubVI.vi).
When I start UI the reference is whitten into a reference control in the SubVI.
I use this method instead of global variables to make sure data is only stored in one place and no two conflicting copies (global variable and corresponding element on user interface) can exist.
It works fine until I change the data type of the cluster (e.g. deleting the button).
The reference in SubVI still points to a cluster of the unchanged data type and I need to recreate it manually from the UI.
Is there a way to make sure the indicator in SubVI is updated automatically?
Or should I use an entirely different technique to store and access the reference?
I tryed to use type definitions to solve this but they dont affect the type of the reference.
Note: In the real application I store many reference controls in a global variable to access them from different VIs.
Solved! Go to Solution.
03-22-2018 02:52 PM
make the reference control (used to ass to the sub-VI) a type def.
Ben
03-22-2018 03:24 PM
03-22-2018 03:42 PM
Perfect! Thanks for the quick solution.
It definetly helped to have the video to understand what is going on.
Tim
03-22-2018 03:59 PM
@tim.vi wrote:
Perfect! Thanks for the quick solution.
It definetly helped to have the video to understand what is going on.
Tim
That's why I wasted so few words. Glad I could Help
03-22-2018 06:32 PM
03-22-2018 08:53 PM
What does "MWE" mean in the original post?
03-23-2018 02:17 AM
It's short for Minimal Working Example.
See
https://en.wikipedia.org/wiki/Minimal_Working_Example
This is even more helpful
03-23-2018 10:20 AM
Thanks. I have never heard of that before.
It is best to avoid using TLA's unless you are sure the people you are communicating with know what they are.
03-23-2018 10:54 AM
@RavensFan wrote:
Thanks. I have never heard of that before.
It is best to avoid using TLA's unless you are sure the people you are communicating with know what they are.
SpoilerThree Letter Acronyms
Ditto that!
as in....
"
NBL brother .
"
I do not follow basketball so that reference escapes me.
Ben