The following SCPI programming example shows how to set the counter mode.
// Supply the signal to COUNT301_CLK
-> COUN:FUNC TOT,(@301)
-> COUN:GATE:SOUR INT,(@301)
-> COUN:CLK:POL AHI,(@301)
-> COUN:CLK:SOUR EXT,(@301)
-> COUN:TOT:IVAL 100,(@301)
-> COUN:TOT:UDOW:DIR UP,(@301)
-> COUN:TOT:UDOW:SOUR INT,(@301)
-> SOUR:COUN:OUTP:POL AHI,(@301)
-> COUN:TOT:INIT (@301)
-> MEAS:COUN:TOT? (@301)
<- 100
-> MEAS:COUN:DATA? (@301)
<- 100
-> COUN:GATE:CONT ENAB,(@301)
-> COUN:GATE:CONT DIS,(@301)
-> MEAS:COUN:TOT? (@301)
<- 105
-> MEAS:COUN:DATA? (@301)
<- 105
-> COUN:ABOR (@301)
-> COUN:TOT:CLE (@301)
-> MEAS:COUN:TOT? (@301)
<- 0
-> MEAS:COUN:DATA? (@301)
<- 0
Keysight U2300A Series User's Guide
Features and Functions
// Counter mode setting
// Set as Totalize function
// Set the GATE source as internal
// Set the clock polarity as active
high
// Set the clock source as external
// Initial Count value
// Set as Count Up mode
// Set the Up/Down source as
internal
// Initiate Totalize
// Initial value = 100
// Return Totalize value
// Start Counting (for INT gate
only)
// Stop Counting (for INT gate
only)
// Abort all counter operation
// Clear Count value
3
63