Skip to Main Content Skip to Search
Product Documentation

Keithley KPCI-1801HC Analog Input (A/D) - KPCI-1801HC Analog Input block

Library

xPC Target Library for Keithley Metrabyte

Scaling Input to Output

Hardware Input

Block Output Data Type

Scaling

Volts

Double

1

Block Parameters

Channel vector

Enter numbers between 1 and 64. This driver allows you to enter channel numbers in any order.

For example, to use the first, second, and fifth channels, enter

[1,2,5]

Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.

Range vector

Enter a range code for each of the channels in the channel vector. The range vector must be the same length as the channel vector. This driver allows each channel to be different.

The following table is a list of the ranges for this driver and the corresponding range codes.

Input Range (V)

Range Code

-5 to +5

-5

-1 to +1

-1

-0.1 to +0.1

-0.1

-0.02 to +0.02

-0.02

0 to +5

5

0 to +1

1

0 to +0.1

0.1

0 to +0.02

0.02

For example, if the first channel is -5 to +5 volts and the second and fifth channels are 0 to +1 volts, enter

[-5,1,1]
Input coupling vector

Enter a coupling code for each of the channels in the channel vector. The coupling vector must be the same length as the channel vector. This driver allows a different coupling for each channel.

The following table is a list of the couplings for this driver and the corresponding coupling codes.

Coupling

Coupling Code

Description

single- ended

0

Analog input line connected to the positive input. Analog input ground (IGND) internally connected to the negative input.

differential

1

First analog input line connected to the positive input of the PGIA. Second analog input line connected to the negative input of the PGIA. See the board manual.

For example, if the first and second channels are single input and the fifth channel is a differential input, enter

[0,0,1]

The driver selects a second differential input 32 channels higher than the first channel. In the example above, the driver would select the 37th channel as a differential input with the fifth channel.

Sample time

Model base sample time or a multiple of the base sample time.

PCI Slot (-1:autosearch)

If only one board of this type is in the target PC, enter

-1 

to automatically locate the board.

If two or more boards of this type are in the target PC, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber, SlotNumber]. To determine the bus number and the PCI slot number, type

getxpcpci
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS