Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ E1332A(5) — HP-UX SCPI B.02.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

E1332A()

 

NAME

 E1332A − SCPI Commands Quick Reference
 

DESCRIPTION

 
The following is a SCPI command quick reference for the HP E1332A 4-Channel Counter Totalizer.  This quick reference provides:
 
 
Command Descriptions
 
Commands Not Supported
 
Commands Changed
 
Query Command Response Types
 
Overlapping Commands
 
ONSRQ Restrictions
 
The SCPI commands are to be embedded in HP Compiled SCPI commands.  For information on HP Compiled SCPI, see the HP Compiled SCPI commands in manual pages, or see the HP Compiled SCPI learning products.
 
For additional information on SCPI commands, see the VXI User’s Guide for the instrument.
 

COMMAND DESCRIPTIONS

 

Common Commands

 

*IDN?  Returns the identification string of the instrument. 
 

*RST Resets the instrument to a known state. 
 

*TST?  Self-Test, returns 0 if passes. 
 

*OPC Sets the request for OPC flag when all pending operations have completed. 
 

*OPC?  Query operation complete. Returns 1 when all pending operations have completed. 
 

*WAI Wait for complete. 
 

*CLS Clears all status registers. 
 

*ESE Enable status register bits. 
 

*ESE?  Query event status enable. 
 

*ESR?  Query and clear the event status register. 
 

*SRE Sets the service request enable register bits and corresponding serial poll status register bits to generate a service request. 
 

*SRE?  Query service request enable. 
 

*STB?  Query read status byte. 
 

*TRG Bus Trigger. 
 

*RCL Recall instrument state. 
 

*SAV Store instrument state. 
 

SCPI Commands

 

ABORt Abort measurement in progress. 
 

CONFigure[<channel>]:FREQuency [<range>[,<resolution>]]
Configure channel for frequency measurement. <channel> can be 1 or 3. <range> can be 2E-3 to 4E6 Hz, MIN, MAX, or AUTO.  <resolution> can be 5.4E-13 to 500 Hz, MIN, or MAX.
 

CONFigure<channel>:NWIDth
Configure channel for negative pulse width measurement. <channel> can be 2 or 4.
 

CONFigure:[<channel>]PERiod [<range>[,<resolution>]]
Configure channel for period measurement. <channel> can be 1 or 3.  <range> is 250E-9 to 429 sec, MIN, MAX, or AUTO. <resolution> is 9.6E-16 to .002 sec, MIN, or MAX.
 

CONFigure<channel>:PWIDth
Configure channel for positive pulse width measurement. <channel> is 2 or 4.
 

CONFigure[<channel>]:TINTerval
Configure channel for time interval measurement.  <channel> can be 1 or 3.
 

CONFigured[<channel>]:TOTalize
Configure channel for totalize measurement. <channel> can be 1 to 4.
 

CONFigure[<channel>]:UDCount
Configure channel for up-down count. <channel> can be 1 or 3.
 

CONFigure[<channel>]? 
Query the presently selected configuration. <channel> can be 1 to 4.
 

FETCh[<channel>]? 
Transfers measurement results to the output buffer. <channel> can be 1 to 4.
 

INITiate[<channel>]
Begins a measurement cycle. <channel> can be 1 to 4.
 

INPut[<channel>]:FILTer[:LPASs]:FREQuency <setting> | MIN | MAX | DEF
Used to enter digital low pass input filter frequency.  MIN selects 4Hz, DEF and MAX selects 131.072 kHz. <channel> can be 1 to 4. <setting> is 4 Hz to 131.073E3 Hz, MIN, MAX, or DEF.
 

INPut[<channel>]:FILTer[:LPASs]:FREQuency? 
Returns the presently selected digital low pass input filter frequency; or the default, minimum, or maximum frequencies available. <channel> can be 1 to 4.
 

INPut[<channel>]:FILTer[:LPASs][:STATe] <1 | 0 | ON | OFF>
Enables (1 | ON) or disables (0 | OFF) the digital low pass input filter. <channel> can be 1 to 4.
 

INPut[<channel>]:FILTer[:LPASs][:STATe]? 
Returns the present digital low pass input filter selection. <channel> can be 1 to 4.  Returns 1 if low pass filter is on and 0 if off.
 

INPut[<channel>]:ISOLate <1 | 0 | ON | OFF>
Used to select isolated (ON or 1) or non-isolated (OFF or 0) input terminals on all channels. <channel> can be 1 to 4.
 

INPut[<channel>]:ISOLate? 
Returns the present input terminal selection. <channel> can be 1 to 4.  Returns 1 if isolated, 0 if not selected.
 

MEASure[<channel>]:FREQuency? [<range>[,<resolution>]]
Configure then perform frequency measurement. <channel> can be 1 or 3.  <range> is 2E-3 to 4E6 Hz, MIN, MAX, or AUTO.  <resolution> is 5.4E-13 to 500 Hz, MIN, or MAX.
 

MEASure<channel>:NWIDth? 
Configure then perform negative pulse width measurement. <channel> is 2 or 4.
 

MEASure[<channel>]:PERiod? [<range>[,<resolution>]]
Configure then perform period measurement. <channel> can be 1 or 3.  <range> is 250E-9 to 429 sec, MIN, MAX, or AUTO.  <resolution> is 9.6E-16 to .002 sec, MIN, or MAX.
 

MEASure<channel>:PWIDth? 
Configure then perform positive pulse width measurement. <channel> can be 2 or 4.
 

MEASure[<channel>]:TINTerval? 
Configure then perform time interval measurement. <channel> can be 1 or 3.
 

Read[<channel>]? 
Initiate configured measurements and put result in output buffer. <channel> can be 1 to 4.
 

[SENSe[<channel>]:]EVENt:LEVel <level> | MIN | MAX | DEF
Used to set the event level for a specific channel pair.  MIN enters -2.56V, DEF enters 0 V, and MAX enters +2.54 V. <channel> can be 1 to 4. <level> can be -2.56V to 2.54V, MIN, MAX, or DEF.
 

[SENSe[<channel>]:]EVENt:LEVel? 
Returns the presently selected event level for a specific channel pair; or the default, minimum, or maximum level available. <channel> can be 1 to 4.
 

[SENSe[<channel>]:]EVENt:SLOPe <POSitive | NEGative>
Used to set the event slope for a specific channel. <channel> can be 1 to 4.
 

[SENSe[<channel>]:]EVENt:SLOPe? 
Returns the presently selected event slope for a specific channel. <channel> can be 1 to 4.  Returns POS or NEG.
 

[SENSe[<channel>]:]FREQuency:APERture <time> | MIN | MAX | DEF
Used to set aperture time for SENSe:FUNCtion:FREQuency configurations.  MIN/DEF enters 2 msec, MAX enters 65.536 sec. <channel> can be 1 or 3.  <time> can be 2E-3 to 65.536 sec, MIN, MAX, or DEF.
 

[SENSe[<channel>]:]FREQuency:APERture? 
Returns the presently selected aperture time; or the default, minimum, or maximum time available. <channel> can be 1 or 3.  Returned value is in seconds from 2 msec to 65.536 sec.
 

[SENSe[<channel>]:]FUNCtion:<function>
Set up to perform a specified measurement in manual range, but doesn’t perform the measurement.  <channel> can be 1 to 4.  <function> can be FREQuency, NWIDth (for negative pulse width), PERiod, PWIDth (for positive pulse width), TINTerval (for time interval), TOTalize, UDCount (for up-down count).
 

[SENSe[<channel>]:]FUNCtion? 
Queries to determine the sensor function.  <channel> can be 1 to 4. FREQ, NWID, PER, PWID, TINT, TOT, UDC, or UNDEFINED is returned.
 

[SENSe[<channel>]:]PERiod:NPERiods <cycle> | MIN | MAX | DEF
Used to set number of periods for SENSe:FUNCtion:PERiod configurations.  MIN/DEF enters 2, MAX enters 65536. <channel> can be 1 or 3.
 

[SENSe[<channel>]:]PERiod:NPERiods? 
Returns the presently selected number of periods; or the default, minimum, or maximum number available. <channel> can be 1 or 3.
 

[SENSe[<channel>]:]TOTalize:GATE:POLarity <NORmal | INVerted>
Used during gated totalize measurements to select the gate channel polarity (accumulate counts when the gate is high (NORM) or low (INV)). <channel> can be 2 or 4.
 

[SENSe[<channel>]:]TOTalize:GATE:POLarity? 
Returns the presently selected gate channel polarity. <channel> can be 2 or 4.  Returns NORM or INV.
 

[SENSe[<channel>]:]TOTalize:GATE[:STATe] <1 | 0 | ON | OFF>
Used to enable gating on totalize measurements.  1 | ON enables gating, 0 | OFF disables gating. <channel> can be 2 or 4.
 

[SENSe[<channel>]:]TOTalize:GATE[:STATe]? 
Returns whether totalize measurement are being gated. <channel> can be 2 or 4. Returns 1 if gated enabled, 0 if disabled.
 

STATus:QUES:CONDition? 
Returns the contents of the Questionable Data/Signal Condition Register. Returns decimal weighted value from 0 to 7680 indicating which bits are true.
 

STATus:QUES:ENABle <number>
Used to set conditions in the Questionable Data/Signal Enable Status Register. <number> is 0 to 65535.
 

STATus:QUES:ENABle? 
Returns the contents of the Questionable Data/Signal Enable Status Register. Returns a decimal weighted value from 0 to 65535.
 

