Interactive SourceMeter® Instrument Reference Manual Section 8:
2450-901-01 Rev. B/September 2013 8-77
opc()
This function sets the operation complete (OPC) bit after all pending commands, including overlapped commands,
have been executed.
Type TSP-Link accessible
Affected by Where saved Default value
Usage
opc()
Details
This function causes the operation complete bit in the Status Event Status Register to be set when all previously
started local overlapped commands are complete.
Note that each node independently sets its operation complete bits in its own status model. Any nodes that are
not actively performing overlapped commands set their bits immediately. All remaining nodes set their own bits
as they complete their own overlapped commands.
Example
opc()
waitcomplete() print([[1]])
Also see
*OPC (on page B-6)
Status model (on page C-1)
waitcomplete() (on page 8-252)
print()
This function generates a response message.
Type TSP-Link accessible
Affected by Where saved Default value
Function No
Usage
print(value1)
print(value1, value2)
print(value1, ..., valueN)
The first argument to output
The second argument to output
The last argument to output
One or more values separated with commas
Details
TSP-enabled instruments do not have inherent query commands. Like any other scripting environment, the
print() command and other related print() commands generate output. The print() command creates
one response message.
The output from multiple arguments are separated with a tab character.
Numbers are printed using the format.asciiprecision attribute. If you want use Lua formatting, print the
return value from the tostring() function.