09-14-2017 06:47 AM
@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.
09-14-2017 08:48 AM
09-14-2017 02:03 PM
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'.
09-14-2017 02:20 PM
@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.
09-14-2017 02:37 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-14-2017 03:12 PM - edited 09-14-2017 03:13 PM
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
09-14-2017 03:34 PM - edited 09-14-2017 03:36 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-14-2017 03:59 PM
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
09-14-2017 04:02 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-14-2017 04:03 PM
@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?