STATus:QUES[:EVENt?]
Returns the contents of the Questionable Data/Signal Event Register. Returns decimal weighted value from 0 to 7680 indicating which bits are true.
 

SYSTem:ERRor? 
Returns the error number/message in the Error Queue.
 

TRIGger[:IMMediate]
Causes a trigger to occur.
 

TRIGger:SOURce <BUS | HOLD | IMMediate>
Sets trigger to source specified.  BUS uses *TRG command, HOLD sets the trigger source to hold, IMM allows measurement to complete after being initiated.
 

TRIGger:SOURce? 
Returns the presently selected trigger source (BUS, HOLD, or IMM).
 
 

COMMANDS NOT SUPPORTED

 
C-SCPI does not support the commands listed.  However, these commands are still supported in the command module version.
 
Macro commands not supported:  MEM:DEL:MACR, *DMC, *RMC, *GMC, *PMC, *LMC, and *EMC
 
Monitor commands not supported:  DISP:MON:STAT and DISP:MON:CHAN
 

COMMANDS CHANGED

 
The commands listed are different than in the Command Module version.
 
ABORT can abort a measurement in progress in the background (when cscpi_overlap ON).  This wasn’t possible in the Command Module version because it was not possible to parse the next command until the measurement was complete.  However, if two measurements (other that totalize and up/down count) are started in parallel and one is aborted, the other one will also be aborted. For example:
 
INST_SEND(Uut_e1332,"TRIG:SOUR HOLD");
 
INST_SEND(Uut_e1332,"CONF:FREQ");
 
INST_SEND(Uut_e1332,"CONF3:FREQ");
 
INST_SEND(Uut_e1332,"INIT;:INIT3");
 
INST_SEND(Uut_e1332,"TRIG");
 
INST_SEND(Uut_e1332,"ABORT3");
 
Frequency measurement on channel 1 will also be aborted.
 

QUERY COMMAND RESPONSE TYPES

 
All but the following queries will return an integer.
 

*IDN?  quoted string
 

SENS:FUNC?  quoted string
 

SENS:FREQ:APER?  double
 

SENS:PER:NPER?  double
 

SENS:TOT:GATE:POL?  string
 

SENS:EVEN:LEV?  double
 

SENS:EVEN:SLOP?  string
 

SYST:ERR?  integer, quoted string
 

SYST:VERS?  quoted string
 

INP:FILT:FREQ?  double
 

TRIG:SOUR?  string
 

CONF?  quoted string
 

FETC?  double
 

READ?  double
 

MEAS:FREQ?  double
 

MEAS:PER?  double
 

MEAS:TINT?  double
 

MEAS:PWID?  double
 

MEAS:NWID?  double
 

OVERLAPPING COMMANDS

 
The following commands continue execution (some by interrupt service routines) after the command function returns to the user program (when cscpi_overlap ON):
 
*RST
 
*TRG
 
INIT
 
INP:FILT:FREQ
 
INP:FILT:STAT
 
INP:ISOL
 
SENS:EVEN:LEV
 
TRIG
 
Commands may be sent to other instruments while the counter driver is finishing one of these commands. The *OPC?, *WAI or *OPC commands may be used to read when the overlapping command has totally finished.
 
Commands which can run overlapped with overlapping commands:
 
If an overlapping command has been started and another command is sent to the same instrument, the second command will usually block, waiting for the previous command to finish, before executing. The following commands are the exceptions, they will run overlapped with a overlapping command:
 
*CLS
 
*OPC (If previous command was input conditioning command, will block).
 
ABORT (aborts the measurement in progress)
 
If an overlapping command has been started and a query is sent to the same instrument, the query will usually run overlapped with the previous command. The following are the exceptions, they will block, waiting for the previous command to finish prior to executing:
 
CONF?
 
FETC?
 
READ?
 
MEAS:FREQ?
 
MEAS:PER?
 
MEAS:TINT?
 
MEAS:PWID?
 
MEAS:NWID?
 
*TST?
 
*OPC? (by definition)
 
 

ONSRQ RESTRICTIONS

 
In general, an SRQ function should not send any commands to a counter while sending commands to that instrument from the main (foreground) program.
 
The following may NOT be used in an SRQ function which executes as an interrupt routine (because the execution routines wait for an interrupt):
 
cscpi_overlap OFF:
 
*RST
 
*TRG
 
*TST?
 
INIT
 
MEAS:xxxx?
 
READ?
 
TRIG
 
cscpi_overlap ON:
 
*RST
 
*TST?
 
MEAS:xxxx?
 
READ?
 
If enabled, the following may cause an SRQ function to be executed from an interrupt routine:
 
cscpi_overlap ON:
 
any non-blocking command followed by *OPC measurement with questionable data/overflow
 
 

  —  December 08, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026