SWEep:COUNt
Syntax
SWEep:COUNt {<count>|MIN|MAX|DEF}
SWEep:COUNt? [{MIN|MAX}]
Description
This command selects the number of sweeps per trigger event during a scan (a sweep is one pass through the scan list). The front-panel sample annunciator ( "*" ) turns on during each measurement.
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)
Parameters
Name |
Type |
Range of Values |
Default Value |
<count> |
Numeric |
1 to 500,000 sweeps. MIN = 1 sweep, MAX = 500,000 reading sweeps |
1 sweep through the present scan list |
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.
After setting the sweep 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.
The sweep count is valid only while scanning (also valid with a temporary scan list; see READ? command). If no channels have been assigned to the scan list (see ROUTe:SCAN command), the specified sweep count is ignored (no error is generated).
You can specify a sweep count in conjunction with a trigger count and a sample count. The three parameters operate independent of one another, and the total number of readings returned will be the product of the three parameters.
The trigger count selects the number of triggers to be accepted before returning to the "idle" trigger state (see TRIGger:COUNt command).
The sample count selects the number of auto-triggered samples per channel per trigger (see SAMPle: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 sweep count to 1 sweep.
The instrument sets the sweep 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 sweep count in the form "+1.00000000E+00".
Examples
The following command sets the sweep count to 3. When a trigger is received from the selected trigger source, the instrument will sweep through the channels in the scan list three times.
SWE:COUN 3
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 sweep count to 3. When a trigger is received from the selected trigger source, 3 readings will be returned for each channel in the scan list (6 readings total).
CONF:VOLT:DC 10,0.003,(@1003,1008)
ROUT:SCAN (@1003,1008)
SWE:COUN 3
INIT
The following query returns the present sweep count.
SWE:COUN?
Typical Response: +3.00000000E+00