beautypg.com

An example macro – Measurement Computing DaqView User Manual

Page 83

background image

987691

457-0913

rev

3.1

Selecting VIEWXL from Available References

You have now performed the tasks needed to use the ViewXL Add-In from your own Excel Macros.

An Example Macro

We will now be looking at an example of a macro that uses

ViewXL to tell a data acquisition application [server], to Load

a Configuration File, and to Arm the acquisition. This macro

assumes that the specified file is known to be compatible with

the currently running acquisition application, for example

ChartView or DaqView.
1. Start by clicking the toolbar button

following figure). This brings up the Macro dialog

box, where we will create a new macro.

2. Enter the name "GetData" in the "Macro name" field; then press the button

as indicated in the following figure.

Creating a Macro Named “GetData”


You will see the newly created macro in the Visual Basic editor

Clicking the Run Macro Button

This manual is related to the following products: