ML24xxA Native Commands GPIB Operation
8-18 PN: 10585-00001 Rev. P ML2437A/38A OM/PM
AVG (Sets up averaging for a sensor)
Syntax: AVG <s>, [<mode>],[<val>]
s: A or B
mode:
OFF
MOVMoving
RPTRepeat
AUTOAutomatic
val: ASCII string representing an integer, 1 to 512.
Remarks: MOVING average gives an update to the meter every sample/gate
(normally 20 ms).
REPEAT averaging only returns a reading when the number of readings
specified by <val> have been taken (1-512).
AUTOMATIC averaging uses a MOVING type of average. The display
updates at approximately 100 ms intervals, however the data is
available at the full rate. The display is slowed down to prevent jitter
and allow the user to follow the update. Since AUTOMATIC averaging
automatically chooses an average number with the averaging mode set
internally to MOVING, the USER averaging number is not used.
However, if a value is entered in the same command as the one which
changes to AUTO averaging, it will also update the USER averaging
number.
Example: AVG A, AUTO, 64
This command will set the system to AUTO averaging and the USER
averaging number to 64. But, the Auto Averaging measurement system
does not use the USER averaging number.
Note: The AVG mnemonic can be sent to just change the <mode> of averaging
(MOV, REPEAT etc.) without sending a number, but there must
be a
following COMMA to indicate the <val> parameter is not being sent.
See the first example below.
The AVG mnemonic can also be sent to just change the User Average
Number <val> (1 to 512) without changing the averaging mode, but
there must
be a COMMA to indicate the <mode> parameter is not being
sent. See the last example below.
Query: AVG? <S>
Returned String: AVG <S>,<MODE>,<VAL>