EasyManuals Logo

Tektronix KEITHLEY 2600B Series User Manual

Tektronix KEITHLEY 2600B Series
834 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #199 background imageLoading...
Page #199 background image
Section 7: Introduction to TSP operation Series 2600B System SourceMeter® instrument Reference Manual
7-2 2600BS-901-01 Rev. F/August 2021
Functions
Function-based commands control actions or activities. A function-based command performs an
immediate action on the instrument.
Each function consists of a function name followed by a set of parentheses ( ). Only include
information in the parentheses if the function takes a parameter. If the function takes one or more
parameters, they are placed between the parentheses and separated by commas.
Example 1
beeper.beep(0.5, 2400)
delay(0.250)
beeper.beep(0.5, 2400)
Emit a double beep at 2400 Hz. The
sequence is 0.5 s on, 0.25 s off, 0.5 s on.
Example 2
You can use the results of a function-based command directly or assign the results to variables for
later access. The following code defines x and prints it.
x = math.abs(-100)
print(x)
Output:
100
Attributes
Attribute-based commands are commands that set the characteristics of an instrument feature or
operation. For example, a characteristic of TSP-enabled instruments is the model number
(localnode.model).
Attributes can be read-only, read-write, or write-only. They can be used as a parameter of a function
or assigned to another variable.
To set the characteristics, attribute-based commands define a value. For many attributes, the value is
in the form of a number or a predefined constant.
Example 1: Set an attribute using a number
beeper.enable = 0
This attribute controls the beeps that occur when front-panel controls are selected. Setting this attribute to 0
turns off the beeper.
Example 2: Set an attribute using a constant
format.data = format.REAL64
Using the constant REAL64 sets the print format to double-precision floating-point format.
To read an attribute, you can use the attribute as the parameter of a function or assign it to another
variable.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix KEITHLEY 2600B Series and is the answer not in the manual?

Tektronix KEITHLEY 2600B Series Specifications

General IconGeneral
BrandTektronix
ModelKEITHLEY 2600B Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals