248 VT1422A Command Reference Chapter 7
ALGorithm
When Accepted: Both before and after INIT. Also accepted before and after
the algorithm referenced is defined.
Related Commands: ALG:UPDATE, ALG:STATE?, ALG:DEFINE
Send with VXIplug&play Function: hpe1422_cmd(...)
Usage ALG:STATE 'ALG2',OFF disable ALG2

ALGorithm[:EXPLicit][:STATe]?

ALGorithm[:EXPLicit][:STATe]?’<alg_name>’ returns the state (enabled or
disabled) of algorithm <alg_name>.
Parameters

Comments Since ALG:STATE is valid for an undefined algorithm, ALG:STATE? will

return the current state for <alg_name> even if it is not currently defined.
Returned Value: Numeric, 0 or 1. Type is uint16.
*RST Condition: ALG:STATE 1
Send with VXIplug&play Function: hpe1422_cmdInt16_Q(...)

ALGorithm[:EXPLicit]:TIME?

ALGorithm[:EXPLicit]:TIME? ’<alg_name>’ computes and returns a worst-case
execution time estimate in seconds.
Parameters

Comments When <alg_name> is ALG1 through ALG32, ALG:TIME? returns only the time

required to execute the algorithm's code.
When <alg_name> is 'MAIN', ALG:TIME? returns the worst-case execution
time for an entire measurement & control cycle (sum of MAIN, all enabled
algorithms, analog and digital inputs and control outputs).
If triggered more rapidly than the value returned by ALG:TIME? 'MAIN',
the VT1422A will generate a "Trigger too fast" error.
Parameter
Name Parameter
Type Range of
Values Default
Units
alg_name string ALG1 - ALG32 none
Parameter
Name Parameter
Type Range of
Values Default
Units
alg_name string ALG1 - ALG32 or MAIN none