07-27-2006 10:08 AM
07-27-2006 03:49 PM
Hi JITC and everyone else,
Guess what... it IS possible to add tab pages and controls while the program is running!!! This is really sweet... And how you may ask? Using .NET controls. Take a look at the program attached below which programmatically adds tab pages and adds controls to those tab pages. Ok, the example only does one of each, but you get the idea.
One small catch... (there had to be one): You will have to disable multithreading for your LabVIEW system for this to work. The reason is that LabVIEW by default spawns the tab pages and controls in a different thread than the user interface thread which hosts the tab control. The tab control can't be a parent object for child objects in another thread.
To disable multithreading, go to Tools >> Options and select Performance and Disk. Uncheck Run in Multiple Threads and restart LabVIEW.
Check it out!!!!!! This is LV 8. This requires .NET Containers which aren't available in 7.1 or before. Sorry!
07-28-2006 07:23 AM
06-03-2008 12:25 PM
06-04-2008 11:31 AM
06-04-2008 09:07 PM
06-04-2008 11:00 PM - edited 06-04-2008 11:00 PM
This was already answered in this thread, so why do you ask it again. Did you read all the replies. Is anything still not clear?
vahi wrote:
I want to create a tab control and add a new page to this by pressing a button or double-clicking the tab control..
vahi wrote:
However we have to disable multithreading. I will acquire data at the background. So there will be a running vi on the background. Does it mean multithreading?(I am using LV8.5)
06-04-2008 11:27 PM
altenbach wrote:
This was already answered in this thread, so why do you ask it again. Did you read all the replies. Is anything still not clear?
vahi wrote:
I want to create a tab control and add a new page to this by pressing a button or double-clicking the tab control..
vahi wrote:
However we have to disable multithreading. I will acquire data at the background. So there will be a running vi on the background. Does it mean multithreading?(I am using LV8.5)
I don't think you have a correct understanding of the term "multithreading", because your question makes absolutely no sense.What makes you think you need to disable it?
Message Edited by altenbach on 06-04-2008 09:00 PM
Jarrod S. wrote:
Hi JITC and everyone else,
Guess what... it IS possible to add tab pages and controls while the program is running!!! This is really sweet... And how you may ask? Using .NET controls. Take a look at the program attached below which programmatically adds tab pages and adds controls to those tab pages. Ok, the example only does one of each, but you get the idea.
One small catch... (there had to be one): You will have to disable multithreading for your LabVIEW system for this to work. The reason is that LabVIEW by default spawns the tab pages and controls in a different thread than the user interface thread which hosts the tab control. The tab control can't be a parent object for child objects in another thread.
To disable multithreading, go to Tools >> Options and select Performance and Disk. Uncheck Run in Multiple Threads and restart LabVIEW.
Check it out!!!!!! This is LV 8. This requires .NET Containers which aren't available in 7.1 or before. Sorry!
06-04-2008 11:32 PM
06-05-2008 04:46 PM