Single parameter functions, Multiple parameter functions, Verbs – Roper Photometric User Manual

Page 10

Advertising
background image

4

Advanced Camera Operation Manual

Single Parameter

Functions

Some functions require a single parameter. Fractional/decimal and negative
values are not allowed. Numeric expressions generate an error. Whitespace can
be included anywhere inside the parentheses.

The following parameters are legal:

loop_begin( 50 );
loop_begin( 50 / *exposure count*/ );
loop_begin( 50
);

The following parameters are illegal:

loop_begin ( 50 );

whitespace before parentheses

loop_begin( 50, );

contains a comma

loop_begin( 50 0 );

two numeric entries, only one allowed

loop_begin( -50 );

minus sign is illegal

loop_begin( (5*10));

numeric expressions not allowed

Multiple Parameter

Functions

A few functions require multiple parameters. There are no variable argument
lists, so each parameter is always required. The parameters must be separated
by commas. Insert whitespace as desired.

The following examples are legal:

pixel_readout(0,

100,

1,

50,

2 );

pixel_readout(

0,

100,

1,

50,

2 );

pixel_readout(

0,
100,

1,
50,
2);

/****MAIN FUNCTION****/
/* serial offset of “0” */
/* serial size, value:100 */
/* serial binning */
/* parallel size */
/*par bin*/.

Verbs

A verb describes which function is performed next. Verb names are a mixture of
lowercase text and underscore characters. All verbs are followed by parentheses,
even if the verb does not require parameters. There is no whitespace between
the verb name and the opening parenthesis. List parameters inside the
parentheses and separate the parameters with commas. Whitespace is allowed
in the parameter list, but is not required. After the closing parenthesis, add a
semicolon. See sample below:

verb1();
verb2

(parameter, parameter, parameter);

verb3

(parameter);

verb4

(parameter);

(whitespace) verb5()

;

You can use several verbs on a single line, one verb per line, several lines of
whitespace, or any combination of the above.

Advertising