AUBRAUX
 

 

Exim

Ensemble

Quantum

JitLab

PCScope

Modules:

SigGen

SoundImp

SoundExp

Plot

Meas

Stats

FileImp

TextImp

TextExp

Filter

FFT

DspWnd

Visa

Arithmetic

Plugins:

CodeEditor

SchEditor

Wizards:

JitLab

Help:

Getting Started

Examples:

PC Oscilloscope

Signal Generator

Amp. Modulation

Freq. Modulation

Phase Modulation

AM, FM & PM

PAM

PWM

Text Imp. & Exp.

 

Plot: Programming Interface


The Plot module has following settings, ports and functions.

Settings

Vertical Scale (Wfm)

Setting:wfm.vscale (where wfm is the name of any valid waveform)
Type:double
Unit:Volt/Division
Default :1

Plot gain along vertical axis. If wfm.vscale.auto is ON, then the scale is automatically calculated to vertically fit the waveform nicely in the plot window.

Auto Vertical Scale (Wfm)

Setting:wfm.vscale.auto (where wfm is the name of any valid waveform)
Type:long
Unit:n/a
Default :1

0 is OFF and all other values are ON. If ON, then wfm.scale is automatically calculated to vertically fit the waveform nicely in the plot window.

Vertical Offset (Wfm)

Setting:wfm.voffset (where wfm is the name of any valid waveform)
Type:double
Unit:Volt
Default :0

Used to center the waveform vertically. If wfm.voffset.auto is ON, then the offset is automatically calculated to vertically center the waveform.

Auto Vertical Offset (Wfm)

Setting:wfm.voffset.auto (where wfm is the name of any valid waveform)
Type:long
Unit:n/a
Default :1

0 is OFF and all other values are ON. If ON, then wfm.voffset is automatically calculated to vertically center the waveform.

Vertical Position (Wfm)

Setting:wfm.vposition (where wfm is the name of any valid waveform)
Type:double
Unit:Division
Default :Varies with each waveform

Used to position the waveform vertically.

Horizontal Scale (Main)

Setting:main.hscale
Type:double
Unit:Second/Division
Default :1

Plot gain along horizontal axis for all waveforms. If hscale.auto is ON, then the scale is automatically calculated to horizontally fit the first waveform in the plot window.

Auto Horizontal Scale (Main)

Setting:main.hscale.auto
Type:long
Unit:n/a
Default :1

0 is OFF and all other values are ON. If ON, then main.hscale is automatically calculated to horizontally fit the first waveform in the plot window.

Horizontal Offset (Main)

Setting:main.hoffset
Type:double
Unit:Second
Default :0

Used to position all the waveforms horizontally. If hoffset.auto is ON, then the offset is automatically calculated to horizontally fit the first waveform in the plot window.

Auto Horizontal Offset (Main)

Setting:main.hoffset.auto
Type:long
Unit:n/a
Default :1

0 is OFF and all other values are ON. If ON, then main.hoffset is automatically calculated to horizontally fit the first waveform in the plot window.

Cursor Type

Setting:cursortype
Type:long
Unit:n/a
Default :4

0= All cursors OFF
1= Horizontal cursors only
2= Vertical cursors only
3= Both vertical and horizontal cursors
4= Vertical cursors paired to horizontal cursors

Waveform Color

Setting:wfm.color (where wfm is the name of a valid waveform)
Type:long
Unit:n/a
Default :Varies with each waveform

Color of the waveform. The waveform color can be derived from the hexadecimal representation 0xRRGGBB, where the three primary colors red (RR), green (GG) and blue (BB) are represented by one byte each.

Waveform Label

Setting:wfm.label (where wfm is the name of a valid waveform)
Type:string
Unit:n/a
Default :Name of the waveform

Label of the waveform shown in plot window.

Functions

Plot Window Size

Changes the width and height of the plot window.

void object.plot.size(float width, float height)

Returns:None
object:Plot object
width:Plot window width in pixels
height:Plot window height in pixels

Plot Window Move

Moves plot window to the specified location and optionally changes size.

void object.plot.move(float left, float top, float width, float height)

Returns:None
object:Plot object
left:Horizontal coordinate for the left edge of the Plot window in pixels.
top:Vertical coordinate for the top edge of the Plot window in pixels.
width:Optional. Plot window width in pixels
height:Optional. Plot window height in pixels

Setup Window Move

Moves Setup window to the specified location.

void object.setup.move(float left, float top)

Returns:None
object:Plot object
left:Horizontal coordinate for the left edge of the Setup window in pixels.
top:Vertical coordinate for the top edge of the Setup window in pixels.

 
©Aubraux

All Rights
Reserved