xPC Target For Use with Real-Time Workshop Modeling Simulation Implementation I/O Reference Guide Version 1 ®
How to Contact The MathWorks: www.mathworks.com comp.soft-sys.matlab Web Newsgroup info@mathworks.com Technical support Product enhancement suggestions Bug reports Documentation error reports Order status, license renewals, passcodes Sales, pricing, and general information 508-647-7000 Phone 508-647-7001 Fax The MathWorks, Inc. 3 Apple Hill Drive Natick, MA 01760-2098 Mail support@mathworks.com suggest@mathworks.com bugs@mathworks.com doc@mathworks.com service@mathworks.
Contents I/O Drivers 1 I/O Driver Block Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory-Mapped Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCI Bus I/O Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xPC Target I/O Driver Structures . . . . . . . . . . . . . . . . . . . . . . . Updated Driver Information . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RS-232 Receive Message Structure (Asynchronous) . . . . . . . . 2-34 Supported Data Types for Message Fields . . . . . . . . . . . . . . . . 2-35 GPIB I/O Support 3 Introduction to GPIB Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Connections for GPIB . . . . . . . . . . . . . . . . . . . . . . . . . Simulink Blocks for GPIB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MATLAB Message Structures for GPIB . . . . . . . . . . . . . . . . . . .
CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller . . . . . . . . . . . . . . . 4-8 Setup Driver Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9 Send Driver Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-11 Receive Driver Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13 CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller . . . . . . . . . . . . . . . . . . . . . . .
CAN I/O Support for FIFO 5 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 FIFO Mode drivers for CAN boards from Softing . . . . . . . . . . . 5-3 CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller . . . . . . . . . . . . . . . . . . . 5-6 FIFO Setup driver block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7 FIFO Write Driver Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ADDI-DATA 6 APCI-1710 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3 APCI-1710 Incremental Encoder . . . . . . . . . . . . . . . . . . . . . . . . 6-3 PA-1700 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6 PA-1700 Incremental Encoder . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6 Advantech 7 PCL-1800 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
vi Contents PCL-812 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCL-812 Analog Input (A/D) . . . . . . . . . . . . . . . . . . . . . . . . . . . PCL-812 Analog Output (D/A) . . . . . . . . . . . . . . . . . . . . . . . . . . PCL-812 Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCL-812 Digital Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-24 7-24 7-26 7-27 7-28 PCL-812PG . . . . . . . . . . . . . . . . .
PCL-818L . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCL-818L Analog Input (A/D) . . . . . . . . . . . . . . . . . . . . . . . . . . PCL-818L Analog Output (D/A) . . . . . . . . . . . . . . . . . . . . . . . . PCL-818L Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCL-818L Digital Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-53 7-53 7-55 7-56 7-57 Burr-Brown 8 PCI-20003M . . . . . . . . . . . . . . . . . . . .
ComputerBoards 9 CIO-CTR05 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5 CIO-CTR05 Counter PWM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-6 CIO-CTR05 counter PWM & ARM . . . . . . . . . . . . . . . . . . . . . . . 9-7 CIO-CTR05 Counter FM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-8 CIO-CTR05 Counter FM & ARM . . . . . . . . . . . . . . . . . . . . . . . . 9-9 CIO-CTR05 PWM Capture . . . . . . . . . . . . . . . . . . . . . .
CIO-DAS16JR/16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-36 CIO-DAS16JR/16 Analog Input (A/D) . . . . . . . . . . . . . . . . . . . . 9-37 CIO-DAS1601/12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CIO-DAS1601/12 Analog Input (A/D) . . . . . . . . . . . . . . . . . . . . CIO-DAS1601/12 Analog Output (D/A) . . . . . . . . . . . . . . . . . . CIO-DAS1601/12 Digital Input . . . . . . . . . . . . . . . . . . . . . . . . .
CIO-DIO48 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-72 CIO-DIO48 Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-72 CIO-DIO48 Digital Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-73 CIO-DIO48H . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-75 CIO-DIO48H Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-75 CIO-DIO48H Digital Output . . . . . . . . . . . . .
PC104-DAS16JR/16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PC104-DAS16JR/16 Analog Input (A/D) . . . . . . . . . . . . . . . . PC104-DAS16JR/16 Digital Input . . . . . . . . . . . . . . . . . . . . . PC104-DAS16JR/16 Digital Output . . . . . . . . . . . . . . . . . . . . 9-101 9-101 9-103 9-104 PC104-DIO48 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-105 PC104-DIO48 Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . .
PCI-DDA02/12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCI-DDA02/12 Analog Output (D/A) . . . . . . . . . . . . . . . . . . . PCI-DDA02/12 Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . . PCI-DDA02/12 Digital Output . . . . . . . . . . . . . . . . . . . . . . . . 9-137 9-137 9-139 9-140 PCI-DDA04/12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCI-DDA04/12 Analog Output (D/A) . . . . . . . . . . . . . . . . . . .
Diamond 10 Diamond-MM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diamond-MM Analog Input (A/D) . . . . . . . . . . . . . . . . . . . . . . . Diamond-MM Analog Output (D/A) . . . . . . . . . . . . . . . . . . . . . Diamond-MM Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diamond-MM Digital Output . . . . . . . . . . . . . . . . . . . . . . . . . . 10-3 10-4 10-5 10-6 10-7 Diamond-MM-32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Gespac 11 GESADA-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3 GESADA-1 Analog Input (A/D) . . . . . . . . . . . . . . . . . . . . . . . . . 11-3 GESADA-1 Analog Output (D/A) . . . . . . . . . . . . . . . . . . . . . . . 11-4 GESPIA-2A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-6 GESPIA-2A Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-7 GESPIA-2A Digital Output . . . . . . . . . . . . . .
KPCI-1802HC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . KPCI-1802HC Analog Input (A/D) . . . . . . . . . . . . . . . . . . . . . KPCI-1802HC Analog Output (D/A) . . . . . . . . . . . . . . . . . . . . KPCI-1802HC Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . . KPCI-1802HC Digital Output . . . . . . . . . . . . . . . . . . . . . . . . . 13-13 13-14 13-16 13-17 13-18 National Instruments 14 AT-AO-6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PCI-6023E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCI-6023E Analog Input (A/D) . . . . . . . . . . . . . . . . . . . . . . . . PCI-6023E Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCI-6023E Digital Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-26 14-27 14-29 14-30 PCI-6024E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCI-6024E Analog Input (A/D) . . . . . . . . . . . . . . .
PCI-6508 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-64 PCI-DIO-96 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-65 PCI-DIO96 Digital Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-65 PCI-DIO96 Digital Output . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-66 PCI-MIO-16E-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PCI-MIO-16E-1 Analog Input (A/D) . . . . . . . .
Real Time Devices 15 DM6420 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-3 DM6420 Analog Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-4 DM6430 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-6 DM6430 Analog Input (A/D) . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-6 DM6430 Analog Output (D/A) . . . . . . . . . . . . . . . . . . . . . . . . . . 15-8 DM6604 . . . . . . . . . . .
Softing 16 CAN-AC2-ISA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-3 CAN-AC2-ISA with Philips PCA82C200 . . . . . . . . . . . . . . . . . 16-3 CAN-AC2-ISA with Intel 82527 . . . . . . . . . . . . . . . . . . . . . . . . 16-8 CAN-AC2-PCI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-13 CAN-AC2-PCI with SJA 1000 . . . . . . . . . . . . . . . . . . . . . . . . . 16-13 CAN-AC2 and CANopen devices . . . . . . . . . . . . . . . . . . . . .
xx Contents
1 I/O Drivers I/O Driver Block Library . . . . Memory-Mapped Devices . . . PCI Bus I/O Devices . . . . . xPC Target I/O Driver Structures Updated Driver Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 .30 .30 .31 .
1 I/O Drivers xPC Target supports over 40 I/O boards and devices. These devices include communication with CAN, GPIB, and RS232. This chapter includes the following sections: • I/O Driver Block Library — The xPC Target I/O library is organized hierarchically from I/O Function --> Manufacture --> Driver block. • Memory-Mapped Devices - I/O boards that need a base address. • PCI Bus I/O Devices — I/O boards that need a PCI slot number.
Double-clicking one of the manufacturer groups then displays the set of I/O device driver blocks for the specified I/O functionality (for example, A/D, D/A, Digital Inputs, Digital Outputs, and so on). The following figure shows the A/D drivers for the manufacturer ComputerBoards, Inc. When you double-click one of these blocks, a Block Parameters dialog box opens allowing you to make hardware-specific parameters.
1 I/O Drivers Memory-Mapped Devices Some supported boards in the xPC Target I/O library are memory-mapped devices, for example, Burr-Brown boards. These memory-mapped boards are accessed in the address space between 640K and 1M in the lower memory area. xPC Target reserves a 112 kB memory space for memory mapped devices in the address range: C0000 - DC000 Base addresses of memory-mapped devices must be chosen within this memory space for your target application to work properly.
In this example, the third line indicates the location of the ComputerBoards PCI-DIO48 board. This is known since the ComputerBoards Vendor ID is 0x1307 and the Device ID is 0xb. In this case, you now can see that the ComputerBoards board is plugged into the PCI slot 11 (Device No.), and that this value must be entered in the dialog box entry in your I/O device driver for each model that uses this I/O device.
1 I/O Drivers Creating a message structure — You could enter the message structure directly in the edit field of the driver Parameter dialog box. But because the message structure is an array and very large, this becomes cumbersome very easily. A prefered way is to define the message structure as an array in an M-file and pass the structure array to the dirver by referencing it by mane.
Updated Driver Information Since, we are always updating and adding new drivers to xPC Target, not all of the information about these drivers is included in the online or printed documentation. For updated and additional driver information, see our developer Web site at: http://www.mathworks.com/support/author/xpc/index.
1 I/O Drivers 1-8
2 RS232 I/O Support Introduction to RS-232 Drivers . . . Hardware Connections for RS-232 . . . . Simulink Blocks for RS-232 . . . . . . MATLAB Message Structures for RS-232 . Host and Target PC Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 4 4 5 RS-232 Synchronous Mode . . . . . . . . . . . . . . 7 Adding RS-232 Driver Blocks (Synchronous) . . . . . . . . 8 Creating RS-232 Message Structures (Synchronous) . . . . .
2 RS232 I/O Support xPC Target interfaces the target PC to an RS-232 device using either the COM1 or COM2 port. This chapter includes the following sections: • Introduction to RS-232 Drivers — Description of hardware connections, Simulink blocks, and MATALB message structures associated with the Simulink blocks. • RS-232 Synchronous Mode — Procedures to add an RS-232 driver block to your Simulink model, and create the message structures associated with those blocks.
Introduction to RS-232 Drivers Introduction to RS-232 Drivers xPC Target uses a model for supporting RS-232 I/O that includes both Simulink blocks for the I/O drivers, and MATLAB structures for sequencing messages and commands. This section includes the following topics: • Hardware Connections for RS-232 — Connect the target PC to an RS-232 device. • Simulink Blocks for RS-232 — Add setup, send, send/receive, and receive blocks to your Simulink model.
2 RS232 I/O Support Simulink Blocks for RS-232 To support the use of RS-232, the xPC Target I/O library includes a set of RS-232 driver blocks. These driver blocks can be added to your Simulink model to provide inputs and outputs using one or more of the RS-232 ports: • RS-232 Setup — One setup block is needed for each RS-232 port you use in your model. The setup block does not have any inputs or outputs, but sends the initialization and termination messages.
Introduction to RS-232 Drivers RS232_Send RS232_Send(1) . . . RS232_Send(n) .SendData - ‘start,%f,%f,stop:\;’ .InputPorts - [1,2] .Timeout - 0.01 RS232_Receive RS232_Receive(1) . . . RS232_Receive(n) .RecData - ‘start,%f,%f,stop:\;’ .OutputPorts - [1,2] .Timeout - 0.01 .Eom - 1 For more information on this example, see “Creating RS-232 Message Structures (Asynchronous)” on page 2-22.
2 RS232 I/O Support Note COM1 and COM3 share interrupt line 4. Similarly, COM2 and COM4 share interrupt line 3. To provide maximum performance, the COM port interrupt line on your target PC used for serial communication is disabled while real-time tasks that include RS-232 blocks are executing. This also means that when COM1 is disabled, COM3 is also disabled since they both share the same interrupt line. For this case, you would have to use either COM2 or COM4 as your RS-232 I/O device.
RS-232 Synchronous Mode RS-232 Synchronous Mode Use synchronous mode when you need to receive a response before continuing with other computations. In synchronous mode, data is sent to an external device and the driver block waits for a response. In other words, the I/O driver blocks or stops execution of the target application until an answer is received from the external device or it reaches a timeout.
2 RS232 I/O Support Adding RS-232 Driver Blocks (Synchronous) You add RS-232 driver blocks to your Simulink model when you want to use the serial ports on the target PC for I/O. After you create a Simulink model, you can add xPC Target driver blocks and define the initialization, send/receive, and termination message structures. 1 In the MATLAB command window, type xpclib The xPC Target driver block library opens. 2 Double-click the RS-232 group block. A window with blocks for RS-232 drivers opens.
RS-232 Synchronous Mode 4 In the Library window, double-click the RS-232 Synchronous mode group block. The library window with blocks for RS-232 synchronous communication opens. Note This library contains two setup/receive blocks. The second block is included for compatibility with xPC Target version 1.0. 5 Drag-and-drop an RS-232 Send/Receive block to your Simulink model. 6 Add a Signal Generator, and Constant block. Your model should look similar to the figure shown below.
2 RS232 I/O Support 7 Double-click the RS-232 Setup block. Enter values to configure the COM1 port on the target PC. For example, if the target PC is connected to COM1, and serial communication is set to 5760 baud, 8 databits, and 1 stopbit, your Block Parameter dialog box should look similar to the figure shown below. Note If you are not using an initialization or termination structure, in the Initialization Struct and Termination Struct boxes, enter two single quotes.
RS-232 Synchronous Mode For more information on entering the block parameters, see “RS-232 Setup Block” on page 2-27. For the procedure to create the initialization and termination structures, see “RS-232 MATLAB Structure Reference” on page 2-31.
2 RS232 I/O Support 8 Click OK. The Block Parameters dialog box closes. 9 Double-click the RS-232 Send/Receive block. The Block Parameters dialog box opens. 10 From the Port list, choose either COM1 or COM2. For this example, choose COM1. In the Message StructName box, enter the name for the MATLAB structure this block uses to send messages to the COM1 port. In the Sample Time box, enter the sample time or a multiple of the sample time you entered in the Receive block.
RS-232 Synchronous Mode Your next task is to create the MATLAB message structures that the RS-232 driver blocks use to sequence commands to the RS-232 device. See “Creating RS-232 Message Structures (Synchronous)” on page 2-13. Creating RS-232 Message Structures (Synchronous) RS-232 drivers use MATLAB structures to send and receive messages and map the input and output ports on the RS-232 driver blocks to the data written and read from the RS-232 devices.
2 RS232 I/O Support Note Field names in the structures are case sensitive. RS232_Send_Receive(1).SendData = ’da_1234,%d,%f,;\n’; RS232_Send_Receive(1).InputPorts = [1 2]; RS232_Send_Receive(1).RecData = ’noerror\n’; RS232_Send_Receive(1).OutputPorts = [1]; RS232_Send_Receive(1).Timeout = 0.01; RS232_Send_Receive(1).EOM = 1; 3 From the File menu, click Save As. In the Save as file dialog box, enter the name of the M-file script. For example, enter RS232_Messages.m 4 Close the text editing window.
RS-232 Synchronous Mode 8 Set the pre-load function for your Simulink model to load the message structures when you open your model. For example, if you saved the message structures in the M-file RS232_messages, type set_param(gcs, ’PreLoadFcn’,’RS232_messages.m’) Note If you do not manually load the message structures before opening your Simulink model, or have the message structures automatically loaded with the model, the port connections to the RS-232 driver break.
2 RS232 I/O Support RS-232 Asynchronous Mode Use asynchronous mode when you do not need a response before continuing with other computations. You can achieve faster sample rates with the Asynchronous Mode since neither the Send or Receive blocks wait for a reply. As a result, the Asynchronous Mode blocks do not block as do the Synchronous Mode blocks. The applicaiton updates the outputs only when the entire package of data is received from the external device.
RS-232 Asynchronous Mode 1 In the MATLAB command window, type xpclib The xPC Target driver block library opens. 2 Double-click the RS-232 group block. A window with blocks for RS-232 drivers opens. Note This library contains two setup blocks. The second block is included for compatibility with xPC Target Version 1.0. Alternatively, you could access the xPC Target block library from the Simulink Library Browser. In the Simulink window, and from the View menu, click Show Library Browser.
2 RS232 I/O Support Alternatively, you could access the xPC Target block library from the Simulink Library Browser. In the Simulink window, and from the View menu, click Show Library Browser. In the left pane, double-click xPC Target, and then click RS-232. 5 Drag-and-drop the RS-232 Send and RS-232 Receive blocks into your Simulink model. 6 Add a Signal Generator, Gain, and xPC Target Scope block. Your model should look similar to the figure below.
RS-232 Asynchronous Mode For more information on entering the block parameters, see “RS-232 Setup Block” on page 2-27. For the procedure to create the initialization and termination structures, see “RS-232 MATLAB Structure Reference” on page 2-31.
2 RS232 I/O Support 8 Click OK. The Block Parameters dialog box closes. 9 Repeat the previous setup for the second RS-232 Setup block and the COM2 port. Use the same Baudrate, Databits, Stopbits, Parity, and Protocol that you entered in the first RS-232 Setup block. 10 Double-click the Send block. The Block Parameters dialog box opens. 11 From the Port list, choose either COM1 or COM2. For this example, choose COM1.
RS-232 Asynchronous Mode 12 Click OK. The Block Parameters dialog box closes. 13 Double-click the RS-232 Send block. The Block Parameters dialog box opens. 14 From the Port list, choose either COM1 or COM2. For this example, choose COM2. In the Message Struct Name box, enter the name for the MATLAB structure this block uses to receive messages from the COM2 port. In the Sample Time box, enter the sample time or a multiple of the sample time you entered in the RS-232 Send block.
2 RS232 I/O Support 16 Double-click the Signal Generator block, and enter parameters. For example, from the Wave Form list, choose, sine. In the Amplitude and Frequency boxes enter 1. From the Units list, choose Hertz. Click OK. 17 Double-click the Gain block, and enter parameters. For example, in the Gain box, enter -1. Click OK. Your next task is to create the MATLAB message structures that the RS-232 driver blocks use to sequence commands to the RS-232 device.
RS-232 Asynchronous Mode Note Field names in the structures are case sensitive. RS232_Send(1).SendData = ’start,%f,%f,stop;\r’; RS232_Send(1).InputPorts = [1,2]; RS232_Send(1).Timout = 0.01; RS232_Receive(1).RecData = ’start,%f,%f,stop;\r’; RS232_Receive(1).OutputPorts = [2,1]; RS232_Receive(1).Timout = 0.01; RS232_Receive(1).
2 RS232 I/O Support 7 Connect the input and output ports on the RS-232 driver blocks to other blocks in your Simulink model. Your model should look similar to the figure shown below. 8 Set the pre-load function for your Simulink model to load the message structures when you open the model.
RS-232 Asynchronous Mode Building and Running the Target Application (Asynchronous) xPC Target and Real-Time Workshop create C code from your Simulink model. You can then use a C compiler to create executable code that runs on the target PC. After you have added the RS-232 blocks for asynchronous mode to your Simulink model, and created and loaded the RS-232 structures into the MATLAB workspace, you can build your target application.
2 RS232 I/O Support 2-26
RS-232 Simulink Block Reference RS-232 Simulink Block Reference xPC Target supports RS-232 communication with driver blocks in your Simulink model and message structures in the MATLAB workspace. This section includes the following topics: • RS-232 Setup Block — Sends the initialize and termination messages. You need one Setup block for each RS-232 port you use in your model. • “RS-232 Send/Receive Block (Synchronous)” — Sequences the send and receive messages for synchronous serial communication.
2 RS232 I/O Support Parameter Description Sendbuffer Size Enter the size, in bytes, of the send buffer. Receivebuff er Size Enter the size, in bytes, of the receive buffer. Initializatio n Structure Enter the name of the structure containing the initialization messages and the expected acknowledgements when the model is initialized. If you are not using initialization messages, enter two single quotes in this box.
RS-232 Simulink Block Reference RS-232 Send/Receive Block (Synchronous) The Block Parameters dialog box for the Synchronous Send & Receive block contains the following fields. Parameter Description Port From the list, choose COM1, COM2, COM3, or COM4. This list allows you to define which COM port is used to send and receive the data. The model must contain one Setup block for the same COM port used to send and receive data. Otherwise, an error message is displayed.
2 RS232 I/O Support RS-232 Send Block (Asynchronous) The Block Parameters dialog box for the Asynchronous Send block contains the following fields. Parameter Description Port This list allows you to define which COM port is used for sending data. The model must contain one RS232 Setup block to configure its COM port. Otherwise, an error message is displayed. Message Structure Name Enter the name of the MATLAB structure this block uses to send messages and data to an RS-232 device.
RS-232 Simulink Block Reference Parameter Description Message Structure Name Enter the name of the MATLAB structure this block uses to receive messages and data from an RS-232 device. For information on creating this structure, see “Creating RS-232 Message Structures (Asynchronous)” on page 2-22. Sample Time This entry allows you to define the sample time of the block. Because the block does not wait until data is received from the external RS-232 device, you can set sample times to small values.
2 RS232 I/O Support RS-232 Send/Receive Message Structure (Synchronous) Below are descriptions of the possible message fields for the send /receive structures with asynchronous mode. The order of the fields does not matter. However, the field names are case sensitive. Messge Field Description SendData Data and format sent to the RS-232 device. Default value = ’’. InputPorts Number of input ports for the driver block. Data from the input ports is sent to the RS-232 device with the message field.
RS-232 Simulink Block Reference Messge Field Description Timeout Time, in seconds, the driver block waits for data to be returned. Default value = 0.049. EOM Character at the end of a message. • Send_Receive_struct(index).inputports — Defines the number of input ports for the driver block. • Send_Receive_struct(index).recdata — Data received through the serial port. Default value = [ ].
2 RS232 I/O Support RS-232 Receive Message Structure (Asynchronous) Below are descriptions of the possible message fields for the receive message Structures with synchronous mode. Message Fields Description RecData Data and format received from the RS-232 device. Default value = ’’. The format of this statement is very similar to a scanf statement. The read data is mapped to the output ports defined in the message field .OutputPorts.
RS-232 Simulink Block Reference Supported Data Types for Message Fields The following table lists the supported data types for the RS-232 message fields. Format Description %c and %C Single character and wide character %d or %I Signed decimal integer %u Unsigned decimal integer %o Unsigned octal integer %x or %X Unsigned hexadecimal integer using ’abcdef’ or ’ABCDEF’ for the hexadecimal digits.
2 RS232 I/O Support 2-36
3 GPIB I/O Support Introduction to GPIB Drivers . . Hardware Connections for GPIB . . . Simulink Blocks for GPIB . . . . . . MATLAB Message Structures for GPIB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-3 . 12-3 . 12-4 . 12-4 Using GPIB Drivers . . . . . . . . . . . . . . . . 12-6 Adding GPIB Driver Blocks . . . . . . . . . . . . . . 12-6 Creating GPIB Message Structures . . . . . . . . . . 12-11 GPIB Simulink Block Reference . . . . . . . . GPIB-232CT-A Setup Block . . . .
3 GPIB I/O Support xPC Target interfaces the target PC to a GPIB instrument bus using an external GPIB controller from National Instruments. This external controller is connected to the target PC with a serial cable. This chapter includes the following sections: • Introduction to GPIB Drivers — Description of hardware connections, Simulink blocks, and MATALB message structures associated with the Simulink blocks.
Introduction to GPIB Drivers Introduction to GPIB Drivers xPC Target uses a model for I/O that includes both Simulink blocks, for the I/O drivers, and MATLAB structures for sequencing messages and commands. This model provides increased flexibility and control over using only Simulink blocks in your model This section includes the following topics: • Hardware Connections for GPIB — Connect the target PC to a GPIB-232CT-A controller from National Instruments.
3 GPIB I/O Support Simulink Blocks for GPIB To support the use of GPIB, the xPC Target I/O library includes a set of GPIB driver blocks. These driver blocks can be added to your Simulink model to provide inputs and outputs to devices on a GPIB instrument bus: • GPIB Setup — One setup block is needed for each GPIB controller. The setup block does not have any inputs or outputs, but sends the initialization and termination messages.
Introduction to GPIB Drivers GPIB_Send_Receive GPIB_Send_Receive(1) GPIB_Send_Receive(1) .Address - 16 .Command - ‘wrt’ .SendData - ‘:read?’ .InputPorts .RecData .RdLength .OutputPorts .OutputDataTypes .Wait .Timeout - 0.05 .Address .Command - ‘rd 16’ .SendData .InputPorts .RecData - ‘%f’ .RdLength - 20 .OutputPorts - [1] .OutputDataTypes - {double} .Wait .Timeout - 0.05 ...GPIB_Send_Receive(n) Currently, only two limitations exist.
3 GPIB I/O Support Using GPIB Drivers xPC Target uses a combination of Simulink blocks and MATLAB structures to support GPIB communication from your target application and target PC. This section includes the following topics: • Adding GPIB Driver Blocks — Add the setup and send/receive blocks you need to add to your Simulink model for GPIB communication. • Creating GPIB Message Structures — Create the initialize, send/receive, and termination message structures you need in the MATLAB workspace.
Using GPIB Drivers 3 Double-click the National Instruments group block. A window with blocks for GPIB drivers opens. Alternatively, you could access the xPC Target block library from the Simulink Library Browser. In the Simulink window, and from the View menu, click Show Library Browser. In the left pane, double-click xPC Target, double-click GPIB, and then click National Instruments. 4 Drag-and-drop a GPIB Setup block and a GPIB Send/Receive block to your Simulink model.
3 GPIB I/O Support 5 Double-click the GPIB Setup block. Enter values that correspond to the DIP switch settings you set on the GPIB-232CT-A controller. In the Initialization Struct box, enter the name for the MATLAB structure this block uses to send initialization messages to the GPIB device. Note If you are not using an initialization or termination structure, enter two single quotes.
Using GPIB Drivers For more information on entering the block parameters, see “GPIB-232CT-A Setup” on page 14-12.
3 GPIB I/O Support structure, see “Creating GPIB Message Structures” on page 3-11. 6 Click OK. The Block Parameters dialog box closes. 7 Double-click the GPIB Send/Receive block. The Block Parameters dialog opens. 8 From the Port list, choose either COM1 or COM2. This is the port on the target PC connected to the GPIB controller. In the Message Struct Name box, enter the name for the MATLAB structure this block uses to send and receive messages to the GPIB device.
Using GPIB Drivers Your next task is to create the MATLAB message structures that the GPIB driver blocks use to sequence commands to the GPIB controller. See “Creating GPIB Message Structures” on page 3-11. Creating GPIB Message Structures GPIB drivers use MATLAB structures to send and receive messages, and map the input and output ports on the GPIB driver blocks to the data written and read from the GPIB devices.
3 GPIB I/O Support GPIB_Send_Receive(2).Command = ’rd 16’; GPIB_Send_Receive(2).RecData = ’%f’; GPIB_Send_Receive(2).RdLength = 20; GPIB_Send_Receive(2).OutputPorts = [1]; GPIB_Send_Receive(2).OutputDataTypes = {’double’}; GPIB_Send_Receive(2).Timeout = 0.15; This example did not need a termination structure. But if it did, the format of the structure is the same as the initialization structure. For example, a termination structure could have a message with the .Command and .SendData fields.
Using GPIB Drivers 8 Set the pre-load function for your Simulink model to load the message structures when you open the model. For example, if you saved the message structures in the M-file GPIB_messages, type set_param(gcs, ’PreLoadFcn’,’GPIB_messages.m’) Note If you do not manually load the message structures before opening your Simulink model, or have the message structures automatically loaded with the model, the port connections to the GPIB driver blocks break.
3 GPIB I/O Support GPIB Simulink Block Reference The GPIB-232CT-A is a GPIB controller external to the target PC. It is connected to the target PC with an RS-232 cable.
GPIB Simulink Block Reference Parameter Description Baudrate From the list, choose 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200, 600, or 300. Number of Databits From the list, choose 8 or 7. Number of Stopbits From the list, choose 1 or 2. Parity From the list, choose None, Odd, or Even. Protocol From the list, choose None or XOn/XOff.
3 GPIB I/O Support GPIB-232CT-A Send/Receive Block Driver Block Parameters Parameter Description Port From the list, choose COM1, COM2, COM3, or COM4. Serial connection on the target PC to send and receive data Message StructName Enter the name of the MATLAB structure containing the messages to be sent to the GPIB controller. Sample Time Enter the base sample time or a multiple of the base sample time you entered in the Simulations Parameter dialog box.
GPIB Simulink Block Reference GPIB Initialization and Termination Message Structures The format for the initialization and termination structures are similar to the send/receive structure except for a few differences: The initialization and termination structures do not need to receive or send information through driver block ports on your Simulink model. Therefore, the initialization and termination structures do not use the message fields .InputPorts, .OutputPorts, .RecData, and .OutputDataTypes.
3 GPIB I/O Support GPIB Send/Receive Message Structure Below is a description of the possible fields for the send/receive message structure. The order of the message fields in a message does not matter. However, the field names are case-sensitive. Message Fields Description Address Sets the GPIB address for the device being accessed. After the GPIB address is set, the remaining messages use this address value until another message changes the address value. Default value = 0.
GPIB Simulink Block Reference Message Fields Description The first port is used to dynamically provide the length of the receive string, while the second port provides the value of the GPIB device. RecData Format of the data received from the GPIB device. Default value = ’’. The format of this statement is very similar to a scanf statement. The read data is mapped to the output ports defined in the field .OutputPorts.
3 GPIB I/O Support Message Fields Description OutputData Types Defines the data types for the output ports on the driver block. Default value = [] If this value is not define, and there are output ports, the default type is double. Also, if there are more output ports than output data types listed, the default type for the undefined ports is double. 3-20 Wait The amount of time, in seconds, to wait before executing the next message. This value is limited to 50 milliseconds. Default value = 0.
GPIB Simulink Block Reference Shortcuts and Features for Messages xPC Target defines the abbreviations wrt and rd to make message writing easier with GPIB commands. When the message interpreter sees the statements: • Structure_name(index).’wrt’, it is replaced with Structure_name(index).’wrt ADDR’. For example, you could write GPIB_Initialize(1).Command = ’wrt 8’; or you could write GPIB_Initialize(1).Address = 8; GPIB_Initialize(1).
3 GPIB I/O Support GPIB_Message(1).RecData = ’%f%d’; GPIB_Message(1).OutputPorts = [1 -1]; The code %d reads the length of data and the -1 discards the length. Using the modified xPC Target rd command, you would write GPIB_message(1).Command = ’rd #20 16’; GPIB_message(1).RecData = ’%f’; GPIB_message(1).OutputPorts = [1]; Automatic Addition of Escape Characters - The message interpreter automatically places the correct escape characters at the end of the message fields .Command, .SendData, and .Ack.
GPIB Simulink Block Reference Supported Data Types for Message Fields The following table lists the supported data types for the message fields .SendData and .Recdata. Format Description %c and %C Single character and wide character %d or %I Signed decimal integer %u Unsigned decimal integer %o Unsigned octal integer %x or %X Unsigned hexadecimal integer using ’abcdef’ or ’ABCDEF’ for the hexadecimal digits.
3 GPIB I/O Support 3-24
4 CAN I/O Support Introduction 2 CAN-AC2 4 CAN-AC2-PCI 4 CAN-AC2-104 4 Selecting a CAN Library 5 CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller 8 Setup Driver Block 9 Send Driver Block 11 Receive Driver Block 13 CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller 15 Setup driver block 16 Send driver block 18 Receive driver block 20 CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller 22 Setup driver block 23 Send driver block 26 Recei
4 CAN I/O Support Introduction xPC Target offers support to connect an xPC target system to a CAN network using the CAN driver blocks provided by the xPC Target I/O block library. The library supports the following CAN-boards from Softing GmbH, Germany.
Introduction the build process. This has to be done in the xPC Target setup environment either using the xpcsetup-GUI or the corresponding command line functions. See chapter 2 below for further information. For each CAN-board three driver blocks are provided. These are: A Setup block, which defines the type of physical connection (baud rate and so forth). Exactly one instance of the setup block has to be defined in a model for each physically installed CAN-board.
4 CAN I/O Support CAN-AC2 This is the CAN-board for the ISA-Bus offering two CAN ports (Highspeed). In it’s standard hardware configuration it uses the Philips PCA 82C200 CAN controller, which supports Standard Identifiers only. Piggyback modules are available (one for each port) which replace the Philips CAN controllers by the Intel 82527 CAN-controllers. The Intel controllers support both Standard and Extended Identifiers.
Introduction Selecting a CAN Library Before you can build a target application using CAN driver blocks, you need to select the correct CAN library. The different CAN libraries are listed and selected in the xPC Target environment setup. If no CAN-library is defined the target application build process will error out during the linking stage reporting several “unresolved external” errors.
4 CAN I/O Support 4-6
Introduction The following table shows which CAN-Library property value depending on the used board or boards. Board CAN-Library property value CAN-AC2 (ISA) with Philips PCA 82C200 (Standard) ‘200 ISA’ CAN-AC2 (ISA) with Intel 82527 (Standard & Extended) ‘527 ISA’ CAN-AC2-PCI with Philips SJA 1000 ‘1000 PCI’ or ‘1000 MB PCI’* CAN-AC2-104 with PC104 * the setting ‘1000 MB PCI’ is the same as ‘1000 PCI’ and is still supported in order to provide backward compatibility to version 1.0 of xPC Target.
4 CAN I/O Support CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller The driver blocks described here support the CAN-AC2 (ISA) without piggyback modules. The Philips PCA 82C200 chip is used as the CAN controller in this configuration and supports the Standard identifier range only. The driver block set for this board is found in the xPC Target I/O block library in the group CAN/Softing.
CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller Setup Driver Block The Setup block is used to define general settings of the plugged-in CAN board. Because the CAN driver blocks for this ISA board only support a single physical board for each target system, this block has to be used exactly once (one instance) in a model. The dialog box of the Setup block lets you define the following settings.
4 CAN I/O Support For more information about these values see the Softing user manual for this board. CAN 2 - Baud rate — The third control (popup menu) lets you define the most common baud rates for CAN port 2. If special timing is necessary (baud rate), the value “User defined” can be selected. In this case the fourth control (edit field) is used to provide the four values for the timing information.
CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller Send Driver Block The Send driver block is used to transmit data to a CAN network from within a block model. The dialog box of the block lets you define the following settings. CAN port — The first control (popup menu) is used to select at which CAN port the CAN message will be sent out. Identifiers — The second control (edit field) is used to define the identifiers of the CAN-messages sent out by this block.
4 CAN I/O Support where the elements define a set of data frame sizes. Each element has to be in the range between 1 and 8. If the data frame sizes for all identifiers defined in the control above have to be the same, the size can be provided as a scalar only and scalar expansion applies. If the sizes are different for at least two identifiers (CAN-messages) one size element has to be provided for each identifier defined in the control above. Therefore the length of the two vectors have to be the same.
CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller Receive Driver Block The Receive driver block is used to retrieve data from a CAN-network to be used within a block model. The dialog box of the block lets you define the following settings. CAN port — The first control (popup menu) is used to select from which CAN port, the CAN messages will be retrieved from.
4 CAN I/O Support information is of type double and is identical to the return value of function CANPC_read_rcv_data(…) described in the Softing user manual. Refer to the manual for more information. The timestamp information is of type double and outputs the latest time at which a CAN message with the corresponding identifier has been received. This time information in seconds (with a resolution of 1 microsecond) can be used to implement timeout-logic within your model.
CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller The driver blocks described here support the CAN-AC2 (ISA) with piggyback modules. The Intel 82527 chip is used as the CAN-controller in this configuration and supports both Standard and Extended identifier ranges in parallel. The driver block set for this board is found in the xPC Target I/O block library in the group CAN/Softing.
4 CAN I/O Support Setup driver block The Setup block is used to define general settings of the plugged-in CAN board. Because the CAN driver blocks for this board only supports a single physical board for each target system, this block has to be used exactly once (one instance) in a model. The dialog box of the Setup block lets you define the following settings. CAN 1 - Baud rate — The first control (popup menu) lets you define the most common baud rates for CAN port 1.
CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller CAN 2 - Baud rate — The third control (popup menu) lets you define the most common baud rates for CAN port 1. If special timing is necessary (baud rate), the value “User defined” can be selected. In this case the fourth control (edit field) is used to provide the four values for the timing information.
4 CAN I/O Support Send driver block The Send driver block is used to transmit data to a CAN-network from within a block model. The dialog box of the block lets you define the following settings. CAN port — The first control (popup menu) is used to select at which CAN port the CAN message will be sent out. CAN identifier range — The second control (popup menu) is used to select the identifier range of the CAN messages sent out by this block instance.
CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller firmware’s dynamic object mode). The number of elements defined here, define at the same time the number of inputs ports of the block. The block icon displays the selected identifier at each input port. Each input port accepts the data frame to be sent along with the CAN-message. The signal entering each input port has to be a scalar of type double representing the maximum size of 8 bytes of a CAN-message’s data frame.
4 CAN I/O Support Receive driver block The Receive driver block is used to retrieve data from a CAN-network to be used within a block model. The dialog box of the block lets you define the following settings. CAN port — The Receive driver block is used to retrieve data from a CAN network to be used within a block model. The first control (popup menu) is used to select from which CAN port, the CAN messages will be retrieved from.
CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller a model per physical CAN board cannot exceed 200 (restriction of the firmware’s dynamic object mode). The number of elements defined here, define at the same time the number of output ports of the block. The block icon displays the selected identifier at each output port. Each output port will output the data frame being retrieved along with the CAN-message.
4 CAN I/O Support CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller The driver blocks described here support the CAN-AC2-PCI. The Philips SJA1000 chip is used as the CAN-controller in this configuration and supports both Standard and Extended identifier ranges in parallel. The driver block set for this board is found in the xPC Target I/O block library in the group CAN/ Softing.
CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller The third block group highlighted above contains the three available CAN blocks: Setup, Send, and Receive. Setup driver block The Setup block is used to define general settings of the plugged-in CAN board(s). The CAN driver blocks for this board support up to three boards for each target system what leads to the availability of up to six CAN ports.
4 CAN I/O Support The dialog box of the Setup block lets you define the following settings. Board — The first control (popup menu) lets you define which board is being accessed by this driver block instance. The board number (1…3) can be seen as a reference identifier in order to differentiate the boards if multiple boards are present in the target system. The physical board finally referenced by the board number depends on the PCI Slot edit field described further below.
CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller changed to Lowspeed if no module is present for the corresponding CAN port. If the module is present (see the Softing user manual on how to install the modules) you can select between Highspeen and Lowspeed CAN here. CAN 1- Baud rate — The third control (popup menu) lets you define the most common baud rates for CAN port 1. If special timing is necessary (baud rate), the value “User defined” can be selected.
4 CAN I/O Support (autosearch). This value makes sure that the xPC Target kernel automatically finds the board independently of the PCI slot it is plugged into. If more than one board is present in the target system the correct PCI slot number has to be provided for each board. Use the xPC Target function ‘xpcgetpci’ to query the target system for installed PCI boards and the PCI slots they are plugged into. For more information see ‘help getxpcpci’.
CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller Send driver block The Send driver block is used to transmit data to a CAN-network from within a block model. The dialog box of the block lets you define the following settings. Board — The first control (popup menu) lets you define which physically present board is used to send out the CAN-messages defined by this block instance. For more information about the meaning of the board number see the Setup driver block described above.
4 CAN I/O Support least two instances of this block have to be used, each defining the corresponding identifier range. Identifiers — The fourth control (edit field) is used to define the identifiers of the CAN-messages sent out by this block. It has to be a row vector where the elements define a set of either Standard or Extended identifiers. Each element has to be in the range between 0 and 2031 for Standard identifiers or 0 and (2^29)-1 for Extended identifiers.
CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller Receive driver block The Receive driver block is used to retrieve data from a CAN-network to be used within a block model. You can use as many instances of the Receive block in the model as needed. For example by using two instances of the block with different sample times, CAN messages can be retrieved at different rates. Or you can use multiple instances to structure your model more efficiently.
4 CAN I/O Support least two instances of this block have to be used, each defining the corresponding identifier range. Identifiers — The fourth control (edit field) is used to define the identifiers of the CAN-messages retrieved by this block. It has to be a row vector where the elements define a set of either Standard or Extended identifiers. Each element has to be in the range between 0 and 2031 for Standard identifiers or 0 and 229 - 1 for Extended identifiers.
CAN driver blocks for the CAN-AC2-104 (PC/104) with Philips SJA1000 CAN-Controller CAN driver blocks for the CAN-AC2-104 (PC/104) with Philips SJA1000 CAN-Controller The driver blocks described here support the CAN-AC2-104 (PC/104). The Philips SJA1000 chip is used as the CAN-controller in this configuration and supports both Standard and Extended identifier ranges in parallel. The driver block set for this board is found in the xPC Target I/O block library in the group CAN/Softing.
4 CAN I/O Support Setup driver block The Setup block is used to define general settings of the stacked CAN board(s). The CAN driver blocks for this board support up to three boards for each target system what leads to the availability of up to six CAN ports. For each board in the target system exactly one Setup driver block has to be used in a model. The dialog box of the Setup block lets you define the following settings.
CAN driver blocks for the CAN-AC2-104 (PC/104) with Philips SJA1000 CAN-Controller board number depends on the I/O Base Address edit field described further below. If just one board is present in the target system, board number 1 should be selected. CAN 1 - Baud rate — The second control (popup menu) lets you define the most common baud rates for CAN port 1. If special timing is necessary (baud rate), the value CAN 1 - User defined baud rate can be selected.
4 CAN I/O Support Memory base address — The ninth control (edit field) is used to define the memory base address of the board to be accessed by this block instance. The memory base address is a software setting only (no corresponding DIP-switch is found on the board). The memory address range is 64 kilobytes. If more than one board is present in the target system a different memory base address has to be entered for each board and you have to make sure that the defined address ranges do not overlap.
CAN driver blocks for the CAN-AC2-104 (PC/104) with Philips SJA1000 CAN-Controller Send driver block The Send driver block is used to transmit data to a CAN-network from within a block model. The dialog box of the block lets you define the following settings. Baud — The first control (popup menu) lets you define which physically present board is used to send out the CAN messages defined by this block instance.
4 CAN I/O Support least two instances of this block have to be used, each defining the corresponding identifier range. Identifiers — The fourth control (edit field) is used to define the identifiers of the CAN messages sent out by this block. It has to be a row vector where the elements define a set of either Standard or Extended identifiers. Each element has to be in the range between 0 and 2031 for Standard identifiers or 0 and 229 - 1 for Extended identifiers.
CAN driver blocks for the CAN-AC2-104 (PC/104) with Philips SJA1000 CAN-Controller Receive driver block The Receive driver block is used to retrieve data from a CAN-network to be used within a block model. You can use as many instances of the Receive block in the model as needed. For example by using two instances of the block with different sample times, CAN messages can be retrieved at different rates. Or you can use multiple instances to structure your model more efficiently.
4 CAN I/O Support least two instances of this block have to be used, each defining the corresponding identifier range. Identifiers — The fourth control (edit field) is used to define the identifiers of the CAN messages retrieved by this block. It has to be a row vector where the elements define a set of either Standard or Extended identifiers. Each element has to be in the range between 0 and 2031 for Standard identifiers or 0 and 229 - 1 for Extended identifiers.
Constructing and Extracting CAN Data Frames Constructing and Extracting CAN Data Frames CAN data frames have a maximum size of 8 bytes (64 bits). For the CAN driver blocks found in the xPC Target I/O block library, Simulink signals of data type double are used to propagate data frames as an entity.
4 CAN I/O Support CAN Bit-Packing Block This block is used to construct CAN data frames and it’s output port is normally connected to an input port of a CAN Send driver block. The block has one output port of data type double (a scalar) which represents the data frame entity constructed by the signals entering the block at it’s input ports. The number of input ports and the data type of each input port depends on the setting in the blocks dialog box.
Constructing and Extracting CAN Data Frames We assume that a node on the CAN network needs to receive a CAN message with identifier 156 having the following data frame content. The data frame has to be 6 bytes long.
4 CAN I/O Support Let us analyze the model. The first input is the Function class of type uint8, which has an example value of 112. This value has to become byte 0 (bits 0 to 7) of the data frame. Therefore the first bit (element 1 of double array [0:7]) has to get bit 0 of the data frame, the second bit 1 and so on. It is easiest to define this mapping by the MATLAB colon operator:. The second input is the Function subclass of type uint8, which has an example value of 23.
Constructing and Extracting CAN Data Frames has to get bit 15, the second bit 14 and so on. It is easiest to define this mapping by the MATLAB colon operator: and an increment of –1. The third input is only necessary because the reserved byte 2 has to have all bits set to 1. If a bit position in the outgoing data frame isn’t referenced by a bit pattern array element, the bit will be by default 0, but there is no construct to have them set to 1 as the default.
4 CAN I/O Support The data frame is then propagated to the CAN Send driver block and is sent out as part of a CAN-message having identifier 156. When looking at the Send block’s dialog box, the data frame size is defined as 6 bytes. This makes sure that only the first 6 bytes of the incoming double value are transmitted as part of the CAN-message.
Constructing and Extracting CAN Data Frames The dialog box contains two controls (edit fields). The first lets you define the bit patterns in a flexible way. The data type entered in the control has to be a MATLAB cell array vector. The number of elements in the cell array define the number of output ports shown by this block instance.
4 CAN I/O Support definition of the packing and unpacking block are symmetric, the bit pattern definition could look exactly the same. There is one simple optimization possible: We don’t have to extract byte 2 (reserved area), because it’s content is known.
Constructing and Extracting CAN Data Frames This leads to the following Simulink model. In many cases it makes sense to test the proper bit-packing and bit-unpacking operations in a Simulink model (simulation) before building the target application. Both blocks are working the same way either in Simulink or within the generated code. By combining the two models shown so far we get to a third one which can be used to simulate the behavior.
4 CAN I/O Support Detecting Timeouts When Receiving CAN Messages The Receive driver blocks for all CAN boards allow to output the timestamp at which the latest corresponding CAN message has been received. This information can be used to detect if another CAN node is still alive and therefore is sending CAN messages or is no longer alive and special action has to be taken. Assume that we expect a CAN message from another CAN node every 2 ms.
Detecting Timeouts When Receiving CAN Messages The dialog box of the CAN Timeout Detection block has one edit field and lets you define the timeout value in seconds. The output of the block will be 0 if no timeout has been detected and 1 otherwise. See as well the loop-back example for the CAN-AC2-PCI and CAN-AC2-104 boards (xpccanpci and xpccanpc104) which make use of this utility block as well.
4 CAN I/O Support Model execution driven by CAN-messages (Interrupt capability of CAN Receive blocks) In certain application it is necessary that the model (target application) execution is driven by the pace of an incoming CAN message. The standard behavior of the xPC Target kernel is to drive the model (target application) in time monotonic fashion (time interrupt), but allows to replace the driving interrupt by any other hardware interrupt.
Model execution driven by CAN-messages (Interrupt capability of CAN Receive blocks) Generate interrupts check box. Checking this box will declare all CAN-messages defined in this Receive block instance through their identifiers as messages, which will fire an interrupt. Or in other words it is not possible to define a single CAN message within the set of defined identifiers to be the only one to fire an interrupt.
4 CAN I/O Support CAN-AC2-104 (PC/104) The CAN-AC2-104 is an ISA-board (PC/104), and the hardware interrupt line is set by means of a software setting within the CAN Setup driver block. Write down a free interrupt line, which is not used by any other hardware device in the xPC target system (for example by the Ethernet card). 1 In the Simulink window, and from the Tools menu, point to Real-Time Workshop, and then click Options.
Defining Initialization and Termination CAN Messages Defining Initialization and Termination CAN Messages The CAN Setup driver blocks for all supported CAN boards allow the definition of CAN-messages to be sent out during initialization and termination of the target application (once at the beginning of each application run and once before an application run is stopped). The main purpose for sending out those messages is to initialize or terminate other CAN nodes on the network.
4 CAN I/O Support Example Let’s consider an A/D converter module with a CANOpen interface. After the node has been powered up, the module is in pre-operational mode, which is common for CANOpen nodes. At least two initialization messages have to be sent to the node in order to get the module fully operational. The first message puts the node from pre-operational into operational mode.
5 CAN I/O Support for FIFO Introduction . . . . . . . . . . . . . . . . . . . 13-2 FIFO Mode drivers for CAN boards from Softing . . . . . . 13-3 CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller . . FIFO Setup driver block . . . . . . . . . . . . FIFO Write Driver Block . . . . . . . . . . . FIFO Read Driver Block . . . . . . . . . . . . FIFO Read Filter Block . . . . . . . . . . . . FIFO Read XMT Level Driver Block . . . . . . . FIFO Reset XMT Driver Block . . . . . . . . .
5 CAN I/O Support for FIFO Introduction This chapter describes the alternative First In First Out (FIFO) CAN drivers provided with xPC Target. The standard CAN drivers, for the CAN boards from Softing GmbH, program the CAN board firmware to run in Dynamic Object Buffer (DOB) mode. This mode is best suited for real-time environments where it is mandatory that the driver latency time is time deterministic.
Introduction Advantages of Dynamic Object Buffer mode - However, even if the CAN I/O latency time in the Dynamic Object Buffer mode is high, the benefit of this mode is that the latency time stays constant almost independent of the traffic volume on the CAN network. This leads to the conclusion that the Dynamic Object Buffer mode is best suited for xPC Target applications which only have to deal with a smaller subset of all CAN messages going over the CAN network.
5 CAN I/O Support for FIFO total latency may easily exceed the latency encountered when using the Dynamic Object Buffer mode driver scheme for the same application. There is another restriction specific to the FIFO mode concept. Using more than one Read Receive FIFO block in a Simulink model is not recommended, because a new event (message) read by one block instance cannot be read out again by another block instance (the event is no longer in the FIFO).
Introduction messages to be processed and the number of total messages going over the network is high. Especially for monitor type of applications the FIFO mode drivers are well suited, because the FIFO mode can return additional information like the bus state or the reception of error frames. The Dynamic Object Buffer mode drivers do not allow querying such information.
5 CAN I/O Support for FIFO CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller The driver blocks described here support the CAN-AC2-PCI using FIFO mode. The Philips SJA1000 chip is used as the CAN controller in this configuration and supports both Standard and Extended identifier ranges in parallel. The driver block set for this board is found in the xPC Target I/O block library in the group CAN/Softing. The third block group highlighted above contains the FIFO mode sub group.
CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller FIFO Setup driver block The Setup block is used to define general settings of the plugged-in CAN board(s). The CAN driver blocks for this board support up to three boards for each target system what leads to the availability of up to six CAN ports. For each board in the target system exactly one Setup block has to be used in a model. The dialog box of the Setup block lets you define the following settings.
5 CAN I/O Support for FIFO Board — Defines which board is being accessed by this driver block instance. The board number (1…3) can be seen as a reference identifier in order to differentiate the boards if multiple boards are present in the target system.
CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller Slot edit field described further below. If just one board is present in the target system, board number 1 should be selected. CAN - Physical bus — Defines the physical CAN bus type of the CAN port 1. In the board’s standard hardware configuration, only High speed CAN is supported. By extending the board with Low speed CAN piggyback modules, it is possible to additionally select Low speed CAN as the physical bus.
5 CAN I/O Support for FIFO For more information about these values see the Softing user manual for this board. CAN 2 - Acceptance — Defines the acceptance filters for the CAN 1 port. Because the receive FIFO gets filled with any CAN messages going over the bus, the use of the CAN controller acceptance filters becomes important in order to filter out unwanted messages already at the controller level.
CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller FIFO Write Driver Block The FIFO Write driver block is used to write CAN messages into the transmit FIFO. The firmware running in FIFO mode processes the information found in the transmit FIFO and finally puts the constructed CAN messages onto the bus. The block has one input port of type double.
5 CAN I/O Support for FIFO each row of the matrix signal defines one CAN message and each row combines the 5 elements of information defined above (in this order). For more on how to construct the correct matrix signal for the FIFO write block, see See “Examples” on page 5-40. For certain applications it may be necessary to make the writing of a CAN message into the transmit FIFO dependent on the model dynamics. For this case, the matrix signal can also be of dimension n*6 instead of n*5.
CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller You can use as many instances of the FIFO Write block in the model as needed. For example by using two instances of the block, different sample times at which CAN messages are sent out can be defined. Or you can use multiple instances to structure your model more efficiently. FIFO Read Driver Block The FIFO Read driver block is used to read CAN messages out of the receive FIFO.
5 CAN I/O Support for FIFO Event type — This value defines the type of event read out of the receive FIFO. The following values are defined from the Softing user manual.
CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller Board — Defines which physically present board is used to send out the CAN messages defined by this block instance. For more information about the meaning of the board number see the Setup driver block described above. If one board is present in the target system, select board number 1. FIFO read depth — Defines the number of receive FIFO read attempts.
5 CAN I/O Support for FIFO The first element returns the current value of the lost messages counter. The receive FIFO can store up to 255 events. If the receive FIFO is not regularly accessed for reading events, the FIFO gets filled and the lost messages counter starts to count up. This is an indicator that events (messages) will be unavoidably lost. The second element returns the current bus state.
CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller CAN port — Defines the filter criterion for the CAN port. From the list, select Any, 1, or 2. Message type command — Defines the filter criterion for the event types.
5 CAN I/O Support for FIFO sum of all specified identifiers. If you select Exclude, the identifier criterion is equal to all identifiers minus the specified identifiers. You can use as many instances of this block in your model as needed. Usually, you connect several instances in parallel to the output of the FIFO Read driver block in order to filter out particular messages or events. For more information on how to do this, see See “Examples” on page 5-40.
CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller FIFO Reset XMT Driver Block The FIFO Reset XMT driver block is used to reset the transmit FIFO. This will delete all messages currently stored in the transmit FIFO and reset the level counter to 0. As an example, you can use this driver block to reset the transmit FIFO after having detected a fault condition. The block has a single input port of type double. If a scalar value of 1 is passed, the transmit FIFO gets reset,.
5 CAN I/O Support for FIFO FIFO Read RCV Level Driver Block The FIFO Read RCV level driver block is used to read the current number of CAN messages stored in the receive FIFO. The receive FIFO can store up to 255 events (messages). If it is full and no FIFO read driver block attempts to read the stored events, new incoming events are lost what is reflected by the lost message counter counting up.
CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller FIFO Reset RCV Driver Block The FIFO Reset RCV driver block is used to reset the receive FIFO. This will delete all messages currently stored in the receive FIFO and reset the level counter to 0. As an example, you can use this driver block to reset the receive FIFO after having detected a fault condition. The block has a single input port of type double. If a scalar value of 1 is passed, the transmit FIFO gets reset.
5 CAN I/O Support for FIFO CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller The driver blocks described here support the CAN-AC2-104 (PC/104) using FIFO mode. The Philips SJA1000 chip is used as the CAN controller in this configuration and supports both Standard and Extended identifier ranges in parallel. The driver block set for this board is found in the xPC Target I/O block library in the group CAN/Softing.
CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller FIFO Setup Driver Block The Setup block is used to define general settings of the plugged-in CAN board(s). The CAN driver blocks for this board support up to three boards for each target system what leads to the availability of up to six CAN ports. For each board in the target system exactly one Setup block has to be used in a model. The dialog box of the Setup block lets you define the following settings.
5 CAN I/O Support for FIFO Board — Define which board is being accessed by this driver block instance. If multiple boards are present in the target system, the board number (1, 2 or3) can be seen as a reference identifier in order to differentiate the boards.
CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller edit field described further below. If just one board is present in the target system, board number 1 should be selected. CAN 1 - Baud rate — Defines the most common baud rates for CAN port 1. If special timing is necessary (baud rate), you can select User defined. CAN 1 - User defined baud rate — If you selected User defined from the CAN 1 - Baud rate list, enter four values for the timing information.
5 CAN I/O Support for FIFO information is provided by a row vector with 4 elements, where the first two are used to define the acceptance mask and acceptance code for Standard identifiers and the latter two for Extended identifiers. The default value defined by the Setup block doesn’t filter out any messages. For information how to define the acceptance information in order to filter certain messages, see See “Acceptance Filters” on page 5-38.
CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller The board allows activating proper termination for each of the two CAN ports separately by means of DIP-switches at the rear panel of the board. Refer to the Softing user manual on how the DIP-switches have to be set. Both CAN ports have to be terminated properly where you use the provided loop-back model in order to test the board and drivers.
5 CAN I/O Support for FIFO using the block parameters. In order to be able to transmit more than one CAN message per block instance a matrix signal is used as a container for all information. The dimension of the matrix signal entering the block has to be n*5, where n is the number of CAN messages to be sent out by this block instance. Therefore, each row of the matrix signal defines one CAN message and each row combines the 5 elements of information defined above (in this order).
CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller CANPC_send_data(…) described in the Softing user manual. Refer to that manual for more information. Sample time — Defines the sample time at which the FIFO Write block is executed during a model (target application) run. You can use as many instances of the FIFO Write block in the model as needed. For example by using two instances of the block, different sample times at which CAN messages are sent out can be defined.
5 CAN I/O Support for FIFO Event type — This value defines the type of event read out of the receive FIFO.
CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller The dialog box of the block lets you define the following settings. Board — Defines which physically present board is used to send out the CAN messages defined by this block instance. For more information about the meaning of the board number see the Setup driver block described above. If just one board is present in the target system, board number 1 should be selected.
5 CAN I/O Support for FIFO unavoidably lost. The second element returns the current bus state. Possible values are: 3 Error active 4 Error passive 5 Bus off Sample time — Defines the sample time at which the FIFO Read block is executed during a model (target application) run. It is strongly recommended that you only use one instance of this block per physical CAN board in your model.
CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller The dialog box of the block lets you define the following settings. CAN port — Defines the filter criterion for the CAN port. Possible choices are: Any, 1 or 2. Message type command — Defines the filter criterion for the event types.
5 CAN I/O Support for FIFO Identifier selection mode — Defines how the identifier criterion entered in the control above is treated. If you select Include, the identifier criterion is the sum of all specified identifiers. If you select Exclude, the identifier criterion is equal to all identifiers minus the specified identifiers. You can use as many instances of this block in your model as needed.
CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller Sample time — Defines the sample time at which the FIFO Read XMT Level driver block is executed during a model (target application) run. FIFO Reset XMT Driver Block The FIFO Reset XMT driver block is used to reset the transmit FIFO. This will delete all messages currently stored in the transmit FIFO and reset the level counter to 0.
5 CAN I/O Support for FIFO condition and take appropriate action, like stopping the execution or resetting the receive FIFO. The block has a single output port of type double returning a scalar value containing the current receive FIFO level (number of messages to be processed). The dialog box of the block lets you define the following settings. Board — Defines which physically present board is accessed to read the current receive FIFO level.
CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller The dialog box of the block lets you define the following settings. Board — The first control (popup menu) lets you define which physically present board is accessed to reset the receive FIFO. For more information about the meaning of the board number see the Setup driver block described above. If just one board is present in the target system, board number 1 should be selected.
5 CAN I/O Support for FIFO Acceptance Filters As mentioned earlier, the CAN controller’s acceptance filters can be used to ensure that certain received messages referenced by their identifiers get written into the receive FIFO. Therefore, fewer read attempts are necessary to get at the messages which are of importance for the target application.
Acceptance Filters using decimal numbers. You can use the MATLAB function ‘hex2dec’ to also define hexadecimal numbers in the dialog box entry. Lets assume a CAN application where messages with the following identifiers (standard) are crossing the CAN network: 2-30, 48-122 (decimal) Additionally, only incoming messages 4-29 have to be processed by the target application. Ideally, all messages not having identifier 4-29 would be filtered out, but the mask and code parameters don’t allow this exact scheme.
5 CAN I/O Support for FIFO Examples Example 1 Lets start with a simple model using the FIFO Setup block, FIFO Write block, FIFO Read block, and FIFO Read Filter block. The entire CAN network consists of a single physical connection between CAN port 1 and port 2 (loop-back configuration). For this, both CAN ports have to be terminated properly.
Examples The model uses several xPC Target scope blocks to display different type of data on the target screen: • Scope 1 (numerical): displays the status vector leaving the FIFO Write block • Scope 2 (numerical): displays the status vector [lost-message-counter, bus state] leaving the FIFO Read block • Scope 3 (graphical): plots the data of all three CAN messages being received • Scopes 4-6 (numerical): display the other message relevant data of the three incoming CAN messages individually (port, identifi
5 CAN I/O Support for FIFO Example 2 When looking at the time behavior of the model, you can observe that at each millisecond 2 CAN messages are sent out via the FIFO Write block, while the FIFO Read block reads each millisecond 3 events out of the receive FIFO. This implies that one of the three events leaving the FIFO Read block will be of type "No new event”.
Examples model. As a positive side effect, the latency time of the FIFO Read block gets smaller and therefore the model’s cycle time as well. Example 3 We now look at a second implementation on the FIFO Write side. Instead of providing three messages in parallel, we can just write 2 messages and then alternate the identifier and data of the second CAN message to be sent.
5 CAN I/O Support for FIFO This implementation behaves exactly like the first implementation, but nicely shows how CAN messages (to be sent out) can be constructed dynamically at run-time. Example 4 Now lets look at the situation where the Read depth parameter of the FIFO Read block in the model above is set to 1 instead of 2 or 3. This leads to a receive FIFO overflow when the execution time reaches 256 ms. Here, as an example, the execution should be stopped, if the overflow occurs.
Examples Example 5 Now lets consider a different handling of the receive FIFO overflow: If the receive FIFO level reaches the value of 200, the receive FIFO should be reset in order to delete all currently stored events. The application execution has to continue normally. For this, two new driver blocks have to be added to the model which are used to read the receive FIFO level and then reset it accordingly. You can display the model by typing, in the MATLAB command window, either xpccanpcififo5.
5 CAN I/O Support for FIFO Example 6 The next example shows the use of the CAN acceptance filters. First the Read depth parameter of the FIFO Read block is set back to a value of 2. Then the identifier of the second standard message is changed from 114 to 188. The goal is to filter any CAN messages with an identifier larger than 127 what would mean that the receive FIFO would never contain the CAN message with identifier 188.
Examples 5-47
5 CAN I/O Support for FIFO 5-48
6 ADDI-DATA
6 ADDI-DATA I/O boards supported by xPC Target.
APCI-1710 APCI-1710 The APCI-1710 is a general purpose counting board with four function modules. xPC Target supports this board with one driver block: • “APCI-1710 Incremental Encoder” Board Characteristics Board name APCI-1710 Manufacturer ADDI-DATA Bus type PCI Access method I/O mapped Multiple block instance support Yes Multiple board support Yes APCI-1710 Incremental Encoder A function module is individually programmable with different firmware.
6 ADDI-DATA to the APCI-1710-manual for information on how to electrically connect the encoders to the board. Driver Block Parameters Function Module. - From the list select 1, 2, 3, or 4. This field specifies which function module (counter) is used for this block. It has to be programmed with the incremental encoder firmware. For the same board two blocks cannot have the same module (channel) specified.
APCI-1710 Hystheresis - From the list choose either off or on. The Hystheresis parameter specifies if a counter should skip a tick if the direction changes (see the APC1-1700 manual). Resolution - The Resolution field specifies the resolution of the connected incremental encoder for one revolution. Sampletime - Model base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n.
6 ADDI-DATA PA-1700 The PA1700 is a counter board with three 24-bit counters for connecting three incremental encoders. xPC Target supports this board with one driver block: • “PA-1700 Incremental Encoder” Board Characteristics Board name PA1700 Manufacturer ADDI-DATA Bus type ISA Access method I/O mapped Multiple block instance support Yes Multiple board support Yes PA-1700 Incremental Encoder The driver block has two block outputs. The first outputs the actual absolute angle in radians.
PA-1700 Hystheresis - From the list choose either off or on. The Hystheresis parameter specifies if a counter should skip a tick if the direction changes (see the PA1700 manual). Resolution - The Resolution field specifies the resolution of the connected incremental encoder for one revolution. Sampletime - Model base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board.
6 ADDI-DATA 6-8
7 Advantech
7 Advantech I/O boards supported by xPC Target. (www.advantech.
PCL-1800 PCL-1800 The PCL-1800 is an I/O board with 16 single or 8 differential analog channels (12-bit) with a maximum sample rate of 330 kHz, 2 analog output D/A channels (12-bit), and 16 digital input lines and 16 digital output lines.
7 Advantech Driver Block Parameters Channel Vector - If you choose single ended from the MUX list, then enter numbers between 1 and 16. If you choose differential from the MUX list, then enter numbers between 1 and 8. For example, to use the first and second analog output (A/D) channels, enter [1,2] Number the channels beginning with 1 even if the board manufacturer starts to number the channels with 0. Range Vector - Enter a range code for each of the channels in the channel vector.
PCL-1800 BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 PCL-1800 Analog Output (D/A) Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameter Channel Vector - Enter numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order.
7 Advantech The range settings have to correspond to the DIP-switch settings on the board. Sampletime - Base sample time of a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 PCL-1800 Digital Input Scaling of Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
PCL-1800 PCL-1800 Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double <0.5 = TTL low >0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines you use.
7 Advantech PCL-726 The PCL-726 is an I/O board with, 6 independent analog output D/A channels (12-bit), 16 digital input lines and 16 digital output lines.
PCL-726 Driver Block Parameter Channel Vector - Enter numbers between 1 and 6. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels you use. For example, to use the first and second analog output (D/A) channels, enter [1, 2] Number the channels beginning with 1 even if the board manufacture starts numbering the channels with 0. Range Vector - Enter a range code for each of the channels in the channel vector.
7 Advantech PCL-726 Digital Input Scaling of Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines you use.
PCL-726 PCL-726 Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double <0.5 = TTL low >0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines you use.
7 Advantech PCL-727 The PCL-727 is an I/O board with, 12 independent analog output D/A channels (12-bit), 16 digital input lines and 16 digital output lines.
PCL-727 [1, 2] Number the channels beginning with 1 even if the board manufacture 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 board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
7 Advantech PCL-727 Digital Input Scaling of Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines you use.
PCL-727 PCL-727 Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double <0.5 = TTL low >0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines you use.
7 Advantech PCL-728 The PCL-728 is an I/O board with, 2 independent analog output D/A channels (12-bit).
PCL-728 Channel numbers begin with 1 even if the board manufacturer starts numbering 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 board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
7 Advantech PCL-818 The PCL-818 is an I/O board with 16 single or 8 differential analog channels (12-bit) with a maximum sample rate of 100 kHz, 2 analog output D/A channels (12-bit), and 16 digital input lines and 16 digital output lines.
PCL-818 enter numbers between 1 and 8. For example, to use the first and second analog output (A/D) channels, enter [1,2] Number the channels beginning with 1 even if the board manufacture 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 board allows the range of each channel to be different.
7 Advantech PCL-818 Analog Output (D/A) Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameter Channel Vector - Enter numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels you use.
PCL-818 BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 PCL-818 Digital Input Scaling of Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual digital input lines in any order.
7 Advantech PCL-818 Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double <0.5 = TTL low >0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
PCL-818H PCL-818H The PCL-818H is an I/O board with 16 single or 8 differential analog channels (12-bit) with a maximum sample rate of 100 kHz, 1 analog output D/A channel (12-bit), and 16 digital input lines and 16 digital output lines.
7 Advantech enter numbers between 1 and 8. For example, to use the first and second analog output (A/D) channels, enter [1,2] Channel numbers begins with 1 even if the board manufacturer starts to number 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 board allows the range of each channel to be different.
PCL-818H PCL-818H Analog Output (D/A) Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameter Range - From the list, choose either 0-10V or 0-5V. The range settings have to correspond to the DIP-switch settings on the board. Sampletime - Base sample time of a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board.
7 Advantech Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0. Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 PCL-818H Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double <0.5 = TTL low >0.
PCL-818HD PCL-818HD The PCL-818HD is an I/O board with 16 single or 8 differential analog channels (12-bit) with a maximum sample rate of 100 kHz, 1 analog output D/A channels (12-bit), and 16 digital input lines and 16 digital output lines.
7 Advantech enter numbers between 1 and 8. For example, to use the first and second analog output (A/D) channels, enter [1,2] Number the channels beginning with 1 even if the board manufacture 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 board allows the range of each channel to be different.
PCL-818HD PCL-818HD Analog Output (D/A) Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameter Range - From the list, choose either 0-10V or 0-5V. The range settings have to correspond to the DIP-switch settings on the board. Sampletime - Base sample time of a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board.
7 Advantech Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0. Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 PCL-818HD Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double <0.5 = TTL low >0.
PCL-818HG PCL-818HG The PCL-818 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 100 kHz, 1 analog output (D/A) channel (12-bit), and 16 digital input lines and 16 digital output lines.
7 Advantech Driver Block Parameters Channel Vector - If you choose single ended from the MUX list, then enter numbers between 1 and 16. If you choose differential from the MUX list, then enter numbers between 1 and 8. For example, to use the first and second analog output (A/D) channels, enter [1,2] Number the channels beginning with 1 even if the board manufacture starts numbering the channels with 0. Range Vector - Enter a range code for each of the channels in the channel vector.
PCL-818HG BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 PCL-818HG Analog Output (D/A) Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameter Range - From the list, choose either 0-10V or 0-5V. The range settings have to correspond to the DIP-switch settings on the board.
7 Advantech PCL-818HG Digital Input Scaling of Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines you use.
PCL-818HG PCL-818HG Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double <0.5 = TTL low >0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines you use.
7 Advantech PCL-818L The PCL-818L is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate or 40 kHz, 1 analog output (D/A) channels (12-bit), 16 digital input lines, and 16 digital output lines.
PCL-818L Driver Block Parameters Channel Vector - If you choose single ended from the MUX list, then enter channels between 1 and 16. If you choose differential from the MUX list, then enter channels between 1 and 8. For example, to use the first and second analog output (A/D) channels, enter [1,2] Number the channels beginning with 1 even if the board manufacture starts numbering the channels with 0. Range Vector - Enter a range code for each of the channels in the channel vector.
7 Advantech BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 PCL-818L Analog Output (D/A) Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameter Range - From the list, choose either 0-10V or 0-5V. The range setting has to correspond to the DIP-switch settings on the board.
PCL-818L PCL-818L Digital Input Scaling of Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter channels between 1 and 16. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines you use.
7 Advantech PCL-818L Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double <0.5 = TTL low >0.5 = TTL high Driver Block Parameters Channel Vector - Enter channels between 1 and 16. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines you use.
8 Burr-Brown
8 Burr-Brown I/O boards supported by xPC Target.
PCI-20003M PCI-20003M The PCI-20003M is an I/O board with 2 analog output (D/A) channels (12-bit).
8 Burr-Brown The following table is a list of the ranges for this driver and the corresponding range codes. Input range (V) Range code Input range (V) Range code -10 to +10 -10 0 - 10 10 0-5 5 For example, if the first channel is -10 to + 10 volts and the second channel is 0 to +5 volts, enter [-10,5] The jumpers W1 to W5, W13, W14, W27, W31, W7 to W11, W30, W32 on the module must correspond to this range setting. Sample Time - Enter the base sample time or a multiple of the base sample time.
PCI-20019M PCI-20019M The PCI-20019M is an I/O board with 8 single analog input (A/D) channels (12-bit).
8 Burr-Brown Input Range - Enter an input range code for all A/D channels. This driver does not allow the selection of a different range for individual channel. The input range is the same for all A/D channels The following table is a list of the ranges for this driver and the corresponding range codes. Input range (V) Range code Input range (V) Range code -10 to +10 -10 0 - 10 10 -5 to +5 -5 0-5 5 -2.5 to +2.5 -2.5 The jumpers W1 to W5 on the module must correspond to this range setting.
PCI-20019M Jumper Number Jumper Jumper Number Jumper W11 in W31 - W12 out 8-7
8 Burr-Brown PCI-20023M The PCI-20023M is an I/O board with 8 single analog input (A/D) channels (12-bit).
PCI-20023M Input Range - Enter an input range code for all A/D channels. This driver does not allow the selection of a different range for individual channel. The input range is the same for all A/D channels. The following table is a list of the ranges for this driver and the corresponding range codes. Input range (V) Range code Input range (V) Range code -10 to +10 -10 0 - 10 10 -5 to +5 -5 The jumpers W1, W2, W4, W5, W33 on the module must correspond to this range setting.
8 Burr-Brown 8-10 Jumper Number Jumper Jumper Number Jumper W10 out W31 - W11 in
PCI-20041C PCI-20041C The PCI-20041C is a carrier board with 32 digital I/O-lines grouped into four ports that can be configured as digital input or output. Each port has a maximum of 8 digital lines.
8 Burr-Brown Port Number (0-3) - Enter a number from 1 to 3 to identify the port used with this block of digital input lines. Sample Time - Enter a base sample time or a multiple of the base sample time. Module Number (1-3) - Enter a number from 1 to 3 to identify the connector on the carrier board where the I/O module is inserted. This driver verifies if the module is placed on the specified module connector. BaseAddress or Carrier Board (ie: 0xd000) - Enter the base address of the board.
PCI-20041C BaseAddress or Carrier Board (ie: 0xd000) - Enter the base address of the board. This entry must correspond to the DIP-switch settings on the board.
8 Burr-Brown PCI-20098 The PCI-20041C is a carrier board with 8 single or 16 differential analog input (A/D) channels (12-bit), and 16 digital I/O-lines grouped into two 8-line ports.
PCI-20098 driver does not allow the selection of individual channels or a different MUX setting for each channel. Range - From the list, choose either +-10V (-10 to +10 volts), +-5V (-5 to +5 volts), or 0-10V.This driver does not allow the selection of a different range for each channel. The input range is the same for all A/D channels MUX (16/8) - From the list, choose either 16 single-ended or 8 differential. This entry must correspond to the MUX-switch setting on the board.
8 Burr-Brown BaseAddress or Carrier Board (ie: 0xd000) - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 PCI-20098C Digital Output Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.
9 ComputerBoards
9 ComputerBoards I/O boards supported by xPC Target.
Board Name A/ D D/ A DI N DO UT “CIO-DAS1602/ 16” x x x x ISA “CIO-DDA06 (/ 12)” x x x ISA “CIO-DDA06/16” x x x ISA “CIO-DIO24” x x “CIO-DIO24H” x x ISA “CIO-DIO48” x x ISA “CIO-DIO48H” x x ISA “CIO-DIO96” x x ISA “CIO-DIO192” x x ISA x ISA x ISA “CIO-DO24DD” “CIO-PDISO16” x Other signal conditioning Bus type ISA “CIO-QUAD02” encoder ISA “CIO-QUAD04” encoder ISA “PC104-DAC06 (/ 12)” x ISA PC104 “PC104-DAS16JR/ 12” x x x ISA PC104 “PC104-DAS
9 ComputerBoards Board Name A/ D D/ A DI N DO UT “PCI-CTR05” 9-4 “PCI-DAS1200” x “PCI-DAS1200/ JR” x “PCI-DAS1602/12” x “PCI-DAS1602/16” x x Other Bus type counter FM counter FM&ARM counter PWM counterPWM&AR PWM capture Frequency capture PCI x x PCI x x PCI x x x PCI x x x PCI “PCI-DDA02/12” x x x PCI “PCI-DDA04/12” x x x PCI “PCI-DDA08/12” x x x PCI “PCI-DIO24” x x “PCI-DIO24H” x x PCI “PCI-DIO48” x x PCI “PCI-DIO96H” x x PCI signal conditio
CIO-CTR05 CIO-CTR05 The CIO-CTR05 is an I/O board with 5 counter/timer channels (16-bit). It contains one AM9513A counter/timer chip. For additional information about the various counter/timer modes of that chip see the AM9513A data sheet which is part of the board documentation.
9 ComputerBoards CIO-CTR05 Counter PWM The CIOCTR05 has one AM9513A chip with 5 counters. The CIO-CTR05 PWM driver programs the AM9513A for PWM (Pulse Width Modulation) signal generation (a square wave with fixed frequency and variable duty cycle). The block has one input which defines the variable duty cycle between 0 and 1. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter.
CIO-CTR05 Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration on the input (Duty Cycle) BaseAddress -Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 CIO-CTR05 counter PWM & ARM The CIO-CTR05 has one AM9513A chip with 5 counters.
9 ComputerBoards Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initialization phase of the driver similar to a initial value of an integrator. Initial Toggle State - From the list, choose high or low. The Initial Toggle State sets the initial digital level (high or low) of the output. For example, if the Initial Duty Cycle is 0.
CIO-CTR05 Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. XTAL frequency is assumed to be 1MHz, therefore the jumper on the CIO-CTR05 has to be in position 1MHz not 5MHz. Initial Relative Output Frequency - Enter a value between 0 and 1. The Initial Relative Output Frequency defines the initial output frequency of the FM-signal relative to the Frequency Base during driver initialization.
9 ComputerBoards Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL Variable frequency: double Arm: double <0.5 disarmed >0.5 armed Driver Block Parameters Counter - From the list, choose 1, 2, 3, 4 or, 5 to select which counter is used with this driver block. In each case, one block is needed for each counter. Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency.
CIO-CTR05 BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 CIO-CTR05 PWM Capture This block programs the AMD9513A for capturing PWM signals by using two counters. One counter measures the cycle duration, and the other counter measures the duration the signal is high. There are two outputs. One output is the relative frequency compared to the base frequency.
9 ComputerBoards CIO-CTR05 FM Capture This block programs the AMD9513A for capturing FM signals. There is one output for relative frequency compared to the base frequency. To get the actual frequency, multiply the base frequency by the relative frequency. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter - From the list, choose 1, 2, 3, 4 or 5. This selects which counter the driver block uses to determine the FM.
CIO-CTR10 CIO-CTR10 The CIO-CTR10 is an I/O board with 10 counter/timer channels (16-bit). It contains one AM9513A counter/timer chip. For additional information about the various counter/timer modes of that chip see the AM9513A data sheet which is part of the board documentation.
9 ComputerBoards CIO-CTR10 Counter PWM The CIOCTR10 has one AM9513A chip with 10 counters. The CIO-CTR10 PWM driver programs the AM9513A for PWM (Pulse Width Modulation) signal generation (a square wave with fixed frequency and variable duty cycle). The block has one input which defines the variable duty cycle between 0 and 1. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter.
CIO-CTR10 Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration on the input (Duty Cycle) BaseAddress -Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 CIO-CTR10 Counter PWM & ARM The CIO-CTR10 has two AM9513A chip with 10 counters.
9 ComputerBoards Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initialization phase of the driver similar to a initial value of an integrator. Initial Toggle State - From the list, choose high or low. The Initial Toggle State sets the initial digital level (high or low) of the output. For example, if the Initial Duty Cycle is 0.
CIO-CTR10 Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. XTAL frequency is assumed to be 1MHz, therefore the jumper on the CIO-CTR05 has to be in position 1MHz not 5MHz. Initial Relative Output Frequency - Enter a value between 0 and 1. The Initial Relative Output Frequency defines the initial output frequency of the FM-signal relative to the Frequency Base during driver initialization.
9 ComputerBoards Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL Variable frequency: double Arm: double <0.5 disarmed >0.5 armed Driver Block Parameters Counter. From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which counter is used with this driver block. In each case, one block is needed for each counter. Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency.
CIO-CTR10 BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 CIO-CTR10 PWM Capture This block programs the AMD9513A for capturing PWM signals by using two counters. One counter measures the cycle duration, and the other counter measures the duration the signal is high. There are two outputs. One output is the relative frequency compared to the base frequency.
9 ComputerBoards CIO-CTR10 FM Capture This block programs the AMD9513A for capturing FM signals. There is one output for relative frequency compared to the base frequency. To get the actual frequency, multiply the base frequency by the relative frequency. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter - From the list, choose 1, 2, 3, 4 or 5, 6, 7, 8, 9, or 10.
CIO-DAC08 (/12) CIO-DAC08 (/12) The CIO-DAC08 (/12) is an I/O board with 8 analog output (D/A) channels (12-bit).
9 ComputerBoards Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0. Range Vector - Range code for each of the channels in the channel vector. The range vector must have the same length as the channel vector. This board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
CIO-DAC08/16 CIO-DAC08/16 The CIO-DAC08/16 is an I/O board with 8 analog output (D/A) channels (16-bit).
9 ComputerBoards Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0. Range Vector - 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 the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
CIO-DAC16 (/12) CIO-DAC16 (/12) The CIO-DAC016 is an I/O board with 16 analog output (D/A) channels (12-bit).
9 ComputerBoards 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 board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
CIO-DAC16/16 CIO-DAC16/16 The CIO-DAC16/16 is an I/O board with 16 analog output (D/A) channels (16-bit).
9 ComputerBoards 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 board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
CIO-DAS16/300 CIO-DAS16/300 The CIO-DAS16/330 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 330 kHz, 4 digital input lines, and 4 digital output lines. xPC Target supports this board with one driver block: • “CIO-DAS16/330 Analog Input (A/D)” Note xPC Target does not support the digital I/O on this board.
9 ComputerBoards CIO-DAS16/330 Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Number of Channels - If single-ended is chosen from the MUX list, then enter a number between 1 and 16 to select the number of A/D channel used. If differential is chosen from the MUX list, then enter a number between 1 and 8 to select the number of A/D channels used.
CIO-DAS16/JR (/12) CIO-DAS16/JR (/12) The CIO-DAS16/JR is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 130 kHz, 4 digital input lines, 4 digital output lines, and 3 counter/timers (16-bit). An external signal conditioning board can be added to the CIO-DAS16/JR board.
9 ComputerBoards CIO-DAS16/JR Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Number of Channels - If single-ended is chosen from the MUX list, enter a number between 1 and 16 to select the number of A/D channels used. If differential is chosen from the MUX list, enter a number between 1 and 8 to select the number of A/D channels used.
CIO-DAS16/JR (/12) CIO-DAS16/JR (/12) Analog Input (A/D) with EXP Signal Conditioning Board Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 There are signal conditioning boards (external devices) available from ComputerBoards which can be connected to the CIO-DAS16/JR. Each EXP-board contains its own multiplexer circuit which multiplexes a maximum number of 16 EXP-channels to one A/D-channel of the CIO-DAS16/JR.
9 ComputerBoards Note If a EXP32 is used and the EXP-channels 16 to 31 should be acquired, the elements of the EXP Channel Vector have still to be in the range of 0 to 15. Therefore the EXP-channel numbers have to be subsaturated by the constant 16. A special case is provided by setting the EXP Channel Vector to an empty vector.
CIO-DAS16/JR (/12) From the list, choose either +-10V (-10 volts to +10 volts), +-5V, +-2.5V, +-1.25V, +-0.625V, 0-10V, 0-5V, 0-2.5V, or 0-1.25V.This driver does not allow the selection of different range for each channel. Sampletime - Enter the base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board.
9 ComputerBoards CIO-DAS16JR/16 The CIO-DAS16JR/16 is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maximum sample rate of 100 kHz, 4 digital input lines, 4 digital output lines and 3 counter/timers. xPC Target supports this board with one driver block: • “CIO-DAS16JR/16 Analog Input (A/D)” Note xPC Target does not support the digital I/O or the counters on this board.
CIO-DAS16JR/16 CIO-DAS16JR/16 Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Number of Channels - If single-ended is chosen from the MUX list, then enter a number between 1 and 16 to select the number of A/D channels used. If differential is chosen from the MUX list, then enter a number between 1 and 8 to select the number of A/D channels used.
9 ComputerBoards CIO-DAS1601/12 The CIO-DAS1601/12 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sampling rate of 160 kHz, 2 analog output (D/A) channels (12-bit), 32 digital input and output lines, and 3 counters (16-bit).
CIO-DAS1601/12 CIO-DAS1601/12 Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Number of Channels - If single-ended is chosen from the MUX list, then enter a number between 1 and 16 to select the number of A/D channels used. If differential is chosen from the MUX list, then enter a number between 1 and 8 to select the number of A/D channels used.
9 ComputerBoards CIO-DAS1601/12 Analog Output (D/A) Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter Numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
CIO-DAS1601/12 Sampletime - Base sample time of a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 CIO-DAS1601/12 Digital Input The DAS1601/12 has a 8255 chip with 3 ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port.
9 ComputerBoards Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 CIO-DAS1601/12 Digital Output The DAS1601/12 has a 8255 chip with 3 ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port.
CIO-DAS1601/12 Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board.
9 ComputerBoards CIO-DAS1602/12 The CIO-DAS1602/12 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sampling rate of 100kHz, 2 analog output (D/A) channels (12-bit), 32 digital input and output lines, and 3 counters (16-bit).
CIO-DAS1602/12 CIO-DAS1602/12 Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Number of Channels - If single-ended is chosen from the MUX list, then enter a number between 1 and 16 to select the number of A/D channels used. If differential is chosen from the MUX list, then enter a number between 1 and 8 to select the number of A/D channels used.
9 ComputerBoards CIO-DAS1602/12 Analog Output (D/A) Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter Numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
CIO-DAS1602/12 Sampletime - Base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 CIO-DAS1602/12 Digital Input The DAS1601/12 has a 8255 chip with 3 ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port.
9 ComputerBoards Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 CIO-DAS1602/12 Digital Output The DAS1601/12 has a 8255 chip with 3 ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port.
CIO-DAS1602/12 Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board.
9 ComputerBoards CIO-DAS1602/16 The CIO-DAS1602/16 is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maximum sampling rate of 100kHz, 2 analog output (D/A) channels (12-bit), 32 digital I/O lines, and 3 counters 916-bit).
CIO-DAS1602/16 CIO-DAS1602/16 Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Number of Channels - If single-ended is chosen from the MUX list, then enter a number between 1 and 16 to select the number of A/D channels used. If differential is chosen from the MUX list, then enter a number between 1 and 8 to select the number of A/D channels used.
9 ComputerBoards CIO-DAS1602/16 Analog Output (D/A) Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter Numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
CIO-DAS1602/16 Sampletime - Base sample time of a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 CIO-DAS 1602/16 Digital Input Use the CIO-DAS 1602/12 digital input driver block. The DAS1601/16 has a 8255 chip with 3 ports (A,B,C).
9 ComputerBoards as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port. Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 CIO DAS1602/16 Digital Output Use the CIO-DAS 1602/12 digital output driver block.
CIO-DAS1602/16 driver block. Each port has a maximum or 8 digital lines that can be configured as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port. Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board.
9 ComputerBoards CIO-DDA06 (/12) The CIO-DDA06 (/12) is an I/O board with 6 analog output (D/A) channels (12-bit), and 24 digital I/O lines.
CIO-DDA06 (/12) CIO-DDA06 (/12) Analog Output (D/A) Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter Numbers between 1 and 6. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
9 ComputerBoards [-10,5] The range settings have to correspond to the DIP-switch settings on the board. The jumpers by the range DIP-switches on the board all have to be in the XFER position. The Wait-State jumper has to be in the off position. Sampletime - Base sample time of a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board.
CIO-DDA06 (/12) Port - From the list choose either A, B, or C. The I/O board has a 8255 chip with 3 ports. The port name defines which port of the 8255 chip is used for this driver block. Each port has a maximum or 8 digital lines that can be configured as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port. Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board.
9 ComputerBoards Port - From the list choose either A, B, or C. The I/O board has a 8255 chip with 3 ports. The port name defines which port of the 8255 chip is used for this driver block. Each port has a maximum or 8 digital lines that can be configured as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port. Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board.
CIO-DDA06/16 CIO-DDA06/16 The CIO-DDA06/16) is an I/O board with 6 analog output (D/A) channels (12-bit), and 24 digital I/O lines.
9 ComputerBoards CIO-DDA06/16 Analog Output (D/A) Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter Numbers between 1 and 6. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
CIO-DDA06/16 [-10,5] The range settings have to correspond to the DIP-switch settings on the board. The jumpers by the range DIP-switches on the board all have to be in the XFER position. The Wait-State jumper has to be in the off position. Sampletime - Base sample time of a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board.
9 ComputerBoards Port - From the list choose either A, B, or C. The I/O board has a 8255 chip with 3 ports. The port name defines which port of the 8255 chip is used for this driver block. Each port has a maximum or 8 digital lines that can be configured as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port. Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board.
CIO-DDA06/16 Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0. Port - From the list choose either A, B, or C. The I/O board has a 8255 chip with 3 ports. The port name defines which port of the 8255 chip is used for this driver block. Each port has a maximum or 8 digital lines that can be configured as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port.
9 ComputerBoards CIO-DIO24 The CIO-DIO24 is an I/O board with 24 digital I/O lines. xPC Target supports this board with three driver blocks: • “CIO-DIO24 Digital Input” • “CIO-DIO24 Digital Output” Board Characteristics Board name CIO-DIO24 Manufacturer ComputerBoards Bus type ISA Access method I/O mapped Multiple block instance support Yes Multiple board support Yes CIO-DIO24 Digital Input The CIO-DIO24 has one 8255 chip with 3 ports (A,B,C).
CIO-DIO24 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital inputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0.
9 ComputerBoards Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital outputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0.
CIO-DIO24H CIO-DIO24H The CIO-DIO24H is an I/O board with 24 digital I/O lines. xPC Target supports this board with two driver blocks: • “CIO-DIO24H Digital Input” • “CIO-DIO24H Digital Output”. Board Characteristics Board name CIO-DIO24H Manufacturer ComputerBoards Bus type ISA Access method I/O mapped Multiple block instance support Yes Multiple board support Yes CIO-DIO24H Digital Input The CIO-DIO24H has one 8255 chip with 3 ports (A,B,C).
9 ComputerBoards Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital inputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0.
CIO-DIO24H Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital outputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0.
9 ComputerBoards CIO-DIO48 The CIO-DIO48 is an I/O board with 48 digital I/O lines. xPC Target supports this board with two driver blocks: • “CIO-DIO48 Digital Input” • “CIO-DIO48 Digital Output” Board Characteristics Board name CIO-DIO48 Manufacturer ComputerBoards Bus type ISA Access method I/O mapped Multiple block instance support Yes Multiple board support Yes CIO-DIO48 Digital Input The CIO-DIO48 has two 8255 chips (1,2). Each chip has three ports (A,B,C).
CIO-DIO48 Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital inputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0. Port - From the list choose either A, B, or C.
9 ComputerBoards Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
CIO-DIO48H CIO-DIO48H The CIO-DIO48H is an I/O board with 48 digital I/O lines. xPC Target supports this board with two driver blocks: • “CIO-DIO48H Digital Input” • “CIO-DIO48H Digital Output” Board Characteristics Board name CIO-DIO48H Manufacturer ComputerBoards Bus type ISA Access method I/O mapped Multiple block instance support Yes Multiple board support Yes CIO-DIO48H Digital Input The CIO-DIO48H has two 8255 chips (1,2). Each chip has three ports (A,B,C).
9 ComputerBoards Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital inputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.
CIO-DIO48H CIO-DIO48H Digital Output The CIO-DIO48H has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.
9 ComputerBoards CIO-DIO96 The CIO-DIO96 is an I/O board with 96 digital I/O lines. xPC Target supports this board with two driver blocks: • “CIO-DIO96 Digital Input” • “CIO-DIO96 Digital Output” Board Characteristics Board name CIO-DIO96 Manufacturer ComputerBoards Bus type ISA Access method I/O mapped Multiple block instance support Yes Multiple board support Yes CIO-DIO96 Digital Input The CIO-DIO96 has four 8255 chips (1,2,3,4). Each chip has three ports (A,B,C).
CIO-DIO96 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital inputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.
9 ComputerBoards Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
CIO-DIO192 CIO-DIO192 The CIO- - DIO192 is an I/O board with 192 digital I/O lines. xPC Target supports this board with two driver blocks: • “CIO-DIO192 Digital Input” • “CIO-DIO192 Digital Output” Board Characteristics Board name CIO-DIO192 Manufacturer ComputerBoards Bus type ISA Access method I/O mapped Multiple block instance support Yes Multiple board support Yes CIO-DIO192 Digital Input The CIO-DIO96 has eight 8255 chips (1,2,3,4,5,6,7,8). Each chip has three ports (A,B,C).
9 ComputerBoards Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital inputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.
CIO-DIO192 Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
9 ComputerBoards CIO-DO24DD The CIO-DO24DD is an I/O board with 24 open-collector digital output lines. xPC Target supports this board with one driver block: • “CIO-DO24DD Digital Output” Board Characteristics Board name CIO-DO24DD Manufacturer ComputerBoards Bus type ISA Access method I/O mapped Multiple block instance support Yes Multiple board support Yes CIO-DO24DD Digital Output The CIO-DIO24DD has one 8255 chip with 3 ports (A,B,C).
CIO-DO24DD output lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital outputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0. Port - From the list choose either A, B, or C. The I/O board has a 8255 chip with 3 ports. The Port parameter defines which port of the 8255 chip is used for this driver block.
9 ComputerBoards CIO-PDISO16 The CIO-PCISO16 is an I/O board with 16 isolated digital input lines and 16 relay driven digital output lines. xPC Target supports this board with two driver blocks: • “CIO-PDISO16 Digital Input” • “CIO-PDISO16 Digital Output” Note xPC Target does not support the 16 relays on this board.
CIO-PDISO16 Scaling Input to Output Hardware Input Block Output Data Type Scaling 5 to 24 volts DC/AC double ~0 volts = 0.0 5 to 24 volts = 1.0 Driver Block Parameters Number of Channels - Enter a number between 1 and 8 to select the number of digital input lines used with this connector. This driver does not allow the selection of individual digital input lines. Section(Connector) - From the list, choose either 1 (nearest to backplate) or 2 (farthest from backplate to select the connector used.
9 ComputerBoards CIO-PDISO16 Digital Output The CIO-PDISO16 has two independent connectors. Each connector has 8 relay driven digital input lines. Use a separate diver block for each connector. Scaling Input to Output Hardware Output Block Input Data Type Scaling relay double < 0.5 = Relay open > 0.5 = Relay closed Driver Block Parameters Number of Channels - Enter a number between 1 and 8 to select the number of digital output lines used with this connector.
CIO-QUAD02 CIO-QUAD02 The CIO-QUAD02 is a 24-bit counting board with 2 channels. This board typically connects to incremental encoders. Incremental encoders convert physical motion into electrical pulses than can be used to determine velocity, direction, and distance.
9 ComputerBoards The velocity is given by: velocity = (distance(ts) - distance(ts-1)) / ts The direction is given by: direction = distance(ts) - distance(ts-1) A negative value is reverse, while a positive value is forward. Driver Block Parameters Function module - From the list choose, 1,or 2. This parameter specifies which channel you use for this block. For the same board (same base address) two blocks cannot have the same channel number.
CIO-QUAD02 - The Resolution field specifies the divisions of the connected incremental encoder for one revolution.
9 ComputerBoards CIO-QUAD04 The CIO-QUAD04 is a 24-bit counting board with 4 channels. This board typically connects to incremental encoders. Incremental encoders convert physical motion into electrical pulses than can be used to determine velocity, direction, and distance.
CIO-QUAD04 The velocity is given by: velocity = (distance(ts) - distance(ts-1)) / ts The direction is given by: direction = distance(ts) - distance(ts-1) A negative value is reverse, while a positive value is forward. Driver Block Parameters Function module - From the list choose, 1, 2, 3, or 4. This parameter specifies which channel you use for this block. For the same board (same base address) two blocks cannot have the same channel number.
9 ComputerBoards - The Resolution field specifies the divisions of the connected incremental encoder for one revolution.
PC104-DAC06 (/12) PC104-DAC06 (/12) The PC104-DAC06 (12) is an I/O board with 6 analog output (D/A) channels (12-bit).
9 ComputerBoards Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0. Range Vector - Range code for each of the channels in the channel vector. The range vector must be the same length as the channel vector. This board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
PC104-DAS16JR/12 PC104-DAS16JR/12 The PC104-DAS16JR/12 is an I/O board with 16 single or 8 differential analog input channels (12-bit) with a maximum sample rate of 150 kHz, 4 digital input lines and 4 digital output lines.
9 ComputerBoards to select the number of A/D channels used. This driver does not allow the selection of individual channels or to mix single-ended and differential inputs. Number the channels beginning with 1 even if the board manufacturer starts numbering channels with 0. Range - From the list, choose either +-10V (-10 volts to +10 volts), +-5V, +-2.5V, +-1.25V, +-0.625V, 0-10V, 0-5V, 0-2.5V, or 0-1.25V.This driver does not allow the selection of a different range for each channel.
PC104-DAS16JR/12 PC104-DAS16JR/12 Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Number of Channels - Enter a number between 1 and 4 to select the number of digital input lines used. This driver does not allow the selection of individual digital input lines. Sampletime - Enter the base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board.
9 ComputerBoards PC104-DAS16JR/12 Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Number of Channels - Enter a number between 1 and 4 to select the number of digital output lines used. This driver does not allow the selection of individual digital output lines. Sampletime - Enter the base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board.
PC104-DAS16JR/16 PC104-DAS16JR/16 The PC104-DAS16JR/16 is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maximum sample rate of 100 kHz, 4 digital input lines and 4 digital output lines.
9 ComputerBoards differential is chosen from the MUX list, then enter a number between 1 and 8 to select the number of A/D channels used. This driver does not allow the selection of individual channels or to mix single-ended and differential inputs. Number the channels beginning with 1 even if the board manufacturer starts numbering channels with 0. Range - From the list, choose either +-10V (-10 volts to +10 volts), +-5V, +-2.5V, +-1.25V, +-0.625V, 0-10V, 0-5V, 0-2.5V, or 0-1.25V.
PC104-DAS16JR/16 PC104-DAS16JR/16 Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Number of Channels - Enter a number between 1 and 4 to select the number of digital input lines used. This driver does not allow the selection of individual digital input lines. Sample Time - Enter the base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board.
9 ComputerBoards PC104-DAS16JR/16 Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Number of Channels - Enter a number between 1 and 4 to select the number of digital output lines used. This driver does not allow the selection of individual digital output lines. Sample Time - Enter the base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board.
PC104-DIO48 PC104-DIO48 The PC104-DIO48 is an I/O board with 48 digital I/O lines.
9 ComputerBoards PC104-DIO48 Digital Input The CIO-DIO48 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital input driver block, the port is configured as input. Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
PC104-DIO48 PC104-DIO48 Digital Output The PC104-DIO48 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.
9 ComputerBoards PCI-CTR05 The CIO-CTR05 is an I/O board with 5 counter/timer channels (16-bit). It contains one AM9513A counter/timer chip. For additional information about the various counter/timer modes of that chip see the AM9513A data sheet which is part of the board documentation.
PCI-CTR05 PCI-CTR05 Counter PWM The PCI-CTR05 PWM driver programs the AM9513A for PWM (Pulse Width Modulation) signal generation (a square wave with fixed frequency and variable duty cycle). The block has one input which defines the variable duty cycle between 0 and 1. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter. From the list, choose 1, 2, 3, 4, or 5 to select which counter is used with this driver block.
9 ComputerBoards PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-CTR05 Counter PWM & ARM The PCI-CTR05 has one AM9513A chip with 5 counters.
PCI-CTR05 Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initialization phase of the driver similar to a initial value of an integrator. Initial Toggle State - From the list, choose high or low. The Initial Toggle State sets the initial digital level (high or low) of the output. For example, if the Initial Duty Cycle is 0.
9 ComputerBoards Counter - From the list, choose 1, 2, 3, 4, or 5 to select which counter is used with this driver block. In each case, one block is needed for each counter. Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. XTAL frequency is assumed to be 1MHz, therefore the jumper on the CIO-CTR05 has to be in position 1MHz not 5MHz. Initial Relative Output Frequency - Enter a value between 0 and 1.
PCI-CTR05 Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL Variable frequency: double Arm: double <0.5 disarmed >0.5 armed Driver Block Parameters Counter. From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which counter is used with this driver block. In each case, one block is needed for each counter. Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency.
9 ComputerBoards PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-CTR05 PWM Capture This block programs the AMD9513A for capturing PWM signals by using two counters.
PCI-CTR05 -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-CTR05 FM Capture This block programs the AMD9513A for capturing FM signals. There is one output for relative frequency compared to the base frequency. To get the actual frequency, multiply the base frequency by the relative frequency.
9 ComputerBoards PCI-DAS1200 The PCI-DAS1200 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 330 kHz, 2 analog output (D/A) channels (12-bit), and 24 digital input and output lines.
PCI-DAS1200 differential is chosen from the MUX list, then enter a number between 1 and 8 to select the number of A/D channels used. This driver does not allow the selection of individual channels or to mix single-ended and differential inputs. Number the channels beginning with 1 even if the board manufacturer starts numbering channels with 0. Range - From the list, choose either +-10V (-10 volts to +10 volts), +-5V, +-2.5V, +-1.25V, 0-10V, 0-5V, 0-2.5V, or 0-1.25V.
9 ComputerBoards 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 board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
PCI-DAS1200 Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
9 ComputerBoards Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order.
PCI-DAS1200/JR PCI-DAS1200/JR The PCI-DAS1200/JR is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 330 kHz, and 24 digital I/O lines.
9 ComputerBoards to select the number of A/D channels used. This driver does not allow the selection of individual channels or to mix single-ended and differential inputs. Number the channels beginning with 1 even if the board manufacturer starts numbering channels with 0. Range - From the list, choose either +-10V (-10 volts to +10 volts), +-5V, +-2.5V, +-1.25V, 0-10V, 0-5V, 0-2.5V, or 0-1.25V.This driver does not allow the selection of different range for each channel.
PCI-DAS1200/JR Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
9 ComputerBoards Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order.
PCI-DAS1602/12 PCI-DAS1602/12 The PCI-DAS1602/12 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sampling rate of 200kHz, 2 analog output (D/A) channels (12-bit), and 24 digital input and output lines and 3 counters (16-bit).
9 ComputerBoards PCI-DAS1602/12 Analog Input (A/D) Scaling of Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Number of Channels - If single-ended is chosen from the MUX list, then enter a number between 1 and 16 to select the number of A/D channels used. If differential is chosen from the MUX list, then enter a number between 1 and 8 to select the number of A/D channels used.
PCI-DAS1602/12 PCI-DAS1602/12 Analog Output (D/A) Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter Numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
9 ComputerBoards Sampletime - Base sample time of a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-DAS 1602/12 Digital Input The DAS1601/12 has a 8255 chip with 3 ports (A,B,C).
PCI-DAS1602/12 as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port. Sampletime - Enter a base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch). Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block.
9 ComputerBoards Port - From the list choose either A, B, or C. The I/O board has a 8255 chip with 3 ports. The port name defines which port of the 8255 chip is used for this driver block. Each port has a maximum or 8 digital lines that can be configured as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port. Sampletime - Enter a base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n.
PCI-DAS1602/16 PCI-DAS1602/16 The PCI-DAS1602/16 is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maximum sampling rate of 200kHz, 2 analog output (D/A) channels (16-bit), and 24 digital input and output lines and 3 counters (16-bit).
9 ComputerBoards PCI-DAS1602/16 Analog Input (A/D) Scaling of Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Number of Channels - If single-ended is chosen from the MUX list, then enter a number between 1 and 16 to select the number of A/D channels used. If differential is chosen from the MUX list, then enter a number between 1 and 8 to select the number of A/D channels used.
PCI-DAS1602/16 PCI-DAS1602/16 Analog Output (D/A) Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter Numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
9 ComputerBoards Sampletime - Base sample time of a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-DAS 1602/16 Digital Input Use the PCI-DAS 1602/12 digital input driver block.
PCI-DAS1602/16 driver block. Each port has a maximum or 8 digital lines that can be configured as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port. Sampletime - Enter a base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch). Enter a number between -1 and n.
9 ComputerBoards Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0. Port - From the list choose either A, B, or C. The I/O board has a 8255 chip with 3 ports. The port name defines which port of the 8255 chip is used for this driver block. Each port has a maximum or 8 digital lines that can be configured as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port.
PCI-DDA02/12 PCI-DDA02/12 The PCI-DDA02/12) is an I/O board with 2 analog output (D/A) channels (12-bit), and 48 digital I/O lines.
9 ComputerBoards [1,2] 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 board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
PCI-DDA02/12 PCI-DDA02/12 Digital Input The PCI-DDA02/12 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital input driver block, the port is configured as input. Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
9 ComputerBoards -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-DDA02/12 Digital Output The PCI-DDA02/12 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.
PCI-DDA02/12 Sampletime - Enter a base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block.
9 ComputerBoards PCI-DDA04/12 The PCI-DDA04/12) is an I/O board with 4 analog output (D/A) channels (12-bit), and 48 digital I/O lines.
PCI-DDA04/12 [1,2] 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 board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
9 ComputerBoards PCI-DDA04/12 Digital Input The PCI-DDA04/12 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital input driver block, the port is configured as input. Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
PCI-DDA04/12 -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-DDA04/12 Digital Output The PCI-DDA04/12 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.
9 ComputerBoards Sampletime - Enter a base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block.
PCI-DDA08/12 PCI-DDA08/12 The PCI-DDA08/12) is an I/O board with 8 analog output (A/D) channels (12-bit), and 48 digital I/O lines.
9 ComputerBoards [1,2] 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 board allows the range of each channel to be different.
PCI-DDA08/12 PCI-DDA08/12 Digital Input The PCI-DDA08/12 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital input driver block, the port is configured as input. Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
9 ComputerBoards -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-DDA08/12 Digital Output The PCI-DDA08/12 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.
PCI-DDA08/12 Sampletime - Enter a base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block.
9 ComputerBoards PCI-DIO24 The PCI-DIO24 is an I/O board with 24 digital I/O lines. xPC Target supports this board with three driver blocks: • “PCI-DIO24 Digital Input” • “PCI-DIO24 Digital Output” Board Characteristics Board name PCI-DIO24 Manufacturer ComputerBoards Bus type PCI Access method I/O mapped Multiple block instance support Yes Multiple board support Yes PCI-DIO24 Digital Input The PCI-DIO24 has one 8255 chip with 3 ports (A,B,C).
PCI-DIO24 Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
9 ComputerBoards Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order.
PCI-DIO24 9-155
9 ComputerBoards PCI-DIO24H The PCI-DIO24H is an I/O board with 24 digital I/O lines. xPC Target supports this board with two driver blocks: • “PCI-DIO24H Digital Input” • “PCI-DIO24H Digital Output”. Board Characteristics Board name PCI-DIO24H Manufacturer ComputerBoards Bus type PCI Access method I/O mapped Multiple block instance support Yes Multiple board support Yes PCI-DIO24H Digital Input The PCI-DIO24H has one 8255 chip with 3 ports (A,B,C).
PCI-DIO24H Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
9 ComputerBoards Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order.
PCI-DIO48 PCI-DIO48 The PCI-DIO48 is an I/O board with 48 digital I/O lines. xPC Target supports this board with two driver blocks: • “PCI-DIO48 Digital Input” • “PCI-DIO48 Digital Output” Board Characteristics Board name PCI-DIO48 Manufacturer ComputerBoards Bus type PCI Access method I/O mapped Multiple block instance support Yes Multiple board support Yes PCI-DIO48 Digital Input The PCI-DIO48H has two 8255 chips (1,2). Each chip has three ports (A,B,C).
9 ComputerBoards Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
PCI-DIO48 PCI-DIO48 Digital Output The PCI-DIO48H has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.
9 ComputerBoards -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block.
PCI-DIO96H PCI-DIO96H The PCI-DIO96 is an I/O board with 96 digital I/O lines. xPC Target supports this board with two driver blocks: • “PCI-DIO96H Digital Input” • “PCI-DIO96H Digital Output” Board Characteristics Board name PCI-DIO96 Manufacturer ComputerBoards Bus type PCI Access method I/O mapped Multiple block instance support Yes Multiple board support Yes PCI-DIO96H Digital Input The PCI-DIO96H has four 8255 chips (1,2,3,4). Each chip has three ports (A,B,C).
9 ComputerBoards Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
PCI-DIO96H PCI-DIO96H Digital Output The PCI-DIO96H has four 8255 chips (1,2,3,4). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.
9 ComputerBoards -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block.
PCI-QUAD04 PCI-QUAD04 The PCI-QUAD04 is a 24-bit counting board with 4 channels. This board typically connects to incremental encoders. Incremental encoders convert physical motion into electrical pulses than can be used to determine velocity, direction, and distance.
9 ComputerBoards The velocity is given by: velocity = (distance(ts) - distance(ts-1)) / ts The direction is given by: direction = distance(ts) - distance(ts-1) A negative value is reverse, while a positive value is forward. Driver Block Parameters Function module - From the list choose, 1, 2, 3, or 4. This parameter specifies which channel you use for this block. For the same board (same base address) two blocks cannot have the same channel number.
PCI-QUAD04 - The Resolution field specifies the divisions of the connected incremental encoder for one revolution.
9 ComputerBoards 9-170
10 Diamond
10 Diamond I/O boards supported by xPC Target.
Diamond-MM Diamond-MM The Diamond-MM is a DAS16 compatible I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate or 100 kHz, 2 analog output (D/A) channels (12-bit), 8 digital input lines, and 8 digital output lines.
10 Diamond Diamond-MM Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Number of Channels - If you entered 16 in the MUX box, then enter a number between 1 and 16 to select the number of single A/D channels used. If you entered 8 in the MUX box, then enter a number between 1 and 8 to select the number of differential A/D channels used.
Diamond-MM Sample Time - Enter the base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must correspond to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 Diamond-MM Analog Output (D/A) Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - This parameter is a combined Channel Vector and Range Vector.
10 Diamond Sample Time - Enter the base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must correspond to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 Diamond-MM Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
Diamond-MM Diamond-MM Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Number of Channels - Enter a number between 1 and 8 to select the number of digital output lines used. Sample Time - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must correspond to the DIP-switch settings on the board.
10 Diamond Diamond-MM-32 The Diamond MM-32 is a PC104 I/O board with 32 single or 16 differential analog input (A/D) channels (16-bit) with a maximum sample rate or 200 kHz, 4 analog output (D/A) channels (12-bit), 24 digital input and output lines.
Diamond-MM-32 Diamond-MM-32 Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters First channel (1..n) — If you select single-ended from the MUX list, then enter a number between 1 and 32 to select the first channel. If you select differential from the MUX list, then enter a number between 1 and 16 to select the first channel. Number of Channels (1..
10 Diamond MUX — From the list choose single-ended (32 channels) or differential (16channels). This entry must correspond to the MUX jumpers set on the board. Sample Time - Enter the base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must correspond to the DIP-switch settings on the board.
Diamond-MM-32 The following table is a list of the ranges for this driver and the corresponding range codes. The D/A specific jumpers on the board have to be in the correct positions for the ranges entered. Input range (V) Range code Input range (V) Range code -10 to +10 -10 0 to +10 10 -5 to +5 -5 0 to +5 5 For example, if the first channel is 0 to + 10 volts and the second channel is 0 to +5 volts, enter [10,5] Sample Time - Enter the base sample time or a multiple of the base sample time.
10 Diamond Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital inputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0.
Diamond-MM-32 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital outputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0.
10 Diamond Quartz-MM 5 The Quartz-MM 10 has 8 digital input lines, 8 digital output lines, and 10 counter/timers.
Quartz-MM 5 Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector- Enter a number between 1 and 8 to select the number of digital input lines used. Sample Time - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must correspond to the DIP-switch settings on the board.
10 Diamond 0x300 10-16
Quartz-MM 5 Quartz-MM5 Counter PWM The Quartz-MM5 has one AM9513A chip with 5 counters. The Quartz-MM5 PWM driver programs the AM9513A for PWM (Pulse Width Modulation) signal generation (a square wave with fixed frequency and variable duty cycle). The block has one input which defines the variable duty cycle between 0 and 1. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter.
10 Diamond Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration on the input (Duty Cycle) BaseAddress -Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 Quartz-MM5 counter PWM & ARM The Quartz-MM5 has one AM9513A chip with 5 counters.
Quartz-MM 5 Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initialization phase of the driver similar to a initial value of an integrator. Initial Toggle State - From the list, choose high or low. The Initial Toggle State sets the initial digital level (high or low) of the output. For example, if the Initial Duty Cycle is 0.
10 Diamond Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. XTAL frequency is assumed to be 1MHz, therefore the jumper on the CIO-CTR05 has to be in position 1MHz not 5MHz. Initial Relative Output Frequency - Enter a value between 0 and 1. The Initial Relative Output Frequency defines the initial output frequency of the FM-signal relative to the Frequency Base during driver initialization.
Quartz-MM 5 Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL Variable frequency: double Arm: double <0.5 disarmed >0.5 armed Driver Block Parameters Counter. From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which counter is used with this driver block. In each case, one block is needed for each counter. Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency.
10 Diamond BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 Quartz-MM5 PWM Capture This block programs the AMD9513A for capturing PWM signals by using two counters. One counter measures the cycle duration, and the other counter measures the duration the signal is high. There are two outputs. One output is the relative frequency compared to the base frequency.
Quartz-MM 5 Quartz-MM5 FM Capture This block programs the AMD9513A for capturing FM signals. There is one output for relative frequency compared to the base frequency. To get the actual frequency, multiply the base frequency by the relative frequency. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter - From the list, choose 1, 2, 3, 4 or 5. This selects which counter the driver block uses to determine the FM.
10 Diamond Quartz-MM 10 The Quartz-MM 10 has 8 digital input line, 8 digital output lines, and 10 counter/timers.
Quartz-MM 10 Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector- Enter a number between 1 and 8 to select the number of digital input lines used. Sample Time - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must correspond to the DIP-switch settings on the board.
10 Diamond 0x300 10-26
Quartz-MM 10 Quartz-MM 10 Counter PWM The Quartz-MM10 has two AM9513A chips with 5 counters each. The Quartz-MM10 PWM driver programs the AM9513A for PWM (Pulse Width Modulation) signal generation (a square wave with fixed frequency and variable duty cycle). The block has one input which defines the variable duty cycle between 0 and 1. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter.
10 Diamond Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration on the input (Duty Cycle) BaseAddress -Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 Quartz-MM 10 Counter PWM & ARM The Quartz-MM10 has one AM9513A chip with 5 counters.
Quartz-MM 10 Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initialization phase of the driver similar to a initial value of an integrator. Initial Toggle State - From the list, choose high or low. The Initial Toggle State sets the initial digital level (high or low) of the output. For example, if the Initial Duty Cycle is 0.
10 Diamond Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. XTAL frequency is assumed to be 1MHz, therefore the jumper on the CIO-CTR05 has to be in position 1MHz not 5MHz. Initial Relative Output Frequency - Enter a value between 0 and 1. The Initial Relative Output Frequency defines the initial output frequency of the FM-signal relative to the Frequency Base during driver initialization.
Quartz-MM 10 Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL Variable frequency: double Arm: double <0.5 disarmed >0.5 armed Driver Block Parameters Counter. From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which counter is used with this driver block. In each case, one block is needed for each counter. Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency.
10 Diamond BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 Quartz-MM 10 PWM Capture This block programs the AMD9513A for capturing PWM signals by using two counters. One counter measures the cycle duration, and the other counter measures the duration the signal is high. There are two outputs. One output is the relative frequency compared to the base frequency.
Quartz-MM 10 Quartz-MM 10 FM Capture This block programs the AMD9513A for capturing FM signals. There is one output for relative frequency compared to the base frequency. To get the actual frequency, multiply the base frequency by the relative frequency. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter - From the list, choose 1, 2, 3, 4 or 5, 6, 7, 8, 9, or 10. This selects which counter the driver block uses to determine the FM.
10 Diamond 10-34
11 Gespac
11 Gespac I/O boards supported by xPC Target.
GESADA-1 GESADA-1 The GEADA-1 is an industrial I/O board with 16 single or 8 differential analog input (A/D) channels, and 4 analog output (D/A) channels (10-bit). xPC Target supports this board with two driver blocks: • “GESADA-1 Analog Input (A/D)” • “GESADA-1 Analog Output (D/A)” Note xPC Target does not support the external trigger and interrupt propagation on this board.
11 Gespac Driver Block Parameters Number of Channels - If you choose 16 single-ended from the MUX list, then enter a number between 1 and 16. If you choose 8 differential from the MUX list, then enter a number between 1 and 8. This driver does not allow you to select individual channels or to mix single-ended and differential inputs. Number the channels beginning with 1 even if the board manufacturer starts numbering channels with 0.
GESADA-1 Enter a range code for each of the channels used. This driver allows a different range for each D/A channel with a maximum of 2 channels. The following table is a list of the ranges for this driver and the corresponding range codes.
11 Gespac GESPIA-2A The GESPIA-2A is an industrial I/O board with 32 digital I/O lines. The GESPIA-2A has two 6821 PIAs (0 and 1) from Motorola. Each PIA has two ports (A and B) with 8 digital lints which can be defined as input or output.
GESPIA-2A GESPIA-2A Digital Input Use a separate diver block for each port. By selecting the digital input driver block, the port is configured as input. Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Number of Channels - Enter a number between 1 and 8 to select the number of digital input lines used with this port. Port Name.
11 Gespac GESPIA-2A Digital Output Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Number of Channels - Enter a number between 1 and 8 to select the number of digital output lines used with this port. Port Name.
12 Humusoft
12 Humusoft I/O boards supported by xPC Target.
AD 512 AD 512 The AD 512 is an I/O board with 8 single analog input (A/D) channels (12-bit) with a maximum sample rate of 100 kHz, 2 analog output (D/A) channels (12-bit), 8 digital inputs, and 8 digital outputs.
12 Humusoft AD 512 Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver block Parameter Channel Vector - Enter numbers between 1 and 8. This driver allows the selection of individual channels in any order. The number of elements defines the number of A/D channels used.
AD 512 BaseAddress - Enter the base address of the board. This entry must correspond to the jumper settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 AD 512 Analog Output (D/A) Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - This parameter is a combined Channel Vector and Range Vector. The number of elements defines the number of D/A channels used.
12 Humusoft BaseAddress - Enter the base address of the board. This entry must correspond to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 AD 512 Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Channel Vector - Enter a numbers between 1 and 8. This driver allows the selection of individual digital line numbers in any order.
AD 512 AD 512 Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Channel Vector - Enter a numbers between 1 and 8. This driver allows the selection of individual digital line numbers in any order. The number of elements defines the number of digital output lines used.
12 12-8 Humusoft
13 Keithley Metrabyte
13 Keithley Metrabyte I/O boards supported by xPC Target.
DAS-1800HR DAS-1800HR The DAS-1800HR is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maximum sample rate of 100 kHz, 4 digital input lines and 4 digital output lines.
13 Keithley Metrabyte DAS-1800HR Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - If 16 single-ended or 16 single-ended common mode is chosen from the MUX list, then enter numbers between 1 and 16 to select the individual channels. If 8 differential is chosen from the MUX list, then enter numbers between 1 and 8 to select the A/D channels used.
DAS-1800HR The following table is a list of the ranges for this driver given the gain entered and the range chosen. Gain Bipolar Range (V) Unipolar Range (V) 1 -10 to +10 0 to 10 2 -5 to + 5 0 to +5 4 -2.5 to 2.5 0 to 2.5 8 -1.25 to +1.25 0 to 1.25 MUX - From the list, choose either 8 differential, 16 single-ended, or 16 single-ended common mode. Your choice must correspond to the MUX-switch setting on the board.
13 Keithley Metrabyte Sample Time - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 DAS-1800HR Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.
KCPI-1801HC KCPI-1801HC The KCPI-1801 is an I/O board with 64 single or 32 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 333 kHz, 2 analog output (D/A) channels (12-bit), and 4 digital input and output lines. xPC Target supports this board with four driver blocks: • “KPCI-1801HC Analog Input (A/D)” • “KPCI-1801HC Analog Output (D/A)” • “KPCI-1801HC Digital Input” • “KPCI-1801HC Digital Output” xPC Target does not support does not support the counter/timers on this board.
13 Keithley Metrabyte KPCI-1801HC Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver 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.
KCPI-1801HC 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 singleended 0 Analog input line connected to the positive input. Analog input ground (IGND) internally connected to the negative input.
13 Keithley Metrabyte KPCI-1801HC Analog Output (D/A) The analog output range of this board is set -10 to +10 volts. Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
KCPI-1801HC KPCI-1801HC Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 4 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
13 Keithley Metrabyte KPCI-1801HC Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 4 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
KPCI-1802HC KPCI-1802HC The KCPI-1801 is an I/O board with 64 single or 32 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 333 kHz, 2 analog output (D/A) channels (12-bit), and 4 digital input and output lines. xPC Target supports this board with four driver blocks: • “KPCI-1802HC Analog Input (A/D)” • “KPCI-1802HC Analog Output (D/A)” • “KPCI-1802HC Digital Input” • “KPCI-1802HC Digital Output” xPC Target does not support does not support the counter/timers on this board.
13 Keithley Metrabyte KPCI-1802HC Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver 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.
KPCI-1802HC 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 singleended 0 Analog input line connected to the positive input. Analog input ground (IGND) internally connected to the negative input.
13 Keithley Metrabyte KPCI-1802HC Analog Output (D/A) The analog output range of this board is set -10 to +10 volts. Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
KPCI-1802HC KPCI-1802HC Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 4 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
13 Keithley Metrabyte KPCI-1802HC Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 4 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
14 National Instruments
14 National Instruments I/O boards supported by xPC Target.
Board Name A/ D D/ A DI N DO UT “PXI-6040E” x x x x compa ct PCI “PXI-6070E” x x x x compa ct PCI x x compa ct PCI “PXI-6508” Other Bus type 14-3
14 National Instruments AT-AO-6 The AT-AO-6 is an I/O board with 6 analog output (D/A) channels (12-bit), and 16 digital I/O lines.
AT-AO-6 [1,2] 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 board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
14 National Instruments AT-AO-6 Digital Input The AT-AO-6 has 8 digital input lines. Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines . This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
AT-AO-6 AT-AO-6 Digital Output The AT-AO-6 has 8 digital output lines. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
14 National Instruments AT-AO-10 The AT-AO-10 is an I/O board with 10 analog output (D/A) channels (12-bit), and 16 digital I/O lines.
AT-AO-10 [1,2] 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 board allows the range of each channel to be different. The following table is a list of the ranges for this driver and the corresponding range codes.
14 National Instruments AT-AO-10 Digital Input The AT-AO-10 has 8 digital input lines. Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines . This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
AT-AO-10 AT-AO-10 Digital Output The AT-AO-10 has 8 digital output lines. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
14 National Instruments GPIB-232CT-A The GPIB-232CT-A is GPIB controller external to the target PC. It is connected to the target PC with an RS232 cable.
GPIB-232CT-A Number of Stopbits - From the list, choose 1 or 2. Parity - From the list, choose None, Odd, or Even. Protocol - From the list, choose None or XOnXOff. If your serial device does not support hardware handshaking, or your application softwarre requires XOn/XOff handshaking, you might need to choose XOn/XOff. Send Buffer Size - Enter the buffer size in bytes. Receive Buffer Size - Enter the buffer size in bytes.
14 National Instruments PC-DIO-24 The PC-DIO-24 is an I/O board with 24 digital input and output lines.
PC-DIO-24 PC-DIO24 Digital Input The PC-DIO24 has one 8255 chip with 3 ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital input driver block, the port is configured as input. Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
14 National Instruments PC-DIO24 Digital Output The PC-DIO24 has one 8255 chip with 3 ports (A,B,C). Each port has a maximum of 8 digital I/O lines that can be configured as inputs or outputs. Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.
PC-TIO-10 PC-TIO-10 The PC-TIO-10 is an I/O board with 16 digital input and output lines, and 10 counter/timer channels (16-bit).
14 National Instruments Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
PC-TIO-10 Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
14 National Instruments PC-TIO-10 Counter PWM The PC-TIO-10 has two AM9513A chips each with 5 counters for a total of 10 counters on the board. The PC-TIO-10 PWM driver programs the AM9513A for PWM (Pulse Width Modulation) signal generation (a square wave with fixed frequency and variable duty cycle). The block has one input which defines the variable duty cycle between 0 and 1.
PC-TIO-10 Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration on the input (Duty Cycle) BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 PC-TIO10 Counter PWM & ARM The PC-TIO-10 has two AM9513A chips each with 5 counters for a total of 10 counters on the board.
14 National Instruments Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initialization phase of the driver similar to a initial value of an integrator. Initial Toggle State - From the list, choose high or low. The Initial Toggle State sets the digital level (high or low) of the output. For example, if the Initial Duty Cycle is 0.
PC-TIO-10 Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter - From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which counter is used with this driver block. In each case, one block is needed for each counter. Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. Initial Relative Output Frequency. Enter a value between 0 and 1.
14 National Instruments PC-TIO10 Counter FM & ARM The PC-TIO-10 has two AM9513A chips each with 5 counters for a total of 10 counters on the board. The PC-TIO-10 FM & ARM driver programs the AM9513A for FM (Frequency Modulation) signal generation (a square wave with fixed duty cycle and variable frequency). Additionally the driver allows to arm and disarm the counter by the second block input.
PC-TIO-10 Initial ARM State - From the list, choose Disarmed or Armed. The Initial ARM State defines if the counter should be armed or disarmed after driver initialization. The ARM State during a simulation can be controlled by the second block input. If a value 0 is asserted, the counter is disarmed. If a value 1 is asserted, the counter gets armed. Sample Time - Enter the base sample time or a multiple of the base sample time.
14 National Instruments PCI-6023E The PCI-6023E is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 200 kHz, 8 digital I/O lines, and 2 counter/timers (24-bit) xPC Target supports this board with three driver blocks: • “PCI-6023E Analog Input (A/D)” • “PCI-6023E Digital Input” • “PCI-6023E Digital Output” xPC Target does not support the counter/timers on this board.
PCI-6023E PCI-6023E Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. 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.
14 National Instruments The following table is a list of the couplings for this driver and the corresponding coupling codes. Coupling Coupling Code Description RSE 0 Analog input line connected to the positive input of the PGIA. Analog input ground (AIGND) internally connected to the negative input of the PGIA. See the board manual. NRSE 1 Analog input line connected to the positive input of the PGIA. Analog input sense (AISENSE) connected to the negative input of the PGIA. See the board manual.
PCI-6023E PCI-6023E Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
14 National Instruments PCI-6023E Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
PCI-6024E PCI-6024E The PCI-6024E is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 200 kHz, 2 analog output (D/A) channels (12-bit), 8 digital input and output lines, and 2 counter/ timers (24-bit).
14 National Instruments PCI-6024E Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. 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.
PCI-6024E The following table is a list of the couplings for this driver and the corresponding coupling codes. Coupling Coupling Code Description RSE 0 Analog input line connected to the positive input of the PGIA. Analog input ground (AIGND) internally connected to the negative input of the PGIA. See the board manual. NRSE 1 Analog input line connected to the positive input of the PGIA. Analog input sense (AISENSE) connected to the negative input of the PGIA. See the board manual.
14 National Instruments PCI-6024E Analog Output (D/A) The analog output range of this board is set -10 to +10 volts. Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
PCI-6024E PCI-6024E Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
14 National Instruments PCI-6024E Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
PCI-6025E PCI-6025E The PCI-6025E is an I/O board with 16 single or 8 differential analog inputs (A/D) channels (12-bit) with a maximum sample rate of 200 kHz, 2 analog output channels (12-bit), 32 digital input and output lines, and 2 counter/ timers (24-bit). xPC Target supports this board with four driver blocks: • “PCI-6025E Analog Input (A/D)” • “PCI-6025E Analog Output (D/A)” • “PCI-6025E Digital Input” • “PCI-6025E Digital Output” Note xPC Target does not support the counter/timers on this board.
14 National Instruments PCI-6025E Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. 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.
PCI-6025E The following table is a list of the couplings for this driver and the corresponding coupling codes. Coupling Coupling Code Description RSE 0 Analog input line connected to the positive input of the PGIA. Analog input ground (AIGND) internally connected to the negative input of the PGIA. See the board manual. NRSE 1 Analog input line connected to the positive input of the PGIA. Analog input sense (AISENSE) connected to the negative input of the PGIA. See the board manual.
14 National Instruments PCI-6025E Analog Output (D/A) The analog output range of this board is set -10 to +10 volts. Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
PCI-6025E PCI-6025E Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
14 National Instruments PCI-6025E Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
PCI-6031E PCI-6031E The PCI-6031E is an I/O board with 64 single or 32 differential analog input (A/D) channels (16-bit) with a maximum sample rate of 100 kHz, 2 analog output (D/A) channels (16-bit), 8 digital input and output lines, and 2 counter/ timers (24-bit).
14 National Instruments Scaling of Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver 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.
PCI-6031E [-10,1,1] 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 RSE 0 Analog input line connected to the positive input of the PGIA.
14 National Instruments If two or more boards of this type are physically present in your target PC, enter the PCI slot number of the board associated with this driver block. PCI-6031E Analog Output (D/A) The analog output range of this board is set -10 to +10 volts. Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order.
PCI-6031E PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-6031E Digital Input Scaling of Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
14 National Instruments PCI-6031E Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
PCI-6052E PCI-6052E The PCI-6052E is an I/O board with 16 single or 8 differential analog input channels (16-bit) with a maximum sample rate of 333 kHz, 2analog output channels (16-bit) and 8 digital input and output lines. xPC Target supports this board with four driver blocks: • “PCI-6052E Analog Input (A/D)” • “PCI-6052E Analog Output (D/A)” • “PCI-6052E Digital Input” • “PCI-6052E Digital Output” Note xPC Target does not support does not support the counter/timers on this board.
14 National Instruments Scaling of Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. 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.
PCI-6052E For example, if the first channel is -10 to + 10 volts and the second and fifth channels are 0 to +1 volts, enter [-10,1,1] 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.
14 National Instruments If only one board of this type is physically present in your target PC, enter -1 If two or more boards of this type are physically present in your target PC, enter the PCI slot number of the board associated with this driver block. PCI-6052E Analog Output (D/A) Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter Numbers between 1 and 2.
PCI-6052E Sampletime - Base sample time of a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-6052E Digital Input Scaling of Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
14 National Instruments PCI-6052E Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double <0.5 = TTL low >0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
PCI-6071E PCI-6071E The PCI-6071E is an I/O board with 64 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 1.25 MHz, 2 analog output (D/A) channels (12-bit), 8 digital input and output lines, and 2 counter/ timers (24-bit).
14 National Instruments PCI-6071E Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver 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.
PCI-6071E Input range (V) Range code Input range (V) Range code -0.1 to +0.1 -0.1 0 to +0.1 0.1 -0.05 to +0.05 -0.05 For example, if the first channel is -10 to + 10 volts and the second and fifth channels are 0 to +1 volts, enter [-10,1,1] 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.
14 National Instruments The driver selects a second differential input 8 channels higher than the first channel. In the example above, the driver would select the thirteenth channel as a differential input with the fifth channel. Sampletime - Model base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n.
PCI-6071E The following table is a list of the ranges for this driver and the corresponding range codes. Input range (V) Range code Input range (V) Range code -10 to +10 -10 0 - 10 10 For example, if the first channel is -10 to +10 volts, and the second channel is 0 to 5 volts, enter [-10,5] Sampletime - Base sample time of a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n.
14 National Instruments Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0. Sampletime - Enter a base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 PCI-6071E Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.
PCI-6503 PCI-6503 The PCI-6503 is an I/O board with 24 digital input and output lines. xPC Target supports this board with two driver blocks: • “PCI-6503 Digital Input” • “PCI-6503 Digital Output” Board Characteristics Board name PCI-6503 Manufacturer National Instruments Bus type PCI Access method I/O mapped Multiple block instance support Yes Multiple board support Yes PCI-6503 Digital Input The PCI-6503 has one 8255 chip with 3 ports (A,B,C).
14 National Instruments Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital inputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.
PCI-6503 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital outputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.
14 National Instruments PCI-6508 14-64
PCI-DIO-96 PCI-DIO-96 The PC-DIO-96 is an I/O board with 96 digital input and output lines. xPC Target supports this board with two driver blocks: • “PC-DIO24 Digital Input” • “PCI-DIO96 Digital Output” Board Characteristics Board name PC-DIO-96 Manufacturer National Instruments Bus type PCI Access method I/O mapped Multiple block instance support Yes Multiple board support Yes PCI-DIO96 Digital Input The PC-DIO96 has four 8255 chips with 3 ports (A,B,C).
14 National Instruments Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital inputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.
PCI-DIO-96 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital outputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.
14 National Instruments PCI-MIO-16E-1 The PCI-MIO-16E-1 is an I/O board with 16 single or 8 differential analog input channels (12-bit) with a maximum sample rate of 1.25 MHz, 2analog output channels (12-bit), 8 digital input and output lines, and 2 counter/timers (24-bit).
PCI-MIO-16E-1 Channel Vector - Enter numbers between 1 and 16. 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.
14 National Instruments The following table is a list of the couplings for this driver and the corresponding coupling codes. Coupling Coupling Code Description RSE 0 Analog input line connected to the positive input of the PGIA. Analog input ground (AIGND) internally connected to the negative input of the PGIA. See the board manual. NRSE 1 Analog input line connected to the positive input of the PGIA. Analog input sense (AISENSE) connected to the negative input of the PGIA. See the board manual.
PCI-MIO-16E-1 PCI-MIO-16E1 Analog Output (D/A) Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter Numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
14 National Instruments If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-MIO-16E1 Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port.
PCI-MIO-16E-1 PCI-MIO-16E1 Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
14 National Instruments PCI-MIO-16E-4 The PCI-MIO-16E-4 is an I/O board with 16 single or 8 differential analog input channels (12-bit) with a maximum sample rate of 500 kHz, 2 analog output channels (12-bit), 8 digital input and output lines, and 2 counter/timers (24-bit).
PCI-MIO-16E-4 PCI-MIO-16E-4 Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. 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.
14 National Instruments Input range (V) Range code Input range (V) Range code -0.1 to +0.1 -0.1 0 - 0.1 0.1 -0.05 to +0.05 -0.05 For example, if the first channel is -10 to + 10 volts and the second and fifth channels are 0 to +1 volts, enter [-10,1,1] 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.
PCI-MIO-16E-4 The driver selects a second differential input 8 channels higher than the first channel. In the example above, the driver would select the thirteenth channel as a differential input with the fifth channel. Sampletime - Model base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n.
14 National Instruments The following table is a list of the ranges for this driver and the corresponding range codes. Input range (V) Range code Input range (V) Range code -10 to +10 -10 0 - 10 10 For example, if the first channel is -10 to +10 volts, and the second channel is 0 to 5 volts, enter [-10,5] Sampletime - Base sample time of a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n.
PCI-MIO-16E-4 Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0. Sampletime - Enter a base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 PCI-MIO-E4 Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.
14 National Instruments PCI-MIO-16XE-10 The PCI-6024E is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maximum sample rate of 100 kHz, 2 analog output (D/A) channels (16-bit), 8 digital input and output lines, and 2 counter/ timers (24-bit).
PCI-MIO-16XE-10 Scaling of Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. 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.
14 National Instruments [-10,1,1] 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 RSE 0 Analog input line connected to the positive input of the PGIA.
PCI-MIO-16XE-10 If two or more boards of this type are physically present in your target PC, enter the PCI slot number of the board associated with this driver block. PCI-MIO-16XE-10 Analog Output (D/A) The analog output range of this board is set -10 to +10 volts. Scaling of Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order.
14 National Instruments PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PCI-MIO-16XE-10 Digital Input Scaling of Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
PCI-MIO-16XE-10 PCI-MIO-16XE-10 Digital Output Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
14 National Instruments PXI-6040E The PXI-6040E is an I/O board with 16 single or 8 differential analog input channels (12-bit) with a maximum sample rate of 500 kHz, 2 analog output channels (12-bit), 8 digital input and output lines, and 2 counter/timers (24-bit).
PXI-6040E PXI-6040E Analog Input (A/D) Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. 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.
14 National Instruments Input range (V) Range code Input range (V) Range code -0.1 to +0.1 -0.1 0 - 0.1 0.1 -0.05 to +0.05 -0.05 For example, if the first channel is -10 to + 10 volts and the second and fifth channels are 0 to +1 volts, enter [-10,1,1] 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.
PXI-6040E The driver selects a second differential input 8 channels higher than the first channel. In the example above, the driver would select the thirteenth channel as a differential input with the fifth channel. Sampletime - Model base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n.
14 National Instruments The following table is a list of the ranges for this driver and the corresponding range codes. Input range (V) Range code Input range (V) Range code -10 to +10 -10 0 - 10 10 For example, if the first channel is -10 to +10 volts, and the second channel is 0 to 5 volts, enter [-10,5] Sampletime - Base sample time of a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n.
PXI-6040E Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0. Sampletime - Enter a base sample time or a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 PXI-6040E Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.
14 National Instruments PXI-6070E The PXI-6070E is an I/O board with 16 single or 8 differential analog input channels (12-bit) with a maximum sample rate of 1.25 MHz, 2 analog output channels (12-bit), 8 digital input and output lines, and 2 counter/timers (24-bit).
PXI-6070E Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. 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.
14 National Instruments The following table is a list of the couplings for this driver and the corresponding coupling codes. Coupling Coupling Code Description RSE 0 Analog input line connected to the positive input of the PGIA. Analog input ground (AIGND) internally connected to the negative input of the PGIA. See the board manual. NRSE 1 Analog input line connected to the positive input of the PGIA. Analog input sense (AISENSE) connected to the negative input of the PGIA. See the board manual.
PXI-6070E PXI-6070E Analog Output (D/A) Scaling Input to Output Hardware Output Block Input Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter Numbers between 1 and 2. This driver allows the selection of individual D/A channels in any order. The number of elements defines the number of D/A channels used.
14 National Instruments If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. PXI-6070E Digital Input Scaling Input to Output Hardware Input Block Output Data Type Scaling TTL double TTL low = 0.0 TTL high = 1.0 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port.
PXI-6070E PXI-6070E Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
14 National Instruments PXI-6508 The PXI-6508 is an I/O board with 96 digital input and output lines. xPC Target supports this board with two driver blocks: • “PXI-6508 Digital Input” • “PXI-6508 Digital Output” Board Characteristics Board name PXI-6508 Manufacturer National Instruments Bus type PXI (Compact PCI) Access method I/O mapped Multiple block instance support Yes Multiple board support Yes PXI-6508 Digital Input The PXI-6508 has four 8255 chip with 3 ports (A,B,C).
PXI-6508 Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used. For example, to use all of the digital inputs for one port, enter [1,2,3,4,5,6,7,8] Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0. Port - From the list choose either A, B, or C.
14 National Instruments Scaling of Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver allows the selection of individual digital output lines in any order. The number of elements defines the number of digital lines used.
15 Real Time Devices
15 Real Time Devices I/O boards supported by xPC Target.
DM6420 DM6420 The DM6420 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 500 kHz, 2 analog output (D/A) channels (12-bit), 8 independent digital I/O lines, 8 dependent digital I/O lines, and 2 counter/timers (16-bit). xPC Target supports this board with one driver block: • “DM6420 Analog Input” Note xPC Target does not support the analog output (D/A), digital I/O, or the counter/timers on this board.
15 Real Time Devices DM6420 Analog Input Scaling Input to Output Hardware Input Block Output Data Type Scaling volts double 1 Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual A/D channels in any order. The number of elements defines the number of A/D channels used.
DM6420 Note While this board has programmable input ranges of +5, +10 and 0 to 10, this driver sets the input range to +10, and then lets you select different input ranges by choosing different gains. The following table is a list of the ranges for this driver given the gain entered in the gain vector. Gain Range (V) 1 -10 to 10 2 -5 to +5 4 -2.5 to 2.5 8 -1.25 to 1.25 Notice that by increasing the gain code the voltage range is decreased. The gain divides the input voltage range.
15 Real Time Devices DM6430 The DM6420 is an ISA PC/104 I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maximum sample rate of 100 kHz, 1 analog output (D/A) channel (16-bit), 16 digital I/O lines, and 2 counter/timers (16-bit). xPC Target supports this board with two driver blocks: • “DM6430 Analog Input (A/D)” • “DM6430 Analog Output (D/A)” Note xPC Target does not support the digital I/O, or the counter/timers on this board.
DM6430 Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual A/D channels in any order. The number of elements defines the number of A/D channels used. 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. Gain Vector - Enter 1, 2, 4, or 8 for each of the channels in the channel vector to choose the gain code of that channel.
15 Real Time Devices [0,0,1] The driver selects a second differential input 8 channels higher than the first channel. In the example above, the driver would select the thirteenth channel as a differential input with the fifth channel. Sample Time - Base sample time of a multiple of the base sample time. BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board.
DM6604 DM6604 The DM6604 is an ISA PC/104 I/O board with 8 analog output (D/A) channels (12-bit), and 24 digital I/O lines.
15 Real Time Devices [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 entered in the channel vector. The range vector must be the same length as the channel vector. This driver allows a different range for each channel. The following table is a list of the ranges for this driver and the corresponding range codes.
DM6604 Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0. Port - From the list choose either A, B, or C. The port name defines which port is used for this driver block. Each port has a maximum of 8 digital lines that can be configured as inputs. In each case, one block is needed for each port. Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board.
15 Real Time Devices DM6804 The DM6604 is an ISA PC/104 I/O board with 24 digital I/O lines and 5 counter/ timer channels (16-bit). It contains one 8255 chip with 3 digital I/O ports and one AM9513A counter/ timer chip. For additional information about the various counter/timer modes of that chip see the AM9513A data sheet which is part of the board documentation.
DM6804 Use a separate driver block for each port. By selecting the digital input driver block, the port is configured as input. Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
15 Real Time Devices Port - From the list choose either A, B, or C. The port name defines which port is used for this driver block. Each port has a maximum of 8 digital lines that can be configured as outputs. In each case, one block is needed for each port. Sampletime - Enter a base sample time or a multiple of the base sample time. BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board.
DM6804 Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initialization phase of the driver similar to a initial value of an integrator. Initial Toggle State - From the list, choose high or low. The Initial Toggle State sets the initial digital level (high or low) of the output. For example, if the Initial Duty Cycle is 0.
15 Real Time Devices Relative Output Frequency - Enter a value less than 1. The Relative Output Frequency is multiplied by the FrequencyBase to set the fixed output frequency of the PWM-signal. For example, if the output frequency of a square wave has to be 17.5 kHz, then choose F2=500kHz as the Frequency Base and enter 0.175 as the Relative Output Frequency. 500kHz x 0.175 = 87.5 kHz Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle.
DM6804 Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double 0 to 1 Driver Block Parameters Counter - From the list, choose 1, 2, 3, 4, or 5 to select which counter is used with this driver block. In each case, one block is needed for each counter. Frequency Base - From the list, choose F1=5MHz, F2=500kHz, F3=50kHz, F4=5kHz, or F5=500Hz to set the base frequency. Initial Relative Output Frequency - Enter a value between 0 and 1.
15 Real Time Devices The DM6804 FM & ARM driver programs the AM9513A for FM (Frequency Modulation) signal generation (a square wave with fixed duty cycle and variable frequency). Additionally the driver allows to arm and disarm the counter by the second block input. Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL Variable frequency: double Arm: double <0.5 disarmed >0.
DM6804 second block input. If a value 0 is asserted, the counter is disarmed. If a value 1 is asserted, the counter gets armed. Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration on the input (Duty Cycle) BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board.
15 Real Time Devices BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter 0x300 DM6804 FM Capture This block programs the AMD9513A for capturing FM signals. There is one output for relative frequency compared to the base frequency. To get the actual frequency, multiply the base frequency by the relative frequency.
DM6814 DM6814 The DM6814 is a 16-bit counting board with 3 channels. This board typically connects to incremental encoders. Incremental encoders convert physical motion into electrical pulses than can be used to determine velocity, direction, and distance. xPC Target supports this board with one driver block: • “DM6814 Incremental Encoder” Note xPC Target does not support the 12 digital input lines on this board.
15 Real Time Devices Sample Time — Base sample time or a multiple of the base sample time. BaseAddress — Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board.
DM7420 DM7420 The DM7420 is a PCI PC/104 I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum sample rate of 1.25 MHz, 8 independent digital I/O lines, 8 dependent digital I/O lines, and 9 counter/ timers. xPC Target supports this board with three driver blocks: • “DM7420 Analog Input (A/D)” • “DM7420 Digital Input” • “DM7420 Digital Output” Note xPC Target does not support the counter/timers on this board.
15 Real Time Devices Driver Block Parameters Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual A/D channels in any order. The number of elements defines the number of A/D channels used. 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.
DM7420 The following table is a list of the ranges for this driver given the gain entered in the gain vector. Gain Range (V) 1 0 to 10 2 0 to +5 4 0 to 2.5 8 0 to 1.25 16 0 to 0.625 32 0 to 0.312 Notice that by increasing the gain code the voltage range is decreased. The gain divides the input voltage range.
15 Real Time Devices -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. DM7420 Digital Input Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
DM7420 Port - From the list choose either 0, or 1. Sample Time - Base sample time of a multiple of the base sample time. PCI Slot (-1:autosearch) - Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter -1 If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block.
15 28 Real Time Devices
16 Softing
16 Softing I/O boards supported by xPC Target.
CAN-AC2-ISA CAN-AC2-ISA For I/O-drivers to connect xPC Target-applications to the CAN-fieldbus xPC Target CAN-AC2 is provided as an extension to the xPC Target basic package. See the xPC Target User’s Guide for additional information. CAN-AC2-ISA with Philips PCA82C200 The second level of the library contains three driver blocks, one for setting up the board, one for sending CAN-messages and one for receiving CAN-messages.
16 Softing Setup-block Every SIMULINK-model which sends and receives CAN-messages over the CAN-AC2 board has to contain exactly one setup-block. The setup-block does not have any inputs or outputs. The dialogue-box allows to define general settings for the CAN-AC2 board. The corresponding code (initializing the board) is executed once during the "initializing blocks"-phase after the xPC Target application has been downloaded.
CAN-AC2-ISA 2: 3: D4000-D7FFF D8000-D8FFF The second and third dialogue-field allows to choose the baudrate of CAN-port 1. If the baudrate within the popup menu is not set to "user defined" the entries in the "user-defined" dialogue-field have no meaning. If it is set to "user defined" a wide range of baudrates can be set by setting Prescaler, Width, Tseg1, Tseg2 to appropriate values. Contact the CAN-AC2 manual for detailed information how to set "user defined" baudrates.
16 Softing Send-block To send CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed send-blocks. The first dialogue-entry specifies via which CAN-port the CAN-message should be sent. The second dialogue-entry specifies the identifiers for CAN-messages to be sent. The identifiers entered here as a row-vector have to be a subset of the send identifiers defined in the setup-block of either CAN-port 1 or 2.
CAN-AC2-ISA Receive-block To receive CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed receive-blocks. The first dialogue-entry specifies from which CAN-port the CAN-message should be received. The second dialogue-entry specifies the identifiers for CAN-messages to be received. The identifiers entered here as a row-vector have to be a subset of the receive identifiers defined in the setup-block of either CAN-port 1 or 2.
16 Softing CAN-AC2-ISA with Intel 82527 The second level of the library contains three driver blocks, one for setting up the board, one for sending CAN-messages and one for receiving CAN-messages.
CAN-AC2-ISA Setup-block Every SIMULINK-model which sends and receives CAN-messages over the CAN-AC2 board has to contain exactly one setup-block. The setup-block does not have any inputs or outputs. The dialogue-box allows to define general settings for the CAN-AC2 board. The corresponding code (initializing the board) is executed once during the "initializing blocks"-phase after the xPC Target application has been downloaded.
16 Softing The second and third dialogue-field allows to choose the baudrate of CAN-port 1. If the baudrate within the popup menu is not set to "user defined" the entries in the "user-defined" dialogue-field have no meaning. If it is set to "user defined" a wide range of baudrates can be set by setting Prescaler, Width, Tseg1, Tseg2 to appropriate values. Contact the CAN-AC2 manual for detailed information how to set "user defined" baudrates.
CAN-AC2-ISA Send-block To send CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed send-blocks. The first dialogue-entry specifies via which CAN-port the CAN-message should be sent. The second dialogue-entry specifies the identifiers for CAN-messages to be sent. The identifiers entered here as a row-vector have to be a subset of the send identifiers defined in the setup-block of either CAN-port 1 or 2.
16 Softing Receive-block To receive CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed receive-blocks. The first dialogue-entry specifies from which CAN-port the CAN-message should be received. The second dialogue-entry specifies the identifiers for CAN-messages to be received. The identifiers entered here as a row-vector have to be a subset of the receive identifiers defined in the setup-block of either CAN-port 1 or 2.
CAN-AC2-PCI CAN-AC2-PCI For I/O-drivers to connect xPC Target-applications to the CAN-fieldbus xPC Target CAN-AC2 is provided as an extension to the xPC Target basic package. See the xPC Target User’s Guide for additional information. CAN-AC2-PCI with SJA 1000 The second level of the library contains three driver blocks, one for setting up the board, one for sending CAN-messages and one for receiving CAN-messages.
16 Softing Setup-block Every SIMULINK-model which sends and receives CAN-messages over the CAN-AC2-PCI board has to contain exactly one setup-block. The setup-block does not have any inputs or ouputs. The dialogue-box allows to define general settings for the CAN-AC2-PCI board. The corresponding code (initializing the board) is executed once during the "initializing blocks"-phase after the xPC Target application has been downloaded.
CAN-AC2-PCI The last 4 dialogue-entries are used to define the Identifiers of all CAN-messages sent or received within the current SIMULINK-model. There is one dialogue-field for send- and receive-identifiers for CAN-port 1 and 2. Each entry can contain a row vector with a maximal number of 200 identifiers. Each identifier can be in the range of -(2^29)..2031). Because CAN-specification 2.
16 Softing Send-block To send CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed send-blocks. The first dialogue-entry specifies via which CAN-port the CAN-message should be sent. The second dialogue-entry specifies the identifiers for CAN-messages to be sent. The identifiers entered here as a row-vector have to be a subset of the send identifiers defined in the setup-block of either CAN-port 1 or 2.
CAN-AC2-PCI Receive-block To receive CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed receive-blocks. The first dialogue-entry specifies from which CAN-port the CAN-message should be received. The second dialogue-entry specifies the identifiers for CAN-messages to be received. The identifiers entered here as a row-vector have to be a subset of the receive identifiers defined in the setup-block of either CAN-port 1 or 2.
16 Softing CAN-AC2 and CANopen devices Introduction xPC Target CAN-AC2 supports CAN specification 2.0a and 2.0b but this does not generally include the CANopen protocol on driver level. Nevertheless it is possible to access CANopen devices by the CAN-AC2 drivers in a general way. CANopen knows two types of messages ie. SDO and PDO. SDO’s are used to setup or initialize a CANopen device for a certain behavior. PDO’s are messages which contain real-time data (ie.
CAN-AC2 and CANopen devices Restriction: CANopen initialization and termination is only supported if the CAN-AC2 board is equipped with the Philips C200 controller for standard identifiers. Example: Accessing the AIC711 CANopen device from Selectron The AIC711 contains four analog input channels with a resolution of 12bits and a minimal update-time (sample time) of 10ms. As explained in earlier chapters the CAN-AC2 drivers use the dynamic object model to reach low latency times.
16 Softing • initialization phase - Enable global interrupts to enable asynchronous mode (object 6423) - Put device from pre-operational mode into operational mode (transmission of PDO’s starts). • simulation phase - CAN-AC2 receive driver block outputs the latest received A/D-values.
CAN-AC2 and CANopen devices // AIC711 SDO object 6423: enable global interupts CANAC2_init[0].port=1; CANAC2_init[0].identifier=AIC711_sdo_base+AIC711_node_1; CANAC2_init[0].data[0]=0x22; CANAC2_init[0].data[1]=0x23; CANAC2_init[0].data[2]=0x64; CANAC2_init[0].data[3]=0x00; CANAC2_init[0].data[4]=0x01; CANAC2_init[0].no_bytes=5; CANAC2_init[0].wait_ms=20; // put AIC711_node_1 from pre-operational into operational state CANAC2_init[1].port=1; CANAC2_init[1].identifier=MAS_boot; CANAC2_init[1].
16 Softing The receive block will read continuously the object to which the AIC711 sends the PDO’s (ie. the converted A/D-values). Because the output of this block contains the 8 bytes of the received CAN-data as a double value a conversion block (AIC711conversion) is necessary to split the 8 bytes (double) into 4 doubles (output signals) which represent the A/ D-value in volts for each of the four analog input channels. The conversion is made according to the data representation of object 6401.
CAN-AC2 and CANopen devices The receive block receives the data (PDO) over CAN-message 640+node-i and has to look therefore as follows: 16-23
16 Softing If more than one CANopen device is connected to the network the dialogue boxes of the setup and receive block and the CANAC2_setup.c file has to be extended accordingly. If you need for-loops in the CANAC2_setup.c use the variable CANAC2_counter. If an analog output device (or digital output device) is connected to the network an additional send block has to be dragged into the model to send the PDO’s to the newly connected CANopen server.
17 Versalogic
17 Versalogic I/O boards supported by xPC Target.
VSBC-6 VSBC-6 The VSBC-6 is a single board computer with 8 signal ended analog input (A/D) channels, 16 digital I/O lines, and a watchdog timer.
17 Versalogic The following table is a list of the ranges for this driver and the corresponding range codes. Input range (V) Range code Input range (V) Range code -10 to +10 -10 0 to +10 10 -5 to +5 -5 0 to +5 5 For example, if the first channel is -10 to + 10 volts and the second and fifth channels are 0 to +5 volts, enter [-10,5,5] Sampletime - Model base sample time or a multiple of the base sample time.
VSBC-6 VSBC-6 Digital Output Scaling Input to Output Hardware Output Block Input Data Type Scaling TTL double < 0.5 = TTL low > 0.5 = TTL high Driver Block Parameters Channel Vector - Enter a numbers between 1 and 16 to select the number of digital output lines used. This driver allows the selection of individual digital output lines in any order.
17 Versalogic 17-30
Index I I/O dirver library 1-2 L library I/O dirver 1-2 I-1