The following SCPI programming examples are for frequency, period and pulse
width measurements.
Example 1:
// Supply the signal to COUNT301_GATE
// Take 5.5 kHz with 70% duty cycle square wave as measurement
-> COUN:GATE:SOUR EXT,(@301)
-> COUN:GATE:POL AHI,(@301)
-> COUN:CLK:POL AHI,(@301)
-> COUN:CLK:SOUR INT,(@301)
-> COUN:CLK:INT?
<- 12000 KHz
-> SOUR:COUN:OUTP:POL AHI,(@301)
-> COUN:FUNC FREQ,(@301)
-> MEAS:COUN:DATA? (@301)
<- 5.499542
-> COUN:FUNC PER,(@301)
-> MEAS:COUN:DATA? (@301)
<- 0.1818333
-> COUN:FUNC PWID,(@301)
-> MEAS:COUN:DATA? (@301)
<- 0.12725
-> MEAS:COUN:FREQ? (@301)
<- 5.499542
-> COUN:FUNC? (@301)
<- FREQ
-> MEAS:COUN:PER? (@301)
<- 0.1818333
-> COUN:FUNC? (@301)
<- PER
-> MEAS:COUN:PWID? (@301)
Keysight U2300A Series User's Guide
Features and Functions
// Counter mode setting
// Return value depend on
function set
// Frequency in kHz
// Period in ms
// Pulse width in ms
// Function automatic set to
FREQ
// Function automatic set to
PER
3
65