[SENSe:]COUNter:GATE:SOURce

34980A

[SENSe:]COUNter:GATE:SOURce

Syntax

[SENSe:]COUNter:GATE:SOURce <source>, (@<ch_list>)

[SENSe:]COUNter:GATE:SOURce? (@<ch_list>)

Description

This command selects the gate source for counter measurements on the 34950A Digital I/O Module (each bank has it's own Gate input line). You can select either the internal (default) source or an external gate signal. Changing the gate source while an initiated measurement is in progress (see [SENSe:]COUNter:INITiate command) is not allowed.

Used With:

  • 34950A Digital I/O Module

Parameters

Name

Type

Range of Values

Default Value

<source>

Discrete

{INTernal|EXTernal}

INTernal

<ch_list>

Numeric

One or more counter channels in the form (@sccc).
Select from s301 or s302.

This is a required parameter

Remarks

  • If you change the gate polarity while a totalizing operation is in progress, the count on the specified channels will be cleared.

  • For initiated measurements (see [SENSe:]COUNter:INITiate command), the counter can generate its own internally-timed gate signal. If you select the internal gate source, the counter will be triggered immediately after the [SENSe:]COUNter:INITiate command is received. If you select the external gate source, the [SENSe:]COUNter:INITiate command initiates (arms) the measurement and a valid edge on the external Gate line will trigger the internally-timed gate.

  • For totalizer measurements with an internal gate source, the counter will continuously totalize (free-running mode). With an external gate source, the counter will totalize only during the time from the first assertion to the first de-assertion of the external gate signal (see diagram below).

  • The selected gate source is stored in volatile memory and will be set to "INT" when power is turned off or after a Factory Reset (*RST command).

Return Format

The query command returns "INT" or "EXT" for the specified channels. Multiple responses are separated by commas.

Examples

The following command selects an external gate source on counter channels 301 and 302 on the module in slot 3.  

COUN:GATE:SOUR EXT,(@3301,3302)

The following query returns the gate source on counter channels 301 and 302 on the module in slot 3.

COUN:GATE:SOUR? (@3301,3302)

Typical Response:  EXT,EXT

See Also

[SENSe:]COUNter:GATE:POLarity

[SENSe:]COUNter:GATE:TIME[:INTernal]

[SENSe:]COUNter:INITiate