Scpi parameter types, Error codes, Programming examples – Quantum Composers 9250 Series User Manual
Page 35

9250 Manual Version 1.2 | Quantum Composers
35
SCPI Parameter Types
The following parameter types are used:
Accepts all commonly used decimal representation of
numbers including optional signs, decimal points, and
scientific notation:
For Example: 123, 123e2, -123, -1.23e2, .123, 1.23e-
2, 1.2300E-01
Represents a single binary condition that is either true or
false. True is represented by a 1 or ON; false is
represented by a 0 or OFF. Queries return 1 or 0.
Selects from a finite number of predefined strings.
Error Codes
The unit responds to all commands with either:
ok
’n ‘
Where
‘n’ is one of the following error codes:
1.
Incorrect prefix, i.e. no colon or * to start command.
2.
Missing command keyword.
3.
Invalid command keyword.
4.
Missing parameter.
5.
Invalid parameter.
6.
Query only, command needs a question mark.
7.
Invalid query, command does not have a query form.
8.
Command unavailable in current system state.
Programming Examples
Example 1)
20 ms pulse width, 2.3 ms delay, 10 Hz internal trigger, and continuous operation.
:PULSE1:STATE ON
enables channel A
:PULSE1:POL NORM
sets polarity to active high
:PULSE:WIDT 0.020
sets pulse width to 20 ms
:PULSE1:DELAY 0.0023
sets delay to 2.3 ms
:PULSE0:MODE NORM
sets system mode to continuous
:PULSE0:PER 0.1
sets period to 100 ms (10 Hz)
:PULSE0:EXT:MODE DIS
disables the external trigger