LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple cluster type def not updating

Solved!
Go to solution

I have the tab controls in my cluster, because I use it in my main program, and I would like to save the tab selected in the cluster.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 11 of 28
(1,795 Views)
Solution
Accepted by topic author jyang72211

@jyang72211 wrote:

I have the tab controls in my cluster, because I use it in my main program, and I would like to save the tab selected in the cluster.  


 

The tab controls are very similar to enums so try using an enum instead of the tab control.

 

Re: the BUG

 

Yes, the type def is failing to update and the only work-around I could find was to toss the tab controls. I'll try to get an App Engineer to look into this but I can confirm the bug.

 

Thanks for sharing!

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 12 of 28
(1,789 Views)

I do not like them tabs

Maybe they will work someday.

'nuff said. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 13 of 28
(1,776 Views)

@jyang72211 wrote:

I have the tab controls in my cluster, because I use it in my main program, and I would like to save the tab selected in the cluster.  


How did you even get the tab control inside the cluster? That's not supposed to be allowed, and is quite possibly the source of your problem.


___________________
Try to take over the world!
Message 14 of 28
(1,766 Views)

@tst wrote:

@jyang72211 wrote:

I have the tab controls in my cluster, because I use it in my main program, and I would like to save the tab selected in the cluster.  


How did you even get the tab control inside the cluster? That's not supposed to be allowed, and is quite possibly the source of your problem.


cite source please


"Should be" isn't "Is" -Jay
0 Kudos
Message 15 of 28
(1,763 Views)

@tst wrote:

@jyang72211 wrote:

I have the tab controls in my cluster, because I use it in my main program, and I would like to save the tab selected in the cluster.  


How did you even get the tab control inside the cluster? That's not supposed to be allowed, and is quite possibly the source of your problem.


 

I knew they looked strange in the cluster but failed to recogize htat as being illlegal.

 

I am alos curious how it was done since I can't trick LV into letting me repeat that feat.

 

Jyang,

 

Can you give us a clue?

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 16 of 28
(1,759 Views)

I'd also be interested in knowing how this was done. There is some good discussion as to why this isn't a feature of LabVIEW in this thread

Applications Engineer
National Instruments
CLD Certified
0 Kudos
Message 17 of 28
(1,755 Views)

@JÞB wrote:

@tst wrote:
How did you even get the tab control inside the cluster? That's not supposed to be allowed, and is quite possibly the source of your problem.

cite source please



If Zach's link wasn't enough for you, you can also turn to LV itself - try to do in manually and it won't allow it. Try to do it programmatically and you get error 1060 - Object cannot contain (own) the specified object. I think that's pretty authoritative.

 

P.S. Personally I wouldn't mind if it was allowed, although not for UIs - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-clusters-to-have-quot-pages-quot/idi-p/1481862


___________________
Try to take over the world!
0 Kudos
Message 18 of 28
(1,749 Views)

I make the tab control into a type def and put it into a type def cluster.  I am not sure can I repeat this, but that was what I did.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 19 of 28
(1,743 Views)

@jyang72211 wrote:

I make the tab control into a type def and put it into a type def cluster.  I am not sure can I repeat this, but that was what I did.  


 

Did you by any chance do that in an earlier version of LV?

 

I tried that as well and could not get it into the cluster.

 

Curious,

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 20 of 28
(1,738 Views)