01-10-2020 12:44 PM
There are a couple ways of handling this.
1. You talk about tabs and having multiple tabs with that control.
a. IF the control is on the same place on all the tabs, don't put the control on the tab. Put it to the side and use the arrow keys to slide it over the screen to make it look like it is on the tab. Now the control will always be there no matter what tab is shown.
b. IF the control is not on all tabs, then use some code that will hide the control when a certain tab page is show, and make it visible when the other tab pages are shown.
c. If the control is on some tabs or different spaces, do like 1b, but change the top and left position based on which tab is shown.
2. Go with multiple controls. Use an event structure that if the value changes on any of the controls, it will update all the other controls via local variable. Just make one of the controls the "master" which is the one that you will use a wire from it whenever you are using that value in the program. I've done this method for a pair of controls. The biggest risk here is a race condition where controls might want to stomp on each other. But a proper event structure setup will prevent this problem.
01-10-2020 01:03 PM - edited 01-10-2020 01:04 PM
If I use a tab structure (I generally try to keep the UI simpler, but sometimes there are situations where I want to show something different in different states) I don't put items in tabs which are common to multiple tabs. Use your other real estate for that or place it over the tab instead of in it. If you don't want to show it in some states of the tab then hide it on a tab change event.
If you absolutely have to keep the individual controls in the tabs then you could hold the values in a shift register in your code and update the control on an individual tab when you enter that tab. You would then update the value stored in your shift register on a value change event for the control. You can then use the value stored in your shift register.
Since you didn't show any code I don't know how your code is structured to know if the second option is even an option.
Also, I recommend that you study up on dataflow. LabVIEW is not the same as text based languages, and trying to treat it like a text based language will often get you into trouble.
Edited to add that it looks like RavensFan beat me in typing. 🙂