LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tab control--how do I use same control/indicator on multiple pages.

Actually that plan worked out. The trick for me as a noob was placing my copying code inside the appropriate event structure.

 

I found there is an event for Tab Control - Value Change. I made 2 event dependent cases to match the 2 tabs with the controls I want to manage ( Read & Write Serial). I placed property value copy commands from Control 1 to Control 2 inside the event structure when the tab control value becomes a new value of "Read" and copy commands for Control 2 to Control 1 when the tab control value becomes a new value of "Write".

 

A picture can tell up to a thousand words - here's one:

 

Hope that helps,

Chris

0 Kudos
Message 11 of 13
(2,909 Views)

@El_Penguino wrote:

Actually that plan worked out. The trick for me as a noob was placing my copying code inside the appropriate event structure.

 

I found there is an event for Tab Control - Value Change. I made 2 event dependent cases to match the 2 tabs with the controls I want to manage ( Read & Write Serial). I placed property value copy commands from Control 1 to Control 2 inside the event structure when the tab control value becomes a new value of "Read" and copy commands for Control 2 to Control 1 when the tab control value becomes a new value of "Write".

 

A picture can tell up to a thousand words - here's one:

 

Hope that helps,

Chris


Very cool.  I'm glad you found your path forward.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 12 of 13
(2,893 Views)

@El_Penguino wrote:

Actually that plan worked out. The trick for me as a noob was placing my copying code inside the appropriate event structure.

 

I found there is an event for Tab Control - Value Change. I made 2 event dependent cases to match the 2 tabs with the controls I want to manage ( Read & Write Serial). I placed property value copy commands from Control 1 to Control 2 inside the event structure when the tab control value becomes a new value of "Read" and copy commands for Control 2 to Control 1 when the tab control value becomes a new value of "Write".

 

A picture can tell up to a thousand words - here's one:

 

Hope that helps,

Chris


Locals are more efficient than Value Properties, so if you're going to go that route, I'd use locals.

 

What I'd really do though is use nathand's approach.

 

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 13 of 13
(2,868 Views)