12-50 Instrument Control Library
Series 2600 System SourceMeters Reference Manual
2600S-901-01 Rev. A / May 2006
Return to
makegetter
functions
These functions are used to set and retrieve a value for an attribute.
localnode.showerrors
Attribute
Automatic display of errors.
Usage
errormode = localnode.showerrors
-- Reads show errors state.
localnode.showerrors = errormode
-- Writes show errors state.
errormode
Set to 0 or 1.
Remarks
• If this attribute is set to 1, for any errors that are generated, the unit will automatically
display the errors stored in the error queue, and then clear the queue. Errors will be
processed at the end of executing a command message (just prior to issuing a
prompt if prompts are enabled).
• If this attribute is set to 0, errors will be left in the error queue and must be explicitly
read or cleared.
• When used in an expanded system (TSP-Link),
localnode.showerrors
is sent to
the Remote Master node only. Use
node[N].showerrors
(where
N
is the node
number) to send the command to any node in the system. See
on TSP-Link.
Details
See “
errorqueue functions and attribute
”
Also see
Example
Displays errors:
localnode.showerrors = 1
makegetter
Function
Creates a function to set the value of an attribute.
Usage
getter = makegetter(table, attributename)
table
Read-only table were the attribute is located.
attributename
The string name of the attribute.
getter
Function that returns the value of the given attribute.
Remarks
• This function creates a function that when called returns the value of the attribute.
This function is useful for aliasing attributes to improve execution speed. Calling the
getter
function will execute faster than accessing the attribute directly.
• Creating a
getter
function is only useful if it is going to be called several times.
Otherwise the overhead of creating the
getter
function outweighs the overhead of
accessing the attribute directly.
Содержание SourceMeter 2600 Series
Страница 507: ...AppendixA Specifications Appendix A topics Model 2600S Specifications page A 2 2600S 901 01 Rev A May 2006...
Страница 575: ...AppendixF DisplayCharacterCodes Appendix F topics Introduction page F 2...
Страница 592: ......
Страница 593: ......