Programming an Audio Level Measurement

Programming an Audio Level Measurement

Last updated: December 3, 2008

This measurement is not applicable to GPRS or EGPRS.

This section provides an example of how to make an audio level measurement via the GPIB.

The following procedure assumes that an audio source is connected to the AUDIO IN connectors. See Analog Audio Measurement Description .

  1. Configure analog audio measurement parameters using the SETup subsystem. Even though default settings exist for each parameter, it is preferable to deliberately set each parameter to make sure the setting is correct for the specific audio analyzer measurement you are making.
  2. Start the analog audio measurement using the INITiate subsystem.
  3. Use the FETCh? subsystem to obtain analog audio measurement results.

Programming Example

 
10  OUTPUT 714;"SETup:AAUDio:CONTinuous OFF" !Set the analog audio 
20                                           !measurements to single trigger mode.
30  OUTPUT 714;"SETup:AAUDio:EXPECTED:VOLTage 3V" !Set the Expected Amplitude level for
40                                                !audio input voltage in Vpeak.
50  OUTPUT 714;"SETup:AAUDio:SDIStortion:STATe OFF" !Turn off the SINAD and
60                                                  !distortion measurements since
70                                                  !they are not being used.
80  OUTPUT 714;"SETup:AAUDio:FILTer:TYPE NONE" !Bypass all audio filters.
90  OUTPUT 714;"SETup:AAUDio:DEMPhasis:STATe OFF" !Turn off de-emphasis.
100 OUTPUT 714;"SETup:AAUDio:EXPANDOR:STATe OFF" !Turn off the expandor.
110 OUTPUT 714;"SETup:AAUDio:DETector RMS" !Specify the RMS detector for the
120                                            !audio measurement.
130 OUTPUT 714;"SETup:AAUDio:TIMeout 3S" !Set a timeout value of 3 seconds
140                                      !in case the measurement cannot be made.
150 OUTPUT 714;"INITiate:AAUDio" !Start the Analog Audio measurement. 
120 OUTPUT 714;"FETCh:AAUDio:INTegrity?" !Query the integrity indicator to
130                           !verify that a reliable measurement was made.
140 ENTER 714;Integrity  !Enter the returned value into a variable for comparison
150                      !with possible integrity indicator values (not shown here).
160 IF Integrity=0 THEN  !Only fetch measurement result if integrity indicator is 0.
170  OUTPUT 714;"FETCh:AAUDio:VOLTage?" !Fetch the Audio Level result.
180  ENTER 714;Audio_level  !Enter the result into a variable.
190 END IF
200 END

Returned Values

The results returned by this program are:

Related Topics


Analog Audio Measurement Description

Analog Audio Troubleshooting

INITiate

SETup:AAUDio

FETCh:AAUDio