© 2018 Thorlabs
4 Write Your Own Application
25
Executable sample demo:
C:\Program Files\IVI Foundation\VISA\WinNT\TLTSP01\Examples…
…\MS.NET_CS\Output\TSP01_CSharp_Sample.exe
Example for LabView
™
C:\Program Files\National Instruments\LabVIEW xxxx\Instr.lib\TLTSP…
…\TLTSP.llb
(LabVIEW
™
container file with driver vi's and an example. "LabVIEW xxxx" stands for actual
LabVIEW
™
installation folder.)
4.2.2 Command Reference
Note
This command reference is only applicable when writing you own applications for previous-revi-
sion TSP01 sensors without the RevB label on the bottom.
4.2.2.1 IEEE488.2 Common Commands
Common commands are device commands that are common to all devices according to the
IEEE488.2 standard. These commands are designed and defined by this standard. Most of the
commands are described in detail in this section. The following common commands associated
with the status structure are covered in the “Status Structure” section: *CLS, *ESE, *ESE?,
*ESR?, *SRE, *SRE?, *STB?
Command summary
Clears all event registers and Error Queue
Sets the Standard Event Enable Register
Returns the Standard Event Enable Register
Event status register query
Returns and clear the Standard Event Register
Returns the unit’s identification string
Operation complete command
Sets the Operation Complete bit in the Standard Event Re-
gister
Places a “1” into the output queue when all device opera-
tions have been completed
Returns the unit to the *RST default condition
Service request enable command
Sets the Service Request Enable Register
Service request enable query
Returns the Service Request Enable Register
Returns the Status Byte Register
Performs the unit’s self-test and returns the result.
Waits until all previous commands are executed
Command reference
1. *IDN? – identification query - read identification code
The identification code includes the manufacturer, model code, serial number, and firmware re-
vision levels and is sent in the following format: THORLABS,MMM,SSS,X.X.X
Where: MMM is the model code
SSS is the serial number
X.X.X is the instrument firmware revision level
2. *OPC – operation complete - set OPC bit