10 Programming examples
The following is a simple example of how to control the SLED 1000 / 1300 Series module using SCPI commands. See the previous section for specific
details and extra parameters that the listed commands accept.
We recommend that you use the
*ESR?
query after every command that is sent to the device. This enables you to debug unreceived or incorrect
commands sent to the product.
#Identifying the SLED PXIe module
:IDN? #Query to confirm the correct PXIe chassis is setup
:OPT? #Query the available module configuration
:SLOT3:IDN? #Start the sweep at 1250nm
#Configuring the SLED PXIe module
:SENSe3:CHANnel1:WAVelength 1550 NM #Set the wavelength of the power meter
:SENSe3:CHANnel1:NULLing #With no optical input connected and the dust cap stillfastened on the power meter,
run dark current nulling
:SENSe3:CHANnel1:TIMEing? #Query the time remaining for nulling to be completed
:SENSe3:CHANnel1:AVERagingtime 0.1 S #Set the averaging time to 0.1 s
#Querying the SLED PXIe module configuration values
:SENSe3:CHANnel1:WAVelength? #Query the wavelength of the power meter
:SENSe3:CHANnel1:AVERagingtime? #Query the averaging time to 0.1 s
#Querying the optical power
:SENSe3:CHANnel1:POWer? #Query the measured optical power with an optical input connected to the power
meter
#Configuring and initiating the power tracing
:SENSe3:TRACE:PTS 1000 #Set the number of trace points to 1000
:SENSe3:TRACE:RATE MAX #Set the trace sampling rate to the MAX of 12 kHz
:SENSe3:TRACE:TRIG FORCE #Set the trace trigger mode. This will initiate a trace assoon as the conditions
for the set trigger mode are met
#Querying the acquired power trace
:SENSe3:TRACE:CMP? #Query the status of the trace completion
:SENSe3:TRACE1? #If the trace complete status is = 1, query the acquiredtrace on Channel 1
Quantifi Photonics | SLED 1000 / 1300 Series PXIe User Manual | Document version 1.08
48 / 61