f



How to control the tab control using event structure?

Hi,
I am using tab control and event structure in the program.
When i run the application event is not happening for the active page.
When user switches from active page to the other page then event is taking place for all pages
 
So, how to get the event trigger for the active page when the application is started
 
For more clarification i am attaching the code "Test Control Tab using Event Structure.vi"


Test Control Tab using Event Structure.vi:
http://forums.ni.com/attachments/ni/170/288159/1/Test Control Tab using Event Structure.vi
0
x9561 (148440)
12/4/2007 7:40:09 AM
comp.lang.labview 35213 articles. 1 followers. vasusachin24 (1) is leader. Post Follow

1 Replies
787 Views

Similar Articles

[PageSpeed] 42

You have a basic misunderstanding of dataflow. Maybe you should start with some tutorials or study some of the examples that ship with LabVIEW.

- The event structure belongs inside the while loop, and not vice versa. RIght now, the event structure only runs exactly once and never again.

- If the stop is pressed first, the VI will stop. Game over.

- If the tab control is changed (from any state to any other state!), the inner loop will spin forever as fast as the CPU allows, either executing one or the other case. It just reads the tab terminal to decide which case to execute. Changing tab never triggers any events. The VI is trapped inside the event until stop is pressed to stop the VI.

you were closer to a reasonable program in the other thread:
<a href="http://forums.ni.com/ni/board/message?board.id=170&amp;view=by_date_ascending&amp;message.id=287905" target="_blank">http://forums.ni.com/ni/board/message?board.id=170&amp;view=by_date_ascending&amp;message.id=287905</a> 
Have you tried execution highlighting? Maybe things would become more clear of you do. :)
0
x9561 (148440)
12/4/2007 8:10:05 AM
Reply:

Similar Artilces:

&quot;Key Down&quot; event use in one page of tab control prevents using &quot;Value Change&quot; events on another page, even though separate case structure blocks handle the two
The attached VI has a tabbed control with two pages. On one page, titled "Using Value Change Events",&nbsp;there is a control and an indicator, and the underlying code processes a Value Change event on that control by adding one to the number and displaying it on the indicator. On the other page, titled "Using Key Down Events", there is an indicator, and the underlying code processes a Key Down event by displaying the scancode on the indicator. Both these underlying code blocks are in different cases of a case structure chosen by the tab control. Some extra items are ne...

tab control and event structure
Hello All, I have a rather complex front panel and I have tried to make it look readable using a tab control. How do I enter into a while loop if a certain page is selected in the tab control? I should exit the while loop the moment the user clicks out of the tab. I have done this with some rather complex looking code which invlove the user clicking an exit button, but I would like to simplify it with an event structure where just moving from one tab to another would close the loop automatically and no extra "Quit while loop button" is necessary. Any one h...

Tab control within another tab control
I am creating a form with a tab control containing 10 tabs. and what I want to do is on only on of the tabs, I want a sub section of tabs. So what it ends up being is one main tab control with another tab control embedded into only one of the tab pages. The problem I am getting is when I insert the sub section tab control into one of the tabs from the main tab control, the sub section tab control appears in every tab in the main tab control. Can anyone help? What do I need to do so it only appears in one tab, not all. Thanks As you found, you cannot place a tab control on one of the pages...

matching event sample to control sample but using any control observation only once
hello, Since two weeks I am trying unsuccessfuly to solve the following problem. I have a sample of event firms (small sample) and non-event firms (big sample). I need to match each event firm with non-event firm that is similar on -/+30% size and closest another ratio (BEME). However, I want each control firm to be used only once (unless it is used another time five years after its first use). I found the following code, which I tried to implement in iterative way but it is not working. proc sql; create table SEO_matches as select eventfirm.*, match.id as match_id, match.ME as match_ME, m...

How do I use a LabView control element as ActiveX Control in another application?
I am was trying to include some simple ActiveX Controls(sliders, buttons) in my VBScript. It worked with other ActiveX Components from the web, however I wasn't able to include the LabView ActiveX Controls because I was missing the necessary IDs. Moreover I was able to test the LabView control by inserting it into the VC++- Test Container. But I still can't find the necessary IDs... I don't believe that any of the LabVIEW controls (except for 3D Graphs) are ActiveX controls so I'm not sure what control you were able to insert into the VC++ container. What's the exact name ...

tab control inside another tab control
Hi. Is it possible to put a tab control inside another tab control. I tried it several times, but for some reason this doesn't seem to work. Can someone confirm this, or tell me what the trick is. Thanks. -- Georges The only way I know to do this is to put a subform on the first tab control. Then you can put your second tab control on the subform. If you do this repeatedly, however, you will find the form loading rather slowly. HTH - Turtle "Georges Heinesch" <news@geohei.lu> wrote in message news:3fe82fb8$1_2@news.vo.lu... > Hi. > > Is it possible to...

Re: matching event sample to control sample but using any control #2
On Mon, 2 Oct 2006 02:03:25 -0700, PBilin <pbilin@GMAIL.COM> wrote: >Hi, > >I know it is not easy and I already had a look at that webpage. The >problem is that they allow to use same match twice. That's true of GMATCH. Look at VMATCH, which uses PROC ASSIGN to optimize when controls are not to be re-used. You need a license for SAS/OR to be able to use VMATCH. But you have added a wrinkle by specifying that 5-year window. I'm just not sure if there's a way to specify that to PROC ASSIGN. >Besides, I do not >follow most of the programmes.... I am too gre...

Syntax of control on tab controls
I have a form "frmturnover" on which there is asubform "subfrmturnover" which has three tabcontrols say Page1, Page2 and Page3. There is control "control2" on Page2 that when its is entered I want to check if it is the same value as a control "control1" on Page1 and then show a pop up box if they don't match. I can work out the code for the message box but I'm getting a little lost on the syntax for referring to the controls on the pages of the tab control. I also want to check the value of Control2 on page2 with the vale of control3 on a page1 o...

Refs to controls on tab control
I'm really stumped. I have been able to get all of my references to all my controls with property nodes - even controls inside clusters for all of the controls on a vi front panel. However, when I move these very same controls onto a tab control&nbsp;I can't seem to figure out how to get these same&nbsp;references! I can only get the tab control ref. :smileyindifferent: &nbsp; &nbsp; <img src="http://forums.ni.com/attachments/ni/170/243049/1/Cotrols%20on%20pages.JPG"> BenMessage Edited by Ben on 04-20-2007 05:01 PM Cotrols on pages.JPG: http://forum...

Control/Indicator descriptions are not imported or checked from LabVIEW to NI RG when they are placed on Tab controls
Hi Allen, I am currently testing Requirements Gateway. As it seems it does not find any controls placed on a tab control to see if it is covered or not. Is there any reason not searching for controls placed on tab controls? We have VIs iterating over complex Front Panel structures to find all controls. Maybe we can add this functionality to NI RG LabVIEW interface. Is there anyone can help in this? Andras ...

Locked controls on new tab after finishing event structure
Greetings All, &nbsp; My first question for the forum.&nbsp; I found a few posts which had similar issues but I still can't seem to figure this one out. &nbsp; This program creates a temperature profile and it's within a much larger program where I want the user to be able to cancel, continue, go back a step, etc.&nbsp; It all works fine until I leave the event structure loop and go to the verify tab.&nbsp; The user should be able to continue or cancel but the buttons will not press.&nbsp; I believe the event structure is locking the front panel but I turned off...

How to control Arcus Technology's PMX 2 ED motion controller using labVIEW
Please guide me, for controlling the PMX 2 ED using labVIEW.&nbsp;http://www.arcus-technology.com/pmx-2ed-sa.php?osCsid=4cc1dd9c238572468a87a72d16d7fd93&nbsp;Please let me know if any one has used labVIEW for this before.Thank you.&nbsp; There seem to be USB drivers for that device. Have you installed them? Was there a DLL provided? If so, you can call the DLL functions using Call Library Function. Do they have a software programming manual? Thank you for instant reply. I downloaded the driver. Its not helping to run it using labVIEW. They do not provide DLL. They provide some VI...

How to use the drop event of the tree control in LabVIEW 8.20?
Hi, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am using the two tree controls in my application&nbsp;to provide a option for the user to drag and drop item from one tree to the other.&nbsp; I have to validate the user selection.&nbsp;I tried to capture the user drop event&nbsp; using the event structure. The problem&nbsp;I am facing is,&nbsp;I am not able to drop the item even though i have wired a constant true&nbsp;to the filter(Accepted?) in the event case. I have enable the property(Allow drop...

Can a Combo Box control a Tab Control, like an Enumerated Ring control can
Is there any way to have a Combo Box control a Tab Control.&nbsp; An Enumerated Ring control can if all the names match "Exactly", question is can a Combo Box do the same, especially within an Event Structure? I haven't been able to figure it out.&nbsp; Enclosed is a test VI that has an enumerated ring example, and a combo box with the same data.&nbsp; Thanks for your help... Test Tab Control [1].vi: http://forums.ni.com/attachments/ni/170/215375/1/Test Tab Control [1].vi A tab control can be treated like an enum, so your question comes down to: "Can I map a ...

Getting XP look with tabbed dialog control and tab strip control
I know how to use a manifest file to get the XP look for the Windows Common Controls 6 group of controls but I also have both the tabbed dialog and tab strip controls in my app and I want those to take on the XP look as well. Does anyone know how? Also, while I am able to get the XP look through a manifest file in my app's folder I should be able to do this without the file having to be in the app's folder. I've read it has to do with compiling with a resource file but I don't know how to do that. Can anyone offer any assistance? Thanks! ...

Tab Control Property Node gives a build error when used in a VI for LabVIEW PDA
Hello, &nbsp; &nbsp;&nbsp;&nbsp; Iam new to LabVIEW development &amp; need help regarding this: &nbsp; &nbsp;&nbsp;&nbsp; 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&nbsp;with LabVIEW PDA project.&nbsp;A sample&nbsp;VI which shows the problem &amp; the error list snapshot is attached with this post. Can&nbsp;anyone please suggest an alternate approach to ...

How can I set the tab order of text box controls on each page of a tab control?
I need to be able to select the tabbing order of individual controls on a single page of a tabbed control. How?? In LV 6.1 an up you should be ablel to right click on the edge of the tab control when the tab-page in question is selected. The bttom selcetion in the pop-up is "Reoder controls in page..." selecting this option will switch editing modes to allow you to specify the ored, just like in a cluster. I seem to remeber in older versions you had to drag the tabable controls off the tab control, specify the tabbing oder and then drag them back on. The oldest version I have on ...

Tab Control and Rectangle Hiding Controls
I'm trying to change the back colour of a tab control in Access 2010 by using a rectangle. I've selected the tab control (not an individual page) and pasted the rectagle (solid with required colour). I then send the rectangle to the back and then the tab control to the back. The problem is that most (but not all controls remain hidden) on each tab. Subform and list boxes are visible, but labels and text boxes aren't. I've done this before in another application, but can't remember how I did it. Any ideas? -- Bob Darlington Brisbane On Thursday, June 20, 2013 1:57:59 AM UTC-5, Bob Darlington wrote: > I'm trying to change the back colour of a tab control in Access 2010 by > > using a rectangle. > > I've selected the tab control (not an individual page) and pasted the > > rectagle (solid with required colour). > > I then send the rectangle to the back and then the tab control to the back. > > The problem is that most (but not all controls remain hidden) on each tab. > > Subform and list boxes are visible, but labels and text boxes aren't. > > I've done this before in another application, but can't remember how I did > > it. > > Any ideas? > > > > -- > > Bob Darlington > > Brisbane Not sure I understand your issue. Anyway, check in properties and set the background to transparent. ...

Valve control
Hello, I am still trying to figure out a method of controlling a discharge valve for compressor testing.&nbsp; The valve is controlled by a slider, but when it hits a certain point of being closed, the compressor surges.&nbsp; At that surge point, I want the user to click a button, and then have the valve slowly open while the data is being sent to&nbsp;a file.&nbsp; This way, the data is recorded and the valve opens to prevent damage to the compressor all at the click of one button.&nbsp; I have the VI up and running, all except for the opening part of the valve.&nbsp; I have included a simple example of where I am going with the valve control.&nbsp; Any advice would be appreciated, for then I can implement that code for the valve opening into the rest of my programming. &nbsp; Thank you, &nbsp; &nbsp; Jmc Valve control.vi: http://forums.ni.com/attachments/ni/170/198874/1/Valve control.vi ...

How can i use labview.tlb to control Labview from an external application?
Hi, I've been told by a labview engineer that i could use the file labview.tlb located in the labview install folder to control labview from an external application (in my case, a C# app). I'm using Labview 6.1 under Windows 2000. This article confirms that: "ActiveX and LabVIEW" http://zone.ni.com/devzone/conceptd.nsf/webmain/5401BE584FBAEECE862567C2006D36C7?opendocument But i've not been able to find out how to use this file to achieve what i want. I just want to be able to open/close labview, open/close a vi, start/stop a vi, hide/show a vi from a C# application. Th...

How to get one particular control added to Event Structure &gt; Edit Events &gt; Event Sources selection pane?
I want to create an event handler that responds to Mouse Up on one of my front panel controls, but this particular&nbsp;control is not listed in the Event Sources pane of the Edit Events dialog for the Event Structure where all the other controls are. How do I get it to show up there? All the other controls are already working this way, creating events that the Event Structure handles.&nbsp;This particular control&nbsp;doesn't appear to have any unique or unusual properties, it's just a boolean control, a switch, like most of the others. Restarting LabView still doesn't make it appear on the list. This LV 8.5 on WinXP. &nbsp; Thanks! Hi cebailey, could it be that this control is part of a cluster? Mike Hi, Mike. No clusters. Good idea, tho. Actually, I have now added several controls without seeing them on the list, at least at first. Then, while I was sitting there glaring at the list itself, it suddenly grew longer, and they were all there, appearing at the end. An extra gap appeared in the scroll bar at the right, too, making the handle part of the scroll bar a little shorter while I was looking at it.&nbsp;But it took a couple of minutes. Weird. Now I can point to all my controls, though I don't know if this will happen again if I add more. Is there any way to force this list to refresh itself? Or do we just need to wait if controls aren't there yet? I'm surprised&nbsp;the discrepancy&nbsp;could outlast closing and reo...

tab control strict typedef hides controls
"Has the issue of no typedef tabs been resolved in LV7? I am modifying a LV61 vi and severely broke the panel trying to convert a tab to a typedef. I was able to customize, however there was a compile/save error and all the embedded controls on the tab pages became hidden and un retrievable." Jim Henderson" Zvezdana In my disgust, I had deleted all copies of the offending vi. I believe my problem must have been, primarily, a corrupted compile/save. Thanks Jim ...

Simple Remote Control for use with MSComm control
I have been looking for a simple remote control to use with a VB app. Most of my searches are useless, as they are giving me "programmable remotes." :| Anyone know of a nice cheap one? I just want to be able to use it with the MSComm control to accomplish simple reports. Thanks in advance, Rich A little clarification might help MSCOMM is purely an RS232 Driver On Mon, 20 Oct 2003 14:04:39 GMT, "RTL" <blockspam.rlemmermann@nospam.techarts.com> wrote: >I have been looking for a simple remote control to use with a VB app. Most >of my searches are useless,...

Defer webbrowser control events to parent control?
Hi. I've managed to get a webbrowser control appearing in an owner drawn button, now I need to trap any events it may receive from the user. For example, if the user clicks over the button/webbrowser hybrid, I want the event to be ignored by the webbrowser and only be taken up by the button. Which would be the best way to go about doing this? ...

Web resources about - How to control the tab control using event structure? - comp.lang.labview

Tree structure - Wikipedia, the free encyclopedia
A tree structure is a way of representing the hierarchical nature of a structure in a graphical form. It is named a "tree structure" because ...

NSW tests interest in land titles unit sale structure
JPMorgan has been drumming up potential buyer interest in NSW's Land and Property Information unit, with expectations that formal expressions ...

Leaked Documents Of 22,000 Jihadis Expose ‘Underlying Structures’ Of ISIS
Leaked Documents Of 22,000 Jihadis Expose ‘Underlying Structures’ Of ISIS

What to do when white supremacy is built into the structure?
The current mayor of Birmingham, Alabama, can pretty much go wherever he wants in the city these days. As a youth however he, and the other residents ...

Lera Moiseeva's Ray chair references plant and tree structures
... Lera Moiseeva has created a tubular steel chair that is shaped to mimic the way plants grow. Moiseeva based her Ray seat on the organic structure ...

Acer will need to revamp business structure, says Stan Shih
Commenting on Acer's operations, Acer founder Stan Shih pointed out that the company has already transformed from a pure hardware player to a ...

The Growing Appeal Of Offshore Structures To Family Offices
Single-family offices and multi-family offices are increasingly using offshore structures to address a wide range of issues and opportunities. ...

Q&A: Facebook’s revised UK tax structure
It will be unclear how much extra tax will be paid until the company’s 2016 accounts are published

Gaze Into This Vortex of Worms Trying to Self-Assemble into a Structure
Scientists have found that these worms self-assemble into structures that allow them to survive on broad, sandy beaches. One of the phases of ...

How Many Lego Bricks Would It Take to Build Famous Sci-Fi Structures and Vehicles
It’s hard to truly grasp the size of famous science fiction megastructures like the Death Star or the Halo ring and basically impossible to understand ...

Resources last updated: 3/16/2016 3:15:31 AM