Are indicators updated on an inactive tab control page
To decrease loop execution speed (increase acquisition speed) I have placed diagnostic displays on a seperate tab control page which is normally not the active page. The thought is that speed will be increased as these displays would not be updated unless needed (screen I/O is normally time consumming).
Is this a viable method?
Roy
It is not that those controls will not be updated, but the drawing of
those controls on the screen that you save. This can definitely be very
significant. It is also good programming praxis to hide unnecesary
front panel elements.
Also keep in mind that the eye can only handle 10-20 updates a second,
and even that is for most controls much too fast. Lowering the
indicator update rate to, say, 5-10 times a second, can already
achieve major CPU relief. depending on the kind of interfacing I
would go to much slower updates still. If you use big data sets,
you should also try to prevent creating too many copies in memory.
Similar Messages
-
How do i set tab control page size programmatically?
Hi,
I have a tab control in my program and each page has different amounts of controls on it. I would like to know how I can make the tab control pages resize automatically, only to fit the controls on the page and not have extra space underneath that other pages require.romulus wrote in message news:<[email protected]>...
> Hi,
>
> I have a tab control in my program and each page has different amounts
> of controls on it. I would like to know how I can make the tab control
> pages resize automatically, only to fit the controls on the page and
> not have extra space underneath that other pages require.
You can use the tab control property 'PaneDimension' to
programatically change the size of the tab control. To
programatically find the areas occupied by the controls on each page:
Use the 'Pages' property of the tab control to get a reference to the
desired page; wire that to a property node and select the
'ControlsOnPage[]' property; iterate through all the control
refere
nces, getting the position and bounds of each control, using
'Max & Min' and shift registers to find the extent occupied by the
controls.
Paul Cardinale -
Cannot drag an indicator off a tab control page
I inherit this VI and try to change certain controls in the tab control pages. But the controls are locked together, every time I select an item on the control, everything is selected. And when I make a new string indicator and drop onto the page, I cannot select or delete it. also when I use the arrow down key to move a control onto the tab control page, it does not have a normal shadowed effect to indicate that it's a floating control.
The tab control is in the attachment.
Attachments:
Untitled 2.vi 22 KBClick on the control, then click on the Reorder button in the toolbar (should be the far right) then click Ungroup.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously. -
Array of Tab Control page names
Hi,
I wish to programatically create an array of the names of the pages within a Tab Control.
See the attached VI for my attempt at this.
It works, but as it runs it changes which page is displayed on the front panel.
Is there a way to do this without changing the page displayed on the front panel?
Cheers,
Dan
Dan
CLD
Solved!
Go to Solution.
Attachments:
array of tab control page names.vi 9 KBHi,
Take a look at the attachment.
Hope it helps,
Paulo
Attachments:
array of tab control page names2.vi 10 KB -
Dear all:
I want to change Tab Control "page captin" name by program control ,but I don't find any property node about this.
Please help me!
Like this picture.
Solved!
Go to Solution.Hi 新手一號
see this link
http://forums.ni.com/ni/board/message?board.id=170&message.id=16404&query.id=305842#M16404
Mike -
Horizontal tabs when they are on the left side of tab control
I have a tab control for a touch screen where I was going to use buttons along the left side to change tabs, and hide the tabs. However, I realized I can put the tabs on the left side of the tab control and remove my buttons all together. Only issue is, I would like them (along with their font) to be horizontal, not vertical as they are shown in my screenshot. Is there a way to change this?
CLA, LabVIEW Versions 2010-2013
Solved!
Go to Solution.
Attachments:
touchscreen.PNG 118 KBIt's a really poor design aspect of tab controls that the text is sideways when the tabs are on the left or right side.
I've looked into it and found no way to re-orient the text.
However you can put images on the tabs instead of text, and the images can be of text (correctly oriented of course).
The attached code can be used to generate such a tab control.
Attachments:
Create_Good_Tab_2.llb 98 KB -
Change tab control page programatically using boolean.
I am wondering if there is a way to programatically change the tabs on tab control when a user clicks a button on the interface? Here is what I am trying to do and if anybody has any great ideas please let me know. I have a tab control with currently 3 tabs. I want a button on the main area of the vi to go to page 2 and back to page 1 as the user clicks it. The second is that I want about 5 buttons in page 2 that will go to say page 3-5. Any ideas. Thanks
Derek Tucker
Derek Tucker
[email protected]Sure, though I don't know why the user can't just click the tabs themselves. All you need is a simple event structure and writing to a local variable of the tab control.
Attachments:
tab control.vi 43 KB -
This there a way to progamically duplicate a page of a tab control.
No, that would require duplicating not just the page but also duplicating all the controls and indicators on that page--which LV can't do at runtime.
No problem though, there's always a way to get where you're wanting to go. What exactly is it that you need to do?
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Tab control page label change color programmatically
Hi everybody!
I have a question about a tab control.
I'm trying to figure out a way to programmatically change the properties of the tab labels so the selected tab's label looks different to the others.
I'd like to do this by changing aspects of it's font and it's color. But I can't find out how to access it either directly or by reference.
I can get at the label string so if all else fails I could make the selected one all capitals!
Am I missing something, or is this one of those things which can't be done?
I'm using Labview 11.
Regards,
Jonathan.The link still works for me!
Search the forum for "Tab Color".
This does not change the text, but the tab color which is what I do to high light the selected tab.
I use dark gray and light gray to help the user tell which tab is "active".
Not exactly what you wanted.
http://forums.ni.com/t5/LabVIEW/How-can-I-change-the-font-color-size-of-tab-controls/m-p/967920/high...
http://forums.ni.com/t5/LabVIEW/Programmatically-changing-page-color-in-a-tab-control/m-p/840699/hig...
http://forums.ni.com/t5/LabVIEW/tab-control-color/m-p/3062557/highlight/true#M873360
Omar -
I’d like an example or description of this:
For Tab Control, change the name of the Tab Page at Runtime?
Thanks,ChrisYou CAN do this. For each tab, right-click and choose Advanced->Make Page Caption Match Label to uncheck the option.
Then, in your program, get the Pages property. Use that reference to access the Caption property.
Note that the enum strings do not change, so if the LABEL for the tab is Page 1 and the caption is hello world, the tab value is still Page 1.
Message Edited by Matthew Kelton on 02-27-2008 12:03 PM
Attachments:
Tab Caption.png 2 KB -
Tab control page Setting problem?
Why I am not able to change the page Label name programmatically. Why the page Label Name property is only readable?
Hello.
If using Labview 7, you must be able to change tab labels programmatically. There is an example called "tab control properties.vi" that shows how to do that.
If using Labview 6 , this link has an example, too.
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3EA9556A4E034080020E74861&p_node=DZ52041&p_submitted=N&p_rank=&p_answer=&p_source=External
Hope it helps you.
Alipio
"Qod natura non dat, Salmantica non praestat" -
Pass data between Tab Control Pages
I’d like to initiate a serial VISA session in the first page of a Tab Control to use the VISA Serial Configure.VI outputs (Visa resource name and Error cluster) in other pages or outside the tab control.
So, how can I pass those references outside the page? I used local variables, but it doesn't seem the best way to do this because I need to create several variables to capture the reference in each page of the tab control...
I created a sub-VI to initialize the VISA session, but in this case it always starts a new session every time I use the sub-VI….
Thanks in advance!
Klein
=====================================
Block Diagrams (LabVIEW 8)
Message Edited by Klein on 04-03-2007 12:56 PM
Attachments:
TabControl.vi 37 KB
TabControl - Page1.jpg 94 KB
TabControl - Page2-3.jpg 165 KBThere's no reason at all to wire the tab control to a case statement. Since you have the read and write Booleans and they can't be clicked until the user changes tab pages, no code for the tab is necessary.With the Booleans for write and read, you should just have an event structure for those. You could initialize the serial port outside the main while loop and just pass the resource name in. Of course, if you wanted a tab for the init funciton, you could do that to but put a Boolean on that page to execute it. The only time you need to wire the tab control to a case statement is if you want to run some code immediately when the page is clicked.
Attachments:
Tab_Example.vi 45 KB -
Hi!
In my application i want show different graphs using tab control.How can i control the page selection of tab cntrl. using different buttons that i put up on my tool bar.Is there any property to this op.?
Thanks
DeWalker
Solved!
Go to Solution.Create a local variable of the tab control and wire a constant into it. Run this code when your button is pressed.
The downside of this is that if you are reading the value of the tab control as well, it will break dataflow and cause a race condition.
- Cheers, Ed -
Tab Control Property Node gives a build error when used in a VI for LabVIEW PDA
Hello,
Iam new to LabVIEW development & need help regarding this:
We are trying to port a LabVIEW application from desktop to a Windows Mobile PDA. Please note that the LabVIEW application works fine on the desktop. In one of the VIs, a Tab control property node is used which gives a build error with LabVIEW PDA project. A sample VI which shows the problem & the error list snapshot is attached with this post. Can anyone please suggest an alternate approach to achieve the same functionality with LabVIEW PDA? Waiting for an early response from anyone...
Thanks & Regards,
Subhashini
Attachments:
VI_Error.zip 31 KBHello Ton,
Am glad that i got a response, thanks. The following links indicate that Tab control is supported on PDA target:
http://digital.ni.com/public.nsf/allkb/CBA335641E27B858862571490015EA88?OpenDocument
http://forums.ni.com/ni/board/message?board.id=170&message.id=221507&requireLogin=False
I feel that the Tab control property node that has been used in the VI (which is attached earlier) may not be supported on the PDA target. Can u (or any LabVIEW expert) suggest an alternate approach to achieve the same goal with LabVIEW PDA (changing colour of Tab control pages programatically)??
I had missed out some details earlier: We are using LabVIEW 8.5 PDA module on a Windows Mobile PDA.
Thanks & Regards,
Subhashini -
Problem on switching tab control with wmp around
Hi,
I have search through the forum but still not able to find out the solution for my problem here.
I have wmp play around, everything works fine but when i pause the movie, which going to switch to tab control page 2 but somehow the screen of the movie is still around, so any idea how to avoid the screen to be appear on the tab control page 2.
Attach with vi here.
Thanks in advance.
Regards,
Simon
Attachments:
WMP4.0.vi 79 KBIt looks like this is bad news for you. This is a known issue and has been for a long time. Look at the link I provided.
http://forums.ni.com/t5/LabVIEW/Media-Player-in-Tab-Control/m-p/527919
Tim
Johnson Controls
Holland Michigan
Maybe you are looking for
-
My macbook will not boot. It goes to a blue screen after the logo and wheel goes off. I have taken the battery out and held the on/off button for five seconds and reset the PRAM. I have the the original os disk but have not put it in for fear of l
-
Error after deployment of ICSS4.0
Hi We applied icss4.0 patch to crm server on solaris deployment is success but we r not getting any icons wn we login to ICSS plz suggest me regarding this Thanks in advance
-
Bug? - trouble with iPod menus
I recently downloaded my first video podcasts, but I'm having some trouble playing them in my iPod. Although they are ok when played in iTunes, they didn't seem to be recognized as video by the iPod - at least when I selected them through the podcast
-
How to get message/rfc822 attachment name by using JavaMail
Hi, I am fetching incoming mail which has message/rfc822 attachment. i.e: ".msg" (mime message) is attached to this incoming mail. When I try to get name of this message/rfc822 attachment, I am getting null. Body part for this message attachment does
-
Error No receiver could be determined in PI71
hello Expert, i am testing a sample scenario with proxy->xi->file application BC6, xi server PI71 configuration test is okey. i used the BC(BS_File) is as the sender and receiver but after run, the sender name in the record in sxmb_moni is changed