Using Echo Window

Other topics about Using Macro

Overview

This sample program demonstrates the following operation.

  1. Activate Marker 1.

  2. Search Max point.

  3. Display the marker value in the echo window.

To use this sample:

  1. Copy the following code into a Notepad file.

  2. Save the file on the analyzer storage in the D: folder. Name the file as "echoMarker.vbs"

  3. Double-click the file to execute.

Sample Program

dim ana

set ana = CreateObject("E4991.Application")

ana.scpi.display.table.state = true

ana.scpi.display.table.type = "echo"

ana.scpi.display.echo.clear

ana.scpi.calculate.selected.marker(1).state = true

ana.scpi.calculate.selected.marker(1).activate

ana.scpi.calculate.selected.marker(1).function.type ="maximum"

ana.scpi.calculate.selected.marker(1).function.execute

axisx = ana.scpi.calculate.selected.marker(1).x.data

axisy = ana.scpi.calculate.selected.marker(1).y

ana.scpi.display.echo.data = cstr(axisx)

ana.scpi.display.echo.data = cstr(axisy(0))