beautypg.com

Ocean Optics Jaz Scripting Language and Scripting Engine User Manual

Page 15

background image

2: Jaz Scripting Engine Architecture

013-RD000-000-12- 201010

7

The DO ... DONE construct is a special iteration construct. It behaves exactly like a FOR loop, but with
one special caveat: a DO ... DONE loop cannot have GOTO statements in it. CALL statements are
allowed in a DO … DONE loop.

Built-In Variables

The intent of built-in variables is to make system-wide setting values available to the developer. For
example, INTEGRATION_TIME_SECONDS establishes an integration time of 1 second by default. To
change this, assign it a new value prior to taking a spectrum reading. Those that are marked as constants
are not user-modifiable and are meant to convey values to system functions. For example, in specifying
lamp intensity the value ALLBULBS means “set all bulbs in the light source to the value” while BULB1
specifies the first bulb in the source.

Built-in Variables for Use

NOTE:

Variables in

red

are important settings for the spectrometer and should be set by the developer to

alter the default behavior.

Variable

Type

Constant

Typical Use/Value

NONE

TEXT

YES

"NONE"

LED_LAMP_TYPE

INT_16

YES

6

UV_VIS_LAMP_TYPE

INT_16

YES

4

VIS_NIR_LAMP_TYPE

INT_16

YES

5

AVERAGES

INT_16

0

BOX_CAR

INT_16

0

LAMBDA_LOW

INT_16

0

LAMBDA_HIGH

INT_16

0

LIGHT

INT_16

0

RESPONSE_TIMEOUT_SECONDS

INT_16

5

NUMBER_OF_PIXELS

INT_16

2048

NON_LINEARITY

INT_16

0