EasyManuals Logo

Agilent Technologies VEE Pro User Manual

Agilent Technologies VEE Pro
577 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #422 background imageLoading...
Page #422 background image
396 Chapter 10
Using Operator Interfaces
Common Tasks In Creating Operator Interfaces
Lab 10-4: Using an ActiveX Control
This lab shows how to use an ActiveX Control within VEE. You can
incorporate ActiveX Controls from other applications into VEE programs.
In this case, you will incorporate a
ProgressBar control and use a loop to
show the progress bar 0% to 100% complete. The same general principles
apply to other ActiveX Controls.
1. Click
Device ⇒ ActiveX Control References... and select
Microsoft Windows Common Controls 6.0. Click OK.
2. Click
Device ⇒ ActiveX Controls ⇒ ProgressBar. Size the
ProgressBar object to be larger. Open its Object Menu and notice that
the object name is
ProgressBar. VEE has automatically created a
declared variable that refers to the ActiveX control object. You can use
the name
ProgressBar in Formula expressions, just like any other
variable or data input.
3. Click
Device ⇒ Formula & Object Browser, and select ActiveX
Objects
, Library: MSComcltLib, Class: ProgressBar,
Members: Value, and click Create Set Formula. Place the object
at top center in the
Main window.
4. To loop from zero to one hundred and show the percent complete, you
will add a
For Range object. Select Flow ⇒ Repeat ⇒ For Range,
place the object below the
ProgressBar, and set it as follows: From:
0
, Thru: 100, and Step:10. Connect the For Range output to the
ProgressBar input terminal Value.
5. To slow down program execution so that you can see the
ProgressBar
updating, select Flow ⇒ Delay and place the object to the right of the
For Range object. Set it to .2. Connect the ProgressBar sequence
output pin to the
Delay object sequence input pin, as shown in Figure
10-27, and run the program.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies VEE Pro and is the answer not in the manual?

Agilent Technologies VEE Pro Specifications

General IconGeneral
BrandAgilent Technologies
ModelVEE Pro
CategorySoftware
LanguageEnglish

Related product manuals