SAMPle:COUNt

34980A

SAMPle:COUNt

Syntax

SAMPle:COUNt {<count>|MIN|MAX|DEF}

SAMPle:COUNt? [{MIN|MAX}]

Description

This command selects the number of auto-triggered samples the internal DMM will take per channel per trigger. The sample count applies to both scanning and stand-alone DMM measurements (with no scan list). The front-panel sample annunciator ( "*" ) turns on during each measurement.

Stand-Alone DMM Model:

  

  Scanning Model:

Used With:

  • 34921A through 34925A Multiplexer Modules

  • 34950A Digital I/O Module (digital input and counter channels only)

  • 34952A Multifunction Module (digital input and totalizer channels only)

  • Internal DMM

Parameters

Name

Type

Range of Values

Default Value

<count>

Numeric

1 to 500,000 samples.

MIN = 1 sample, MAX = 500,000 reading samples

1 sample per trigger

Remarks

  • For the multiplexer modules, the internal DMM is required. An error is generated if the internal DMM is disabled (see INSTrument:DMM[:STATe] command) or not installed in the mainframe.

  • For scanning, the specified sample count sets the number of readings per channel (same for all channels in the scan list). If no channels have been assigned to the scan list (see ROUTe:SCAN command), the sample count sets the number of readings per trigger for the internal DMM.

  • After setting the sample count, you must place the internal DMM in the "wait-for-trigger" state using the INITiate or READ? command. A trigger will not be accepted from the selected trigger source (see TRIGger:SOURce command) until the internal DMM is in the "wait-for-trigger" state.

  • You can specify a sample count in conjunction with a trigger count and a sweep count. The three parameters operate independent of one another, and the total number of readings returned will be the product of the three parameters.

  1. The trigger count selects the number of triggers to be accepted before returning to the "idle" trigger state (see TRIGger:COUNt command).

  2. The sweep count selects the number of sweeps per trigger event during a scan (see SWEep:COUNt command).

  • You can store at least 500,000 readings in memory and all readings are automatically time stamped. If memory overflows, the new readings will overwrite the first (oldest) readings stored; the most recent readings are always preserved.

  • The CONFigure and MEASure? commands automatically set the sample count to "1".

  • The instrument sets the sample count to "1" after a Factory Reset ( *RST command). An Instrument Preset (SYSTem:PRESet command) or Card Reset (SYSTem:CPON command) does not change the setting.

Return Format

The query command returns the sample count in the form "+1.00000000E+00".

Examples

The following program segment configures the internal DMM for a ac voltage measurement (no scan list) and sets the sample count to 5. When a trigger is received from the selected trigger source, a total of five readings will be returned.   

CONF:VOLT:AC SAMP:COUN 5
INIT

The following program segment configures two channels for dc voltage measurements, puts the channels in the scan list (the scan list is redefined), and sets the sample count to 10. When a trigger is received from the selected trigger source, 10 readings will be returned for each channel in the scan list (20 readings total).  

CONF:VOLT:DC 10,0.003,(@1003,1008)
ROUT:SCAN (@1003,1008)
SAMP:COUN 10

INIT

The following query returns the present sample count.

SAMP:COUN?

Typical Response:  +1.00000000E+01

See Also

ROUTe:CHANnel:DELay

ROUTe:SCAN

SWEep:COUNt

TRIGger:COUNt

TRIGger:SOURce