LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Anyway to programmatically add a page to Tab Control during VI execution?


@PriyadarsiniS wrote:

There is nothing wrong in knowing new things, without mistakes did anyone became an Expert..

 


Teaching a beginner how to turn on scripting (hint: options) is a bit like teaching your toddler how to start your car. Sometimes knowing new thinks is just not a good idea.

 

Letting someone learn from mistakes is different then setting someone up for failure.

Message 11 of 23
(2,951 Views)

It's just software he can disable it anyway.

 

here is an link

Message 12 of 23
(2,937 Views)

I know what you meant when you wrote "But keep in mind that the program will never work in an executable before spending weeks on it.", but it reads as if you are saying that it 'will work after you spend weeks on it'.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 13 of 23
(2,907 Views)

@paul_cardinale wrote:

I know what you meant when you wrote "But keep in mind that the program will never work in an executable before spending weeks on it.", but it reads as if you are saying that it 'will work after you spend weeks on it'.


Ah, you mean OP might have wanted to actually give it a try? It was a well mend warning, but I see your point.

 

So just to be clear: scripting will not work in an executable. Don't spent weeks making VI's, only to find out it doesn't work in an executable. It won't.

0 Kudos
Message 14 of 23
(2,896 Views)

As others have said you can't do what you want directly but there are alternatives.  Subpanels and a listbox is a pretty good alternative.  And if you know the number of tabs is limited then showing and hiding them, and changing their tab names might be a solution.

 

There are a couple of other interesting tech demos like my Multi Panel Interface (video), and VI Box XControl which combines a picture control for dynamic tab selection, and a subpanel.

 

LabVIEW is a strictly typed language and you can't edit enums (or tabs) at runtime because of it.

0 Kudos
Message 15 of 23
(2,891 Views)

You all know I'm going to say it....

 

I Hate Tabs.  Like radio buttons and clusters they are "Containers" not controls.

 

On the other hand. (NOPE, Don't try to do that either,  you need every thing known at dev time first anyway)

 

Let's try this another way, What you want is to be able to dynamically dispatch an editor of the values of a class of private data.  That would involve that the data types of the container's data instances was known at development time and a discreet list could be made.  (Or as Hooovahh said, LabVIEW is a strictly typed Language)

 

At the risk of Ben tossing a humorous exchange back at me from years ago... Every time I say "You cannot do that in LabVIEW." someone posts an example.  Lets try to beat the -1minute record"  You cannot do that in LabVIEW.

 

Ready to edit 


"Should be" isn't "Is" -Jay
0 Kudos
Message 16 of 23
(2,882 Views)

@JÞB wrote:

Every time I say "You cannot do that in LabVIEW." someone posts an example.  Lets try to beat the -1minute record"  You cannot do that in LabVIEW.


What are the conditions of that statement?  Is it you cannot make an interface with an unlimited number of tabs at runtime?  Because you can do that with the XControl I linked to.  The tabs part is a 2D picture control that justs keep getting larger and larger.  The video I linked to shows dynamically creating tabs (1:20, and 2:00) but I think I did put a hard limit on it at 100 tabs or something.

0 Kudos
Message 17 of 23
(2,875 Views)

I'm amazed (and maybe slightly nauseous) at how far afield from the OP's question this thread has gotten.  He was simply confused about the concept of creating and deleting tabs on a control vs. showing and hiding them.  Scripting, subpanels, Xcontrols, etc are all outside of the scope of the question and almost surely outside the OP's knowledge base.

 

Dave

David Boyd
Sr. Test Engineer
Abbott Labs
(lapsed) Certified LabVIEW Developer
0 Kudos
Message 18 of 23
(2,865 Views)

I'm just looking to answer the question as completely and as clearly as possible.  I make no assumptions on OP's knowledge.  I think we made things pretty clear how advanced some of these options are, and I even mentioned some are just "tech demos".  That being said the XControl one is probably the easiest to use if you really are set on this type of interface.  You still need to learn about VI references but the included demo just works and works pretty well for displaying N images, one in each tab.

0 Kudos
Message 19 of 23
(2,861 Views)

@Hooovahh wrote:

@JÞB wrote:

Every time I say "You cannot do that in LabVIEW." someone posts an example.  Lets try to beat the -1minute record"  You cannot do that in LabVIEW.


What are the conditions of that statement?  Is it you cannot make an interface with an unlimited number of tabs at runtime?  Because you can do that with the XControl I linked to.  The tabs part is a 2D picture control that justs keep getting larger and larger.  The video I linked to shows dynamically creating tabs (1:20, and 2:00) but I think I did put a hard limit on it at 100 tabs or something.


OT

Brian, Lets stick to public stuff.  

 

OK I get the premise behind X nodes, I'm just not working in an environment (I do "Test" and some "SCADA") where I've ever needed them.  One of these days you are more than welcome to school me.  Now, Parameters! did it meet spec in under -1 minutes?


"Should be" isn't "Is" -Jay
0 Kudos
Message 20 of 23
(2,860 Views)