LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming events with tabcontrol

Hello with all 

  

The reason for which I am participating in this forum is to request please some help about the following problem. I am developing a program of data acquisition  in LabView 8.2 in which I plan to acquire data of temperature and flow from the water currents of a Heat Plate Exchanger; I use a tabcontrol that allows to be organized in pages each one of these variables. The problem is that I don't know How I can do in order to use the mouse events for doing the option to the user to change from page to page without problems when the program executes. In other words, in the moment from beginning the program and take data from temperature for example, stop the actual task and began to acquire data from flow that is in other tabcontrol page without to stop the program. It is necessary to do that with mouse events.

 

Be thanked for all information that can send me, although for their attention I am grateful infinitely 

 

Pablo Tuza Alvarado 

Ecuador

0 Kudos
Message 1 of 5
(3,300 Views)
inter-linked
- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 2 of 5
(3,272 Views)

Hi Pablo,

Please read te online help of LabVIEW for the Event Structures [ES], you ll easily get to know of doing things you want to do.

There, read the Caveats and Recommendations when Using Events in LabVIEW page to understand when to use/when NOT to use ES.

Basically there are 2 types of events, filter events & notifier events, apart from the advanced type called the user events.

You can put your code inside the Tab control's Value Change event & inside it have a Case Structure for each page of the Tab, in which you perform different operations.

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 3 of 5
(3,270 Views)

A quick example. Smiley Happy

If you rt-click on the border of the ES, -->>Edit Events handled by this case... you ll see a dialog showing all the variables on the left side & their corresponding events on the right side. Just more info, if needed...

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 4 of 5
(3,268 Views)
Ola Pablo,
        Typically DAQ processes involve some kind of read-loop.  Here are three examples that pick a "DAQ-loop" depending on the tab-control - one example uses the "value-change" event.   Sorry if this is no help!  It's not clear (to me) why it's necessary to use "events", or why only one DAQ process should run at any time.  In some programs multiple DAQ processes run simultaneously, but the tab-control might display just one process output.
 
Cheers!  
 
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Download All
0 Kudos
Message 5 of 5
(3,261 Views)