EasyManuals Logo
Home>Keithley>Test Equipment>2450

Keithley 2450 User Manual

Keithley 2450
878 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 #212 background imageLoading...
Page #212 background image
Model 2450
Interactive SourceMeter® Instrument Reference Manual Section 3:
Functions and features
2450-901-01 Rev. B/September 2013 3-67
Digital I/O programming example
The programming commands below illustrate how to set bit B1 of the digital I/O port high, and then
read the value.
Using SCPI commands:
:DIGital:LINE1:MODE DIGital, OUT
:DIGital:LINE1:STATe 1
:DIGital:LINE1:MODE DIGital, IN
:DIGital:LINE1:STATe?
Using TSP commands:
-- Set bit B1 high
digio.line[1].mode = digio.MODE_DIGITAL_OUT
digio.line[1].state = digio.STATE_HIGH
-- Read digital I/O port
digio.line[1].mode = digio.MODE_DIGITAL_IN
print(digio.line[1].state)
Digital I/O bit weighting
Bit weighting for the digital I/O lines is shown in the following table.
Line # Bit Pin Decimal Hexadecimal Binary
1
B1
1
1
0x01
000001
2
B2
2
2
0x02
000010
3 B3 3 4 0x04 000100
4
B4
4
8
0x08
001000
5
B5
6
16
0x10
010000
6
B6
8
32
0x20
100000

Table of Contents

Other manuals for Keithley 2450

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2450 and is the answer not in the manual?

Keithley 2450 Specifications

General IconGeneral
BrandKeithley
Model2450
CategoryTest Equipment
LanguageEnglish

Related product manuals