HP E1419A User Manual page 195

Measurement and control module
Table of Contents

Advertisement

ALGorithm
NOTE for
HP C-SCPI
NOTE for
HP C-SCPI
When accepted
and Usage
194 HP E1419 Command Reference
ALG:DEF 'ALG1',#211O132=I100;∅
For Block Program Data, the Algorithm Parser requires that the source_code data
end with a null (0) byte. You must append the null byte to the end of the block's
<data byte(s)>, and account for it in the byte count <digit(s)> from above. If the null
byte is not included, or <digit(s)> doesn't include it, the error "Algorithm Block
must contain termination '\0'" will be generated.
Indefinite Length Block Program Data: This form terminates the data transfer
when it received an End Identifier with the last data byte. Use this form only when
you are sure your controller platform will include the End Identifier. If it is not
included, the ALG:DEF command will "swallow" whatever data follows the
algorithm code. The syntax for this parameter type is:
#0<data byte(s)><null byte with End Identifier>
Example from "Quoted String" above:
ALG:DEF 'ALG1',#0O132=I100;∅
For Block Program Data, the Algorithm Parser requires that the source_code data
end with a null (0) byte. You must append the null byte to the end of the block's
<data byte(s)>. The null byte is sent with the End Identifier. If the null byte is not
included, the error "Algorithm Block must contain termination '\0'" will be
generated.
1. If <alg_name> is not enabled to swap (not originally defined with the
<swap_size> parameter included) then both of the following conditions must be
true:
a.
Module is in Trigger Idle State (after *RST, or ABORT, and before INIT).
OK
*RST
ALG:DEF 'GLOBALS','static float My_global;'
ALG:DEF 'ALG3','My_global = My_global + 1;'
Error
INIT
ALG:DEF 'ALG5','static float a_out; O136=a_out;'
"Can't define new algorithm while running"
(where "∅" is a null byte, required for
C-SCPI only)
(where "∅" is a null byte, required for
C-SCPI only)
Chapter 6

Advertisement

Table of Contents
loading

Table of Contents