Opc(); Print() - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2450 Interactive SourceMeter® Instrument Reference Manual

opc()

This function sets the operation complete (OPC) bit after all pending commands, including overlapped commands,
have been executed.
Type
TSP-Link accessible
Function
No
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
waitcomplete()

print()

This function generates a response message.
Type
TSP-Link accessible
Function
No
Usage
print(value1)
print(value1, value2)
print(value1, ..., valueN)
value1
value2
valueN
...
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.
2450-901-01 Rev. B/September 2013
Affected by
(on page C-1)
(on page 8-252)
Affected by
The first argument to output
The second argument to output
The last argument to output
One or more values separated with commas
Section 8: TSP command reference
Where saved
Default value
Output:
1
Where saved
Default value
8-77

Advertisement

Table of Contents
loading

Table of Contents