beautypg.com

Acquisition, Chapter three – Teledyne LeCroy WaveExpert series Automation Manual User Manual

Page 75

background image

Chapter Three

Control Reference

Waits until either the application is idle or the specified timeout expires, specified in seconds. This
evaluates to True if the application completes before the timeout expires, and to False if a timeout
occurs.
When Trigger mode is Auto or Run, the application is never Idle. In this case the call to WaitUntilIdle
returns after the next acquisition and any configured processing.

WaitUntilIdle([in] double timeoutSeconds)

Method

' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")

' Wait with a timeout of five seconds.
app.WaitUntilIdle(5)

Example

Description

Causes the main execution thread of the instrument application to sleep for the specified time period,
defined in milliseconds.

Sleep([in] double timeoutMilliseconds)

Method

' Visual Basic Script
Set app = CreateObject("LeCroy.XStreamDSO")

MsgBox "Sleeping for 10 seconds..."
app.Sleep(10000)
MsgBox "Sleep finished"

Example

Description

ACQUISITION

app.Acquisition

This group of variables controls the input channels C1, C2, C3 and C4, the timebase, the trigger, and the Aux Output.

Names of the form app.Acquisition.Channels.xxxx are aliases of simpler names which are described in this section of
the manual. Examples of alias pairs are as follows -
app.Acquisition.Channels("Cx") is equivalent to app.Acquisition.Cx
app.Acquisition.Channels(1) is equivalent to app.Acquisition.C1
app.Acquisition.Channels("Cx").Out.Result is equivalent to app.Acquisition.Cx.Out.Result

Sets/Queries the trigger mode, using values from the following list -
Auto, Norm, Normal, Single, Stopped.

TriggerMode

Enum

Description

Acquire([in] double timeoutSeconds, [in] long bForceTriggerOnTimeout)

Method

Calibrate

Action

CalNeeded

Integer

ClearSweeps

Action

HorOffset

Double

TriggerMode

Enum

3-8

916435 RevA