Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Oct 31, 2008

Using the Tab Control in CVI

0 ratings | 0.00 out of 5
Print

Downloads

Filename: using_tab_example_adv.zip
Requirements: View

Filename: using_tabs_example.zip
Requirements: View

The following example shows you how to use the Tab Control in CVI.

The main thing to notice is that when targeting a control on a Tab using GetCtrlVal for example, the panel handle input is the handle of the tab that the control is on, not the handle of the entire parent panel.

There are two attached examples:

using_tabs_example.zip:
A simple example that has two tabs. There are buttons on the panel that let you programatically switch between the tabs.
The first tab has configurations for setting up a plot and a plot button. On clicking the button, the program generates a plot on the graph in the second tab and switches over to that tab.

using_tab_example_adv.zip:
A more advanced version of the above example, where every time the user clicks on the plot button, the program generates a new tab and plots to it.

Requirements


Filename: using_tab_example_adv.zip

Software Requirements


Application Software: LabWindows/CVI Full Development System 8.5.1
Language(s): C

 
Filename: using_tabs_example.zip

Software Requirements


Application Software: LabWindows/CVI Full Development System 8.5.1
Language(s): C

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).