[SENSe:]COUNter:DATA?
Syntax
[SENSe:]COUNter:DATA? (@<ch_list>)
Description
This command returns the data from the last configured counter measurement on the 34950A Digital I/O Module. The results returned are based on the counter measurement function previously selected (frequency, period, duty cycle, pulse width, or totalize).
Used With:
34950A Digital I/O Module
Parameters
Name |
Type |
Range of Values |
Default Value |
<ch_list> |
Numeric |
One or more counter channels in the form (@sccc).
|
This is a required parameter |
Remarks
If the specified counter channels are currently initiated (see [SENSe:]COUNter:INITiate command) and are using an internal gate source (see [SENSe:]COUNter:GATE:SOURce command), then the [SENSe:]COUNter:DATA? command will pend until the measurement is finished.
When the counter takes an initiated measurement, it gathers enough information about the signal to derive all five measurement attributes (frequency, period, duty cycle, pulse width, and totalize).
For non-initiated totalizer measurements, the [SENSe:]COUNter:DATA? command will return the current result.
Return Format
For initiated measurements, the command returns the results in hertz (frequency), seconds (period or pulse width), percent (duty cycle), or count (totalize). Multiple responses are separated by commas.
For totalizer measurements, the command returns an unsigned decimal value representing the count on each totalizer channel specified (a full 32-bit count is returned). Multiple responses are separated by commas.
Examples
The following command configures counter channels 301 and 302 on the module in slot 3 for frequency measurements and reads the results.
CONF:COUN:FREQ
1E-3,(@3301,3302)
COUN:INIT (@3301,3302)
COUN:DATA? (@3301,3302)
Typical Response: +3.45600000E+05,+1.23400000E+05
The following command configures counter channels 301 and 302 on the module in slot 3 for totalizer measurements and reads the results.
CONF:COUN:TOT
READ,(@3301,3302)
COUN:DATA? (@3301,3302)
Typical Response: 1.321300000E+03,3.874300000E+03
See Also
[SENSe:]COUNter:DCYCle[:DATA]?
[SENSe:]COUNter:FREQuency[:DATA]?
[SENSe:]COUNter:PERiod[:DATA]?