MATLAB XPC TARGET 4 - DEVICE DRIVERS Spécifications

Naviguer en ligne ou télécharger Spécifications pour Processeurs MATLAB XPC TARGET 4 - DEVICE DRIVERS. MATLAB XPC TARGET 4 - DEVICE DRIVERS Specifications Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 653
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
Modeling
Simulation
Implementation
xPC Target
For Use with Real-Time Workshop
®
I/O Reference Guide
Version 1
Vue de la page 0
1 2 3 4 5 6 ... 652 653

Résumé du contenu

Page 1 - I/O Reference Guide

ModelingSimulationImplementationxPC Target For Use with Real-Time Workshop ®I/O Reference GuideVersion 1

Page 2 - How to Contact The MathWorks:

viii Contents9ComputerBoardsCIO-CTR05 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5CIO-CTR05 Counter PWM

Page 3

4 CAN I/O Support4-10For more information about these values see the Softing user manual for this board.CAN 2 - Baud rate — The third control (popup m

Page 4 - CAN I/O Support

CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller4-11Send Driver BlockThe Send driver block is used to transmit data to a

Page 5

4 CAN I/O Support4-12where 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

Page 6

CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller4-13Receive Driver BlockThe Receive driver block is used to retrieve dat

Page 7

4 CAN I/O Support4-14information is of type double and is identical to the return value of function CANPC_read_rcv_data(…) described in the Softing us

Page 8

CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller4-15CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-ControllerThe

Page 9

4 CAN I/O Support4-16Setup driver blockThe Setup block is used to define general settings of the plugged-in CAN board. Because the CAN driver blocks f

Page 10 - ComputerBoards

CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller4-17CAN 2 - Baud rate — The third control (popup menu) lets you define the most

Page 11

4 CAN I/O Support4-18Send driver blockThe Send driver block is used to transmit data to a CAN-network from within a block model. The dialog box of the

Page 12 - Contents

CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller4-19firmware’s dynamic object mode). The number of elements defined here, defin

Page 13

ixCIO-DAS16JR/16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-36CIO-DAS16JR/16 Analog Input (A/D) . . . . . . . . . .

Page 14

4 CAN I/O Support4-20Receive driver blockThe Receive driver block is used to retrieve data from a CAN-network to be used within a block model. The dia

Page 15

CAN driver blocks for the CAN-AC2 (ISA) with Intel 82527 CAN-Controller4-21a model per physical CAN board cannot exceed 200 (restriction of the firmwa

Page 16 - Keithley Metrabyte

4 CAN I/O Support4-22CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-ControllerThe driver blocks described here support the CAN-AC2-PCI

Page 17 - National Instruments

CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller4-23The third block group highlighted above contains the three available CAN

Page 18

4 CAN I/O Support4-24The dialog box of the Setup block lets you define the following settings.Board — The first control (popup menu) lets you define w

Page 19

CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller4-25changed to Lowspeed if no module is present for the corresponding CAN por

Page 20 - Real Time Devices

4 CAN I/O Support4-26(autosearch). This value makes sure that the xPC Target kernel automatically finds the board independently of the PCI slot it is

Page 21 - Versalogic

CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller4-27Send driver blockThe Send driver block is used to transmit data to a CAN-

Page 22

4 CAN I/O Support4-28least two instances of this block have to be used, each defining the corresponding identifier range.Identifiers — The fourth cont

Page 23 - I/O Drivers

CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller4-29Receive driver blockThe Receive driver block is used to retrieve data fro

Page 24 - 1 I/O Drivers

x ContentsCIO-DIO48 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-72CIO-DIO48 Digital Input . . . . . . . .

Page 25

4 CAN I/O Support4-30least two instances of this block have to be used, each defining the corresponding identifier range.Identifiers — The fourth cont

Page 26

CAN driver blocks for the CAN-AC2-104 (PC/104) with Philips SJA1000 CAN-Controller4-31CAN driver blocks for the CAN-AC2-104 (PC/104) with Philips SJA1

Page 27 - Third message

4 CAN I/O Support4-32Setup driver blockThe Setup block is used to define general settings of the stacked CAN board(s). The CAN driver blocks for this

Page 28

CAN driver blocks for the CAN-AC2-104 (PC/104) with Philips SJA1000 CAN-Controller4-33board number depends on the I/O Base Address edit field describe

Page 29 - Updated Driver Information

4 CAN I/O Support4-34Memory base address — The ninth control (edit field) is used to define the memory base address of the board to be accessed by thi

Page 30

CAN driver blocks for the CAN-AC2-104 (PC/104) with Philips SJA1000 CAN-Controller4-35Send driver blockThe Send driver block is used to transmit data

Page 31 - RS232 I/O Support

4 CAN I/O Support4-36least two instances of this block have to be used, each defining the corresponding identifier range.Identifiers — The fourth cont

Page 32 - 2 RS232 I/O Support

CAN driver blocks for the CAN-AC2-104 (PC/104) with Philips SJA1000 CAN-Controller4-37Receive driver blockThe Receive driver block is used to retrieve

Page 33 - RS-232 Device

4 CAN I/O Support4-38least two instances of this block have to be used, each defining the corresponding identifier range.Identifiers — The fourth cont

Page 34

Constructing and Extracting CAN Data Frames4-39Constructing and Extracting CAN Data FramesCAN data frames have a maximum size of 8 bytes (64 bits). Fo

Page 35

xiPC104-DAS16JR/16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-101PC104-DAS16JR/16 Analog Input (A/D) . . . . . . . . .

Page 36

4 CAN I/O Support4-40CAN Bit-Packing BlockThis block is used to construct CAN data frames and it’s output port is normally connected to an input port

Page 37 - RS-232 Synchronous Mode

Constructing and Extracting CAN Data Frames4-41We assume that a node on the CAN network needs to receive a CAN message with identifier 156 having the

Page 38

4 CAN I/O Support4-42Let us analyze the model.The first input is the Function class of type uint8, which has an example value of 112. This value has t

Page 39

Constructing and Extracting CAN Data Frames4-43has to get bit 15, the second bit 14 and so on. It is easiest to define this mapping by the MATLAB colo

Page 40

4 CAN I/O Support4-44The data frame is then propagated to the CAN Send driver block and is sent out as part of a CAN-message having identifier 156. Wh

Page 41

Constructing and Extracting CAN Data Frames4-45The dialog box contains two controls (edit fields). The first lets you define the bit patterns in a fle

Page 42

4 CAN I/O Support4-46definition of the packing and unpacking block are symmetric, the bit pattern definition could look exactly the same. There is one

Page 43 - File menu, point to New

Constructing and Extracting CAN Data Frames4-47This leads to the following Simulink model.In many cases it makes sense to test the proper bit-packing

Page 44

4 CAN I/O Support4-48Detecting Timeouts When Receiving CAN Messages The Receive driver blocks for all CAN boards allow to output the timestamp at whic

Page 45

Detecting Timeouts When Receiving CAN Messages4-49The dialog box of the CAN Timeout Detection block has one edit field and lets you define the timeout

Page 46 - Asynchronous)

xii ContentsPCI-DDA02/12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-137PCI-DDA02/12 Analog Output (D/A) . . .

Page 47

4 CAN I/O Support4-50Model execution driven by CAN-messages (Interrupt capability of CAN Receive blocks)In certain application it is necessary that th

Page 48

Model execution driven by CAN-messages (Interrupt capability of CAN Receive blocks)4-51Generate interrupts check box. Checking this box will declare a

Page 49

4 CAN I/O Support4-52CAN-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 setti

Page 50

Defining Initialization and Termination CAN Messages4-53Defining Initialization and Termination CAN Messages The CAN Setup driver blocks for all suppo

Page 51

4 CAN I/O Support4-54ExampleLet’s consider an A/D converter module with a CANOpen interface. After the node has been powered up, the module is in pre-

Page 52

5CAN I/O Support for FIFOIntroduction . . . . . . . . . . . . . . . . . . . 13-2FIFO Mode drivers for CAN boar

Page 53

5 CAN I/O Support for FIFO5-2IntroductionThis chapter describes the alternative First In First Out (FIFO) CAN drivers provided with xPC Target. The st

Page 54

Introduction5-3Advantages of Dynamic Object Buffer mode - However, even if the CAN I/O latency time in the Dynamic Object Buffer mode is high, the ben

Page 55

5 CAN I/O Support for FIFO5-4total latency may easily exceed the latency encountered when using the Dynamic Object Buffer mode driver scheme for the s

Page 56

Introduction5-5messages to be processed and the number of total messages going over the network is high.Especially for monitor type of applications th

Page 57 - RS-232 Setup Block

xiii10DiamondDiamond-MM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-3Diamond-MM Analog Input (A/D) . . . . .

Page 58

5 CAN I/O Support for FIFO5-6CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-ControllerThe driver blocks described here support th

Page 59 - Synchronous)

CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller5-7FIFO Setup driver blockThe Setup block is used to define general sett

Page 60

5 CAN I/O Support for FIFO5-8Board — Defines which board is being accessed by this driver block instance. The board number (1…3) can be seen as a refe

Page 61 - Parameter Description

CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller5-9Slot edit field described further below. If just one board is present

Page 62

5 CAN I/O Support for FIFO5-10For more information about these values see the Softing user manual for this board.CAN 2 - Acceptance — Defines the acce

Page 63

CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller5-11FIFO Write Driver BlockThe FIFO Write driver block is used to write

Page 64

5 CAN I/O Support for FIFO5-12each row of the matrix signal defines one CAN message and each row combines the 5 elements of information defined above

Page 65

CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller5-13You can use as many instances of the FIFO Write block in the model a

Page 66

5 CAN I/O Support for FIFO5-14Event type — This value defines the type of event read out of the receive FIFO. The following values are defined from th

Page 67

CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller5-15Board — Defines which physically present board is used to send out t

Page 68 - 3 GPIB I/O Support

xiv Contents11GespacGESADA-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3GESADA-1 Analog Input (A/D) .

Page 69 - Introduction to GPIB Drivers

5 CAN I/O Support for FIFO5-16The first element returns the current value of the lost messages counter. The receive FIFO can store up to 255 events. I

Page 70

CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller5-17CAN port — Defines the filter criterion for the CAN port. From the l

Page 71 - Structures” on page 3-11

5 CAN I/O Support for FIFO5-18sum of all specified identifiers. If you select Exclude, the identifier criterion is equal to all identifiers minus the

Page 72 - Using GPIB Drivers

CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller5-19FIFO Reset XMT Driver BlockThe FIFO Reset XMT driver block is used t

Page 73

5 CAN I/O Support for FIFO5-20FIFO Read RCV Level Driver BlockThe FIFO Read RCV level driver block is used to read the current number of CAN messages

Page 74

CAN FIFO driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller5-21FIFO Reset RCV Driver BlockThe FIFO Reset RCV driver block is used t

Page 75

5 CAN I/O Support for FIFO5-22CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-ControllerThe driver blocks described here support t

Page 76

CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller5-23FIFO Setup Driver BlockThe Setup block is used to define general set

Page 77

5 CAN I/O Support for FIFO5-24Board — Define which board is being accessed by this driver block instance. If multiple boards are present in the target

Page 78

CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller5-25edit field described further below. If just one board is present in

Page 79

xvKPCI-1802HC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-13KPCI-1802HC Analog Input (A/D) . . . . . . . . . .

Page 80 - GPIB Simulink Block Reference

5 CAN I/O Support for FIFO5-26information is provided by a row vector with 4 elements, where the first two are used to define the acceptance mask and

Page 81 - GPIB_Initialize

CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller5-27The board allows activating proper termination for each of the two C

Page 82

5 CAN I/O Support for FIFO5-28using the block parameters. In order to be able to transmit more than one CAN message per block instance a matrix signal

Page 83 - Structures

CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller5-29CANPC_send_data(…) described in the Softing user manual. Refer to th

Page 84

5 CAN I/O Support for FIFO5-30Event type — This value defines the type of event read out of the receive FIFO. The following values are defined from th

Page 85

CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller5-31The dialog box of the block lets you define the following settings.B

Page 86

5 CAN I/O Support for FIFO5-32unavoidably lost. The second element returns the current bus state. Possible values are:3 Error active4 Error passive5 B

Page 87

CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller5-33The dialog box of the block lets you define the following settings.C

Page 88

5 CAN I/O Support for FIFO5-34Identifier selection mode — Defines how the identifier criterion entered in the control above is treated. If you select

Page 89

CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller5-35Sample time — Defines the sample time at which the FIFO Read XMT Lev

Page 90

xvi ContentsPCI-6023E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-26PCI-6023E Analog Input (A/D) . . . .

Page 91

5 CAN I/O Support for FIFO5-36condition and take appropriate action, like stopping the execution or resetting the receive FIFO.The block has a single

Page 92

CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller5-37The dialog box of the block lets you define the following settings.B

Page 93

5 CAN I/O Support for FIFO5-38Acceptance FiltersAs mentioned earlier, the CAN controller’s acceptance filters can be used to ensure that certain recei

Page 94

Acceptance Filters5-39using decimal numbers. You can use the MATLAB function ‘hex2dec’ to also define hexadecimal numbers in the dialog box entry. Let

Page 95 - Selecting a CAN Library

5 CAN I/O Support for FIFO5-40ExamplesExample 1Lets start with a simple model using the FIFO Setup block, FIFO Write block, FIFO Read block, and FIFO

Page 96

Examples5-41The model uses several xPC Target scope blocks to display different type of data on the target screen:•Scope 1 (numerical): displays the s

Page 97

5 CAN I/O Support for FIFO5-42Example 2When looking at the time behavior of the model, you can observe that at each millisecond 2 CAN messages are sen

Page 98 - 82C200 CAN-Controller

Examples5-43model. As a positive side effect, the latency time of the FIFO Read block gets smaller and therefore the model’s cycle time as well.Exampl

Page 99 - Setup Driver Block

5 CAN I/O Support for FIFO5-44This implementation behaves exactly like the first implementation, but nicely shows how CAN messages (to be sent out) ca

Page 100 - 4 CAN I/O Support

Examples5-45Example 5Now lets consider a different handling of the receive FIFO overflow: If the receive FIFO level reaches the value of 200, the rece

Page 101 - Send Driver Block

xviiPCI-6508 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-64PCI-DIO-96 . . . . . . . . . . . . . . . .

Page 102

5 CAN I/O Support for FIFO5-46Example 6The next example shows the use of the CAN acceptance filters. First the Read depth parameter of the FIFO Read b

Page 104

5 CAN I/O Support for FIFO5-48

Page 106

6 ADDI-DATA6-2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“APCI-1710” encoder PCI“PA-1700” encoder ISA

Page 107 - 2 (16k): D4000-D7FFF

APCI-17106-3APCI-1710The APCI-1710 is a general purpose counting board with four function modules.xPC Target supports this board with one driver block

Page 108

6 ADDI-DATA6-4to the APCI-1710-manual for information on how to electrically connect the encoders to the board.Driver Block ParametersFunction Module.

Page 109

APCI-17106-5Hystheresis - From the list choose either off or on. The Hystheresis parameter specifies if a counter should skip a tick if the direction

Page 110

6 ADDI-DATA6-6PA-1700The PA1700 is a counter board with three 24-bit counters for connecting three incremental encoders.xPC Target supports this board

Page 111

PA-17006-7Hystheresis - From the list choose either off or on. The Hystheresis parameter specifies if a counter should skip a tick if the direction ch

Page 112 - SJA1000 CAN-Controller

How to Contact The MathWorks:www.mathworks.com Webcomp.soft-sys.matlab [email protected] Technical [email protected] Product e

Page 113 - Setup driver block

xviii Contents15Real Time DevicesDM6420 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-3DM6420 Analog

Page 114

6 ADDI-DATA6-8

Page 115

7Advantech

Page 116

7 Advantech7-2I/O boards supported by xPC Target. (www.advantech.com) Board Name A/DD/ADINDOUTOther Bus type“PCL-1800” xxxx ISA“PCL-726” x x x ISA“PCL

Page 117 - Send driver block

PCL-18007-3PCL-1800The 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 ana

Page 118

7 Advantech7-4Driver Block ParametersChannel Vector - If you choose single ended from the MUX list, then enter numbers between 1 and 16. If you choose

Page 119 - Receive driver block

PCL-18007-5BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For

Page 120

7 Advantech7-6The range settings have to correspond to the DIP-switch settings on the board.Sampletime - Base sample time of a multiple of the base sa

Page 121

PCL-18007-7PCL-1800 Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allow

Page 122

7 Advantech7-8PCL-726The 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

Page 123

PCL-7267-9Driver Block ParameterChannel Vector - Enter numbers between 1 and 6. This driver allows the selection of individual D/A channels in any ord

Page 124

xix16SoftingCAN-AC2-ISA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-3CAN-AC2-ISA with Philips PCA82C200 . .

Page 125

7 Advantech7-10PCL-726 Digital InputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allo

Page 126

PCL-7267-11PCL-726 Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows

Page 127

7 Advantech7-12PCL-727The PCL-727 is an I/O board with, 12 independent analog output D/A channels (12-bit), 16 digital input lines and 16 digital outp

Page 128

PCL-7277-13[1, 2]Number the channels beginning with 1 even if the board manufacture starts numbering the channels with 0.Range Vector - Enter a range

Page 129

7 Advantech7-14PCL-727 Digital InputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allo

Page 130

PCL-7277-15PCL-727 Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows

Page 131

7 Advantech7-16PCL-728The PCL-728 is an I/O board with, 2 independent analog output D/A channels (12-bit).xPC Target supports this board with one driv

Page 132

PCL-7287-17Channel numbers begin with 1 even if the board manufacturer starts numbering channels with 0.Range Vector - Enter a range code for each of

Page 133

7 Advantech7-18PCL-818The 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 a

Page 134

PCL-8187-19enter numbers between 1 and 8. For example, to use the first and second analog output (A/D) channels, enter[1,2]Number the channels beginni

Page 135

xx Contents

Page 136

7 Advantech7-20PCL-818 Analog Output (D/A)Scaling of Input to OutputDriver Block ParameterChannel Vector - Enter numbers between 1 and 2. This driver

Page 137

PCL-8187-21BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For

Page 138

7 Advantech7-22PCL-818 Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver al

Page 139

PCL-818H7-23PCL-818HThe 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 an

Page 140

7 Advantech7-24enter numbers between 1 and 8. For example, to use the first and second analog output (A/D) channels, enter[1,2]Channel numbers begins

Page 141 - CAN-AC2-PCI

PCL-818H7-25PCL-818H Analog Output (D/A)Scaling of Input to OutputDriver Block ParameterRange - From the list, choose either 0-10V or 0-5V. The range

Page 142

7 Advantech7-26Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.Sampletime - Enter a base sample time

Page 143

PCL-818HD7-27PCL-818HDThe 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

Page 144

7 Advantech7-28enter numbers between 1 and 8. For example, to use the first and second analog output (A/D) channels, enter[1,2]Number the channels beg

Page 145 - CAN I/O Support for FIFO

PCL-818HD7-29PCL-818HD Analog Output (D/A)Scaling of Input to OutputDriver Block ParameterRange - From the list, choose either 0-10V or 0-5V. The rang

Page 146 - Introduction

1I/O DriversI/O Driver Block Library . . . . . . . . . . . . . . . . .28Memory-Mapped Devices . . . . .

Page 147

7 Advantech7-30Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.Sampletime - Enter a base sample time

Page 148

PCL-818HG7-31PCL-818HGThe 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

Page 149

7 Advantech7-32Driver Block ParametersChannel Vector - If you choose single ended from the MUX list, then enter numbers between 1 and 16. If you choos

Page 150

PCL-818HG7-33BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. F

Page 151 - FIFO Setup driver block

7 Advantech7-34PCL-818HG Digital InputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver al

Page 152

PCL-818HG7-35PCL-818HG Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver al

Page 153

7 Advantech7-36PCL-818LThe 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 o

Page 154

PCL-818L7-37Driver Block ParametersChannel Vector - If you choose single ended from the MUX list, then enter channels between 1 and 16. If you choose

Page 155 - FIFO Write Driver Block

7 Advantech7-38BaseAddress - Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board.

Page 156

PCL-818L7-39PCL-818L Digital InputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter channels between 1 and 16. This driver allow

Page 157 - FIFO Read Driver Block

1 I/O Drivers1-2xPC Target supports over 40 I/O boards and devices. These devices include communication with CAN, GPIB, and RS232. This chapter includ

Page 158

7 Advantech7-40PCL-818L Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter channels between 1 and 16. This driver

Page 159

8Burr-Brown

Page 160

8 Burr-Brown8-2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“PCI-20003M” x ISA“PCI-20019M” x ISA“PCI-20023M” x ISA“PCI-20

Page 161

PCI-20003M8-3PCI-20003MThe PCI-20003M is an I/O board with 2 analog output (D/A) channels (12-bit).xPC Target supports this board when it is installed

Page 162

8 Burr-Brown8-4The following table is a list of the ranges for this driver and the corresponding range codes.For example, if the first channel is -10

Page 163 - FIFO Reset XMT Driver Block

PCI-20019M8-5PCI-20019MThe PCI-20019M is an I/O board with 8 single analog input (A/D) channels (12-bit). xPC Target supports this board when it is in

Page 164

8 Burr-Brown8-6Input Range - Enter an input range code for all A/D channels. This driver does not allow the selection of a different range for individ

Page 165 - FIFO Reset RCV Driver Block

PCI-20019M8-7W11 in W31 -W12 outJumper NumberJumper Jumper NumberJumper

Page 166

8 Burr-Brown8-8PCI-20023MThe PCI-20023M is an I/O board with 8 single analog input (A/D) channels (12-bit). xPC Target supports this board when it is

Page 167 - FIFO Setup Driver Block

PCI-20023M8-9Input Range - Enter an input range code for all A/D channels. This driver does not allow the selection of a different range for individua

Page 168

1-3Double-clicking one of the manufacturer groups then displays the set of I/O device driver blocks for the specified I/O functionality (for example,

Page 169

8 Burr-Brown8-10W10 out W31 -W11 inJumper NumberJumper Jumper NumberJumper

Page 170

PCI-20041C8-11PCI-20041CThe PCI-20041C is a carrier board with 32 digital I/O-lines grouped into four ports that can be configured as digital input or

Page 171

8 Burr-Brown8-12Port 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

Page 172

PCI-20041C8-13BaseAddress or Carrier Board (ie: 0xd000) - Enter the base address of the board. This entry must correspond to the DIP-switch settings o

Page 173

8 Burr-Brown8-14PCI-20098The PCI-20041C is a carrier board with 8 single or 16 differential analog input (A/D) channels (12-bit), and 16 digital I/O-l

Page 174

PCI-200988-15driver does not allow the selection of individual channels or a different MUX setting for each channel.Range - From the list, choose eith

Page 175

8 Burr-Brown8-16BaseAddress or Carrier Board (ie: 0xd000) - Enter the base address of the board. This entry must corresponds to the DIP-switch setting

Page 176

9ComputerBoards

Page 177

9 ComputerBoards9-2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“CIO-CTR05” counter FMcounter FM&ARMcounter PWMcounte

Page 178

9-3“CIO-DAS1602/16”xxxx ISA“CIO-DDA06 (/12)” xxx ISA“CIO-DDA06/16” x x x ISA“CIO-DIO24” x x signal conditioningISA“CIO-DIO24H” x x ISA“CIO-DIO48” x x

Page 179

1 I/O Drivers1-4Memory-Mapped DevicesSome supported boards in the xPC Target I/O library are memory-mapped devices, for example, Burr-Brown boards. Th

Page 180

9 ComputerBoards9-4“PCI-CTR05” counter FMcounter FM&ARMcounter PWMcounterPWM&ARPWM captureFrequency capturePCI“PCI-DAS1200” xxxx PCI“PCI-DAS12

Page 181

CIO-CTR059-5CIO-CTR05The CIO-CTR05 is an I/O board with 5 counter/timer channels (16-bit). It contains one AM9513A counter/timer chip. For additional

Page 182 - Examples

9 ComputerBoards9-6CIO-CTR05 Counter PWMThe CIOCTR05 has one AM9513A chip with 5 counters.The CIO-CTR05 PWM driver programs the AM9513A for PWM (Pulse

Page 183

CIO-CTR059-7Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration

Page 184

9 ComputerBoards9-8Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the init

Page 185

CIO-CTR059-9Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. XTAL frequency is ass

Page 186

9 ComputerBoards9-10Scaling Input to OutputDriver Block ParametersCounter - From the list, choose 1, 2, 3, 4 or, 5 to select which counter is used wit

Page 187 - Example 3

CIO-CTR059-11BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if t

Page 188

9 ComputerBoards9-12CIO-CTR05 FM CaptureThis block programs the AMD9513A for capturing FM signals.There is one output for relative frequency compared

Page 189 - Example 5

CIO-CTR109-13CIO-CTR10The CIO-CTR10 is an I/O board with 10 counter/timer channels (16-bit). It contains one AM9513A counter/timer chip. For additiona

Page 190

1-5In this example, the third line indicates the location of the ComputerBoards PCI-DIO48 board. This is known since the ComputerBoards Vendor ID is 0

Page 191

9 ComputerBoards9-14CIO-CTR10 Counter PWMThe CIOCTR10 has one AM9513A chip with 10 counters.The CIO-CTR10 PWM driver programs the AM9513A for PWM (Pul

Page 192

CIO-CTR109-15Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registration

Page 193 - ADDI-DATA

9 ComputerBoards9-16Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the ini

Page 194 - 6 ADDI-DATA

CIO-CTR109-17Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. XTAL frequency is as

Page 195 - Board Characteristics

9 ComputerBoards9-18Scaling Input to OutputDriver Block ParametersCounter. From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which coun

Page 196 - Driver Block Parameters

CIO-CTR109-19BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if t

Page 197

9 ComputerBoards9-20CIO-CTR10 FM CaptureThis block programs the AMD9513A for capturing FM signals.There is one output for relative frequency compared

Page 198

CIO-DAC08 (/12)9-21CIO-DAC08 (/12)The CIO-DAC08 (/12) is an I/O board with 8 analog output (D/A) channels (12-bit).xPC Target supports this board with

Page 199

9 ComputerBoards9-22Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Range code

Page 200

CIO-DAC08/169-23CIO-DAC08/16The CIO-DAC08/16 is an I/O board with 8 analog output (D/A) channels (16-bit).xPC Target supports this board with one driv

Page 201 - Advantech

1 I/O Drivers1-6Creating a message structure — You could enter the message structure directly in the edit field of the driver Parameter dialog box. Bu

Page 202 - 7 Advantech

9 ComputerBoards9-24Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Range code

Page 203 - Scaling of Input to Output

CIO-DAC16 (/12)9-25CIO-DAC16 (/12)The CIO-DAC016 is an I/O board with 16 analog output (D/A) channels (12-bit).xPC Target supports this board with one

Page 204

9 ComputerBoards9-26Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Enter a ra

Page 205 - Driver Block Parameter

CIO-DAC16/169-27CIO-DAC16/16The CIO-DAC16/16 is an I/O board with 16 analog output (D/A) channels (16-bit).xPC Target supports this board with one dri

Page 206

9 ComputerBoards9-28Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Enter a ra

Page 207

CIO-DAS16/3009-29CIO-DAS16/300The CIO-DAS16/330 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum s

Page 208

9 ComputerBoards9-30CIO-DAS16/330 Analog Input (A/D)Scaling Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen from

Page 209

CIO-DAS16/JR (/12)9-31CIO-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

Page 210

9 ComputerBoards9-32CIO-DAS16/JR Analog Input (A/D)Scaling Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen from t

Page 211

CIO-DAS16/JR (/12)9-33CIO-DAS16/JR (/12) Analog Input (A/D) with EXP Signal Conditioning BoardScaling Input to OutputThere are signal conditioning boa

Page 212

1-7Updated Driver InformationSince, we are always updating and adding new drivers to xPC Target, not all of the information about these drivers is inc

Page 213

9 ComputerBoards9-34Note 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

Page 214

CIO-DAS16/JR (/12)9-35From 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.Th

Page 215

9 ComputerBoards9-36CIO-DAS16JR/16The CIO-DAS16JR/16 is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maxi

Page 216

CIO-DAS16JR/169-37CIO-DAS16JR/16 Analog Input (A/D)Scaling Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen from t

Page 217

9 ComputerBoards9-38CIO-DAS1601/12The CIO-DAS1601/12 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maxi

Page 218

CIO-DAS1601/129-39CIO-DAS1601/12 Analog Input (A/D)Scaling Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen from t

Page 219

9 ComputerBoards9-40CIO-DAS1601/12 Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2. Th

Page 220

CIO-DAS1601/129-41Sampletime - Base sample time of a multiple of the base sample time.BaseAddress - Enter the base address of the board. It is importa

Page 221

9 ComputerBoards9-42Sampletime - Enter a base sample time or a multiple of the base sample time.BaseAddress - Enter the base address of the board. Thi

Page 222

CIO-DAS1601/129-43Sampletime - Enter a base sample time or a multiple of the base sample time.BaseAddress - Enter the base address of the board. This

Page 223 - PCL-818H

iContents1I/O DriversI/O Driver Block Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2Memory-Mapped Devices . . . . . . . .

Page 224

1 I/O Drivers1-8

Page 225

9 ComputerBoards9-44CIO-DAS1602/12The CIO-DAS1602/12 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maxi

Page 226

CIO-DAS1602/129-45CIO-DAS1602/12 Analog Input (A/D)Scaling Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen from t

Page 227 - PCL-818HD

9 ComputerBoards9-46CIO-DAS1602/12 Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2. Th

Page 228

CIO-DAS1602/129-47Sampletime - Base sample time or a multiple of the base sample time.BaseAddress - Enter the base address of the board. It is importa

Page 229

9 ComputerBoards9-48Sampletime - Enter a base sample time or a multiple of the base sample time.BaseAddress - Enter the base address of the board. Thi

Page 230

CIO-DAS1602/129-49Sampletime - Enter a base sample time or a multiple of the base sample time.BaseAddress - Enter the base address of the board. This

Page 231 - PCL-818HG

9 ComputerBoards9-50CIO-DAS1602/16The CIO-DAS1602/16 is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maxi

Page 232

CIO-DAS1602/169-51CIO-DAS1602/16 Analog Input (A/D)Scaling Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen from t

Page 233

9 ComputerBoards9-52CIO-DAS1602/16 Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2. Th

Page 234

CIO-DAS1602/169-53Sampletime - Base sample time of a multiple of the base sample time.BaseAddress - Enter the base address of the board. It is importa

Page 235

2RS232 I/O SupportIntroduction to RS-232 Drivers . . . . . . . . . . . . 3Hardware Connections for RS-232 . . . . .

Page 236 - PCL-818L

9 ComputerBoards9-54as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port. Sampletime - Ente

Page 237

CIO-DAS1602/169-55driver block. Each port has a maximum or 8 digital lines that can be configured as inputs or outputs depending on which driver block

Page 238

9 ComputerBoards9-56CIO-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.xPC Targ

Page 239

CIO-DDA06 (/12)9-57CIO-DDA06 (/12) Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 6. Th

Page 240

9 ComputerBoards9-58[-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

Page 241 - Burr-Brown

CIO-DDA06 (/12)9-59Port - 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

Page 242 - 8 Burr-Brown

9 ComputerBoards9-60Port - 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

Page 243 - Scaling Input to Output

CIO-DDA06/169-61CIO-DDA06/16The CIO-DDA06/16) is an I/O board with 6 analog output (D/A) channels (12-bit), and 24 digital I/O lines.xPC Target suppor

Page 244

9 ComputerBoards9-62CIO-DDA06/16 Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 6. This

Page 245 - PCI-20019M

CIO-DDA06/169-63[-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 boa

Page 246

2 RS232 I/O Support2-2xPC Target interfaces the target PC to an RS-232 device using either the COM1 or COM2 port.This chapter includes the following s

Page 247 - W11 in W31

9 ComputerBoards9-64Port - 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

Page 248 - PCI-20023M

CIO-DDA06/169-65Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0.Port - From the list choose either

Page 249

9 ComputerBoards9-66CIO-DIO24The CIO-DIO24 is an I/O board with 24 digital I/O lines.xPC Target supports this board with three driver blocks: •“CIO-DI

Page 250

CIO-DIO249-67Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver

Page 251 - PCI-20041C

9 ComputerBoards9-68Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This

Page 252

CIO-DIO24H9-69CIO-DIO24HThe CIO-DIO24H is an I/O board with 24 digital I/O lines.xPC Target supports this board with two driver blocks: •“CIO-DIO24H D

Page 253

9 ComputerBoards9-70Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This

Page 254 - PCI-20098

CIO-DIO24H9-71Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This drive

Page 255

9 ComputerBoards9-72CIO-DIO48The CIO-DIO48 is an I/O board with 48 digital I/O lines.xPC Target supports this board with two driver blocks: •“CIO-DIO4

Page 256

CIO-DIO489-73Channel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver allows the selection of

Page 257

Introduction to RS-232 Drivers2-3Introduction to RS-232 DriversxPC Target uses a model for supporting RS-232 I/O that includes both Simulink blocks fo

Page 258 - 9 ComputerBoards

9 ComputerBoards9-74Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines us

Page 259

CIO-DIO48H9-75CIO-DIO48HThe CIO-DIO48H is an I/O board with 48 digital I/O lines.xPC Target supports this board with two driver blocks: •“CIO-DIO48H D

Page 260

9 ComputerBoards9-76Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This

Page 261 - CIO-CTR05

CIO-DIO48H9-77CIO-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 digit

Page 262

9 ComputerBoards9-78CIO-DIO96The CIO-DIO96 is an I/O board with 96 digital I/O lines.xPC Target supports this board with two driver blocks: •“CIO-DIO9

Page 263

CIO-DIO969-79Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver

Page 264

9 ComputerBoards9-80Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines us

Page 265

CIO-DIO1929-81CIO-DIO192The CIO- - DIO192 is an I/O board with 192 digital I/O lines.xPC Target supports this board with two driver blocks: •“CIO-DIO1

Page 266

9 ComputerBoards9-82Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This

Page 267

CIO-DIO1929-83Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used wit

Page 268

2 RS232 I/O Support2-4Simulink Blocks for RS-232To support the use of RS-232, the xPC Target I/O library includes a set of RS-232 driver blocks. These

Page 269 - CIO-CTR10

9 ComputerBoards9-84CIO-DO24DDThe CIO-DO24DD is an I/O board with 24 open-collector digital output lines.xPC Target supports this board with one drive

Page 270

CIO-DO24DD9-85output lines in any order. The number of elements defines the number of digital lines used.For example, to use all of the digital output

Page 271

9 ComputerBoards9-86CIO-PDISO16The CIO-PCISO16 is an I/O board with 16 isolated digital input lines and 16 relay driven digital output lines.xPC Targe

Page 272

CIO-PDISO169-87Scaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 8 to select the number of digital input

Page 273

9 ComputerBoards9-88CIO-PDISO16 Digital OutputThe CIO-PDISO16 has two independent connectors. Each connector has 8 relay driven digital input lines.Us

Page 274

CIO-QUAD029-89CIO-QUAD02The CIO-QUAD02 is a 24-bit counting board with 2 channels. This board typically connects to incremental encoders. Incremental

Page 275

9 ComputerBoards9-90The velocity is given by:velocity = (distance(ts) - distance(ts-1)) / tsThe direction is given by:direction = distance(ts) - dista

Page 276

CIO-QUAD029-91Resolution - The Resolution field specifies the divisions of the connected incremental encoder for one revolution.

Page 277 - CIO-DAC08 (/12)

9 ComputerBoards9-92CIO-QUAD04The CIO-QUAD04 is a 24-bit counting board with 4 channels. This board typically connects to incremental encoders. Increm

Page 278

CIO-QUAD049-93The velocity is given by:velocity = (distance(ts) - distance(ts-1)) / tsThe direction is given by:direction = distance(ts) - distance(ts

Page 279 - CIO-DAC08/16

Introduction to RS-232 Drivers2-5For more information on this example, see “Creating RS-232 Message Structures (Asynchronous)” on page 2-22.Host and T

Page 280

9 ComputerBoards9-94Resolution - The Resolution field specifies the divisions of the connected incremental encoder for one revolution.

Page 281 - CIO-DAC16 (/12)

PC104-DAC06 (/12)9-95PC104-DAC06 (/12)The PC104-DAC06 (12) is an I/O board with 6 analog output (D/A) channels (12-bit).xPC Target supports this board

Page 282

9 ComputerBoards9-96Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Range code

Page 283 - CIO-DAC16/16

PC104-DAS16JR/129-97PC104-DAS16JR/12The PC104-DAS16JR/12 is an I/O board with 16 single or 8 differential analog input channels (12-bit) with a maximu

Page 284

9 ComputerBoards9-98to select the number of A/D channels used. This driver does not allow the selection of individual channels or to mix single-ended

Page 285 - CIO-DAS16/300

PC104-DAS16JR/129-99PC104-DAS16JR/12 Digital Input Scaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 4 t

Page 286

9 ComputerBoards9-100PC104-DAS16JR/12 Digital OutputScaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 4

Page 287 - CIO-DAS16/JR (/12)

PC104-DAS16JR/169-101PC104-DAS16JR/16The PC104-DAS16JR/16 is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a

Page 288

9 ComputerBoards9-102differential is chosen from the MUX list, then enter a number between 1 and 8 to select the number of A/D channels used. This dri

Page 289

PC104-DAS16JR/169-103PC104-DAS16JR/16 Digital Input Scaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 4

Page 290

2 RS232 I/O Support2-6Note COM1 and COM3 share interrupt line 4. Similarly, COM2 and COM4 share interrupt line 3. To provide maximum performance, the

Page 291

9 ComputerBoards9-104PC104-DAS16JR/16 Digital OutputScaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 4

Page 292 - CIO-DAS16JR/16

PC104-DIO489-105PC104-DIO48The PC104-DIO48 is an I/O board with 48 digital I/O lines.xPC Target supports this board with two driver blocks: •“PC104-DI

Page 293

9 ComputerBoards9-106PC104-DIO48 Digital InputThe CIO-DIO48 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8

Page 294 - CIO-DAS1601/12

PC104-DIO489-107PC104-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 d

Page 295

9 ComputerBoards9-108PCI-CTR05The CIO-CTR05 is an I/O board with 5 counter/timer channels (16-bit). It contains one AM9513A counter/timer chip. For ad

Page 296

PCI-CTR059-109PCI-CTR05 Counter PWMThe PCI-CTR05 PWM driver programs the AM9513A for PWM (Pulse Width Modulation) signal generation (a square wave wit

Page 297

9 ComputerBoards9-110PCI Slot (-1:autosearch) - Enter a number between -1 and n.If only one board of this type is physically present in the target PC,

Page 298

PCI-CTR059-111Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initializ

Page 299

9 ComputerBoards9-112Counter - 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

Page 300 - CIO-DAS1602/12

PCI-CTR059-113Scaling Input to OutputDriver Block ParametersCounter. From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which counter is

Page 301

RS-232 Synchronous Mode2-7RS-232 Synchronous ModeUse synchronous mode when you need to receive a response before continuing with other computations. I

Page 302

9 ComputerBoards9-114PCI Slot (-1:autosearch) - Enter a number between -1 and n.If only one board of this type is physically present in the target PC,

Page 303

PCI-CTR059-115-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 th

Page 304

9 ComputerBoards9-116PCI-DAS1200The PCI-DAS1200 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximum s

Page 305

PCI-DAS12009-117differential 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 d

Page 306 - CIO-DAS1602/16

9 ComputerBoards9-118Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Enter a r

Page 307

PCI-DAS12009-119Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used wi

Page 308

9 ComputerBoards9-120Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.Scaling

Page 309

PCI-DAS1200/JR9-121PCI-DAS1200/JRThe PCI-DAS1200/JR is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maxim

Page 310

9 ComputerBoards9-122to select the number of A/D channels used. This driver does not allow the selection of individual channels or to mix single-ended

Page 311

PCI-DAS1200/JR9-123Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used

Page 312 - CIO-DDA06 (/12)

2 RS232 I/O Support2-8Adding RS-232 Driver Blocks (Synchronous)You add RS-232 driver blocks to your Simulink model when you want to use the serial por

Page 313

9 ComputerBoards9-124Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.Scaling

Page 314

PCI-DAS1602/129-125PCI-DAS1602/12The PCI-DAS1602/12 is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maxim

Page 315

9 ComputerBoards9-126PCI-DAS1602/12 Analog Input (A/D)Scaling of Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen

Page 316

PCI-DAS1602/129-127PCI-DAS1602/12 Analog Output (D/A)Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2.

Page 317 - CIO-DDA06/16

9 ComputerBoards9-128Sampletime - Base sample time of a multiple of the base sample time.PCI Slot (-1:autosearch) - Enter a number between -1 and n.If

Page 318

PCI-DAS1602/129-129as inputs or outputs depending on which driver block is chosen. In each case, one block is needed for each port. Sampletime - Enter

Page 319

9 ComputerBoards9-130Port - 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 th

Page 320

PCI-DAS1602/169-131PCI-DAS1602/16The PCI-DAS1602/16 is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maxim

Page 321

9 ComputerBoards9-132PCI-DAS1602/16 Analog Input (A/D)Scaling of Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen

Page 322 - CIO-DIO24

PCI-DAS1602/169-133PCI-DAS1602/16 Analog Output (D/A)Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2.

Page 323

RS-232 Synchronous Mode2-94 In the Library window, double-click the RS-232 Synchronous mode group block. The library window with blocks for RS-232 syn

Page 324

9 ComputerBoards9-134Sampletime - Base sample time of a multiple of the base sample time.PCI Slot (-1:autosearch) - Enter a number between -1 and n.If

Page 325 - CIO-DIO24H

PCI-DAS1602/169-135driver block. Each port has a maximum or 8 digital lines that can be configured as inputs or outputs depending on which driver bloc

Page 326

9 ComputerBoards9-136Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.Port - From the list choose eit

Page 327

PCI-DDA02/129-137PCI-DDA02/12The PCI-DDA02/12) is an I/O board with 2 analog output (D/A) channels (12-bit), and 48 digital I/O lines.xPC Target suppo

Page 328 - CIO-DIO48

9 ComputerBoards9-138[1,2]Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Ente

Page 329 - CIO-DIO48 Digital Output

PCI-DDA02/129-139PCI-DDA02/12 Digital InputThe PCI-DDA02/12 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8

Page 330

9 ComputerBoards9-140-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

Page 331 - CIO-DIO48H

PCI-DDA02/129-141Sampletime - Enter a base sample time or a multiple of the base sample time.PCI Slot (-1:autosearch) - Enter a number between -1 and

Page 332

9 ComputerBoards9-142PCI-DDA04/12The PCI-DDA04/12) is an I/O board with 4 analog output (D/A) channels (12-bit), and 48 digital I/O lines.xPC Target s

Page 333

PCI-DDA04/129-143[1,2]Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Enter a

Page 334 - CIO-DIO96

ii ContentsRS-232 Receive Message Structure (Asynchronous) . . . . . . . . 2-34Supported Data Types for Message Fields . . . . . . . . . . . . . .

Page 335

2 RS232 I/O Support2-107 Double-click the RS-232 Setup block. Enter values to configure the COM1 port on the target PC. For example, if the target PC

Page 336

9 ComputerBoards9-144PCI-DDA04/12 Digital InputThe PCI-DDA04/12 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum o

Page 337 - CIO-DIO192

PCI-DDA04/129-145-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

Page 338

9 ComputerBoards9-146Sampletime - Enter a base sample time or a multiple of the base sample time.PCI Slot (-1:autosearch) - Enter a number between -1

Page 339

PCI-DDA08/129-147PCI-DDA08/12The PCI-DDA08/12) is an I/O board with 8 analog output (A/D) channels (12-bit), and 48 digital I/O lines.xPC Target suppo

Page 340 - CIO-DO24DD

9 ComputerBoards9-148[1,2]Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Ente

Page 341

PCI-DDA08/129-149PCI-DDA08/12 Digital InputThe PCI-DDA08/12 has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8

Page 342 - CIO-PDISO16

9 ComputerBoards9-150-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

Page 343

PCI-DDA08/129-151Sampletime - Enter a base sample time or a multiple of the base sample time.PCI Slot (-1:autosearch) - Enter a number between -1 and

Page 344

9 ComputerBoards9-152PCI-DIO24The PCI-DIO24 is an I/O board with 24 digital I/O lines.xPC Target supports this board with three driver blocks: •“PCI-D

Page 345 - CIO-QUAD02

PCI-DIO249-153Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with

Page 346

RS-232 Synchronous Mode2-11For more information on entering the block parameters, see “RS-232 Setup Block” on page 2-27. For the procedure to create t

Page 347

9 ComputerBoards9-154Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.Scaling

Page 349

9 ComputerBoards9-156PCI-DIO24HThe PCI-DIO24H is an I/O board with 24 digital I/O lines.xPC Target supports this board with two driver blocks: •“PCI-D

Page 350

PCI-DIO24H9-157Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used wit

Page 351 - PC104-DAC06 (/12)

9 ComputerBoards9-158Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.Scaling

Page 352

PCI-DIO489-159PCI-DIO48The PCI-DIO48 is an I/O board with 48 digital I/O lines.xPC Target supports this board with two driver blocks: •“PCI-DIO48 Digi

Page 353 - PC104-DAS16JR/12

9 ComputerBoards9-160Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines us

Page 354

PCI-DIO489-161PCI-DIO48 Digital OutputThe PCI-DIO48H has two 8255 chips (1,2). Each chip has three ports (A,B,C). Each port has a maximum of 8 digital

Page 355

9 ComputerBoards9-162-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

Page 356

PCI-DIO96H9-163PCI-DIO96HThe PCI-DIO96 is an I/O board with 96 digital I/O lines.xPC Target supports this board with two driver blocks: •“PCI-DIO96H D

Page 357 - PC104-DAS16JR/16

2 RS232 I/O Support2-128 Click OK. The Block Parameters dialog box closes.9 Double-click the RS-232 Send/Receive block. The Block Parameters dialog bo

Page 358

9 ComputerBoards9-164Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines us

Page 359

PCI-DIO96H9-165PCI-DIO96H Digital OutputThe 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

Page 360

9 ComputerBoards9-166-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

Page 361 - PC104-DIO48

PCI-QUAD049-167PCI-QUAD04The PCI-QUAD04 is a 24-bit counting board with 4 channels. This board typically connects to incremental encoders. Incremental

Page 362

9 ComputerBoards9-168The velocity is given by:velocity = (distance(ts) - distance(ts-1)) / tsThe direction is given by:direction = distance(ts) - dist

Page 363

PCI-QUAD049-169Resolution - The Resolution field specifies the divisions of the connected incremental encoder for one revolution.

Page 364 - PCI-CTR05

9 ComputerBoards9-170

Page 365

10Diamond

Page 366

10 Diamond10-2I/O boards supported by xPC Target. “Diamond-MM” xxxx ISA PC104“Diamond-MM-32”xxxx PC104“Quartz-MM 5” x xcounter FMcounter FM&ARMcou

Page 367

Diamond-MM10-3Diamond-MMThe Diamond-MM is a DAS16 compatible I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a ma

Page 368

RS-232 Synchronous Mode2-13Your next task is to create the MATLAB message structures that the RS-232 driver blocks use to sequence commands to the RS-

Page 369

10 Diamond10-4Diamond-MM Analog Input (A/D)Scaling Input to OutputDriver Block ParametersNumber of Channels - If you entered 16 in the MUX box, then e

Page 370

Diamond-MM10-5Sample Time - Enter the base sample time or a multiple of the base sample time.BaseAddress - Enter the base address of the board. This e

Page 371

10 Diamond10-6Sample Time - Enter the base sample time or a multiple of the base sample time.BaseAddress - Enter the base address of the board. This e

Page 372 - PCI-DAS1200

Diamond-MM10-7Diamond-MM Digital OutputScaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 8 to select the

Page 373

10 Diamond10-8Diamond-MM-32The Diamond MM-32 is a PC104 I/O board with 32 single or 16 differential analog input (A/D) channels (16-bit) with a maximu

Page 374

Diamond-MM-3210-9Diamond-MM-32 Analog Input (A/D)Scaling Input to OutputDriver Block ParametersFirst channel (1..n) — If you select single-ended from

Page 375

10 Diamond10-10MUX — From the list choose single-ended (32 channels) or differential (16channels). This entry must correspond to the MUX jumpers set o

Page 376

Diamond-MM-3210-11The following table is a list of the ranges for this driver and the corresponding range codes. The D/A specific jumpers on the board

Page 377 - PCI-DAS1200/JR

10 Diamond10-12Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This drive

Page 378

Diamond-MM-3210-13Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This d

Page 379

2 RS232 I/O Support2-14Note Field names in the structures are case sensitive.RS232_Send_Receive(1).SendData = ’da_1234,%d,%f,;\n’;RS232_Send_Receive(1

Page 380

10 Diamond10-14Quartz-MM 5The Quartz-MM 10 has 8 digital input lines, 8 digital output lines, and 10 counter/timers.xPC Target supports this board wit

Page 381 - PCI-DAS1602/12

Quartz-MM 510-15Scaling Input to OutputDriver Block ParametersChannel Vector- Enter a number between 1 and 8 to select the number of digital input lin

Page 382

10 Diamond10-160x300

Page 383

Quartz-MM 510-17Quartz-MM5 Counter PWMThe Quartz-MM5 has one AM9513A chip with 5 counters.The Quartz-MM5 PWM driver programs the AM9513A for PWM (Puls

Page 384

10 Diamond10-18Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registrati

Page 385

Quartz-MM 510-19Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initial

Page 386

10 Diamond10-20Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. XTAL frequency is

Page 387 - PCI-DAS1602/16

Quartz-MM 510-21Scaling Input to OutputDriver Block ParametersCounter. From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which counter

Page 388

10 Diamond10-22BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if

Page 389

Quartz-MM 510-23Quartz-MM5 FM CaptureThis block programs the AMD9513A for capturing FM signals.There is one output for relative frequency compared to

Page 390

RS-232 Synchronous Mode2-158 Set the pre-load function for your Simulink model to load the message structures when you open your model. For example, i

Page 391

10 Diamond10-24Quartz-MM 10The Quartz-MM 10 has 8 digital input line, 8 digital output lines, and 10 counter/timers.xPC Target supports this board wit

Page 392

Quartz-MM 1010-25Scaling Input to OutputDriver Block ParametersChannel Vector- Enter a number between 1 and 8 to select the number of digital input li

Page 393 - PCI-DDA02/12

10 Diamond10-260x300

Page 394

Quartz-MM 1010-27Quartz-MM 10 Counter PWMThe Quartz-MM10 has two AM9513A chips with 5 counters each.The Quartz-MM10 PWM driver programs the AM9513A fo

Page 395

10 Diamond10-28Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registrati

Page 396

Quartz-MM 1010-29Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at the initia

Page 397

10 Diamond10-30Frequency Base - From the list, choose F1=1MHz, F2=100kHz, F3=10kHz, F4=1kHz, or F5=100Hz to set the base frequency. XTAL frequency is

Page 398 - PCI-DDA04/12

Quartz-MM 1010-31Scaling Input to OutputDriver Block ParametersCounter. From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which counter

Page 399

10 Diamond10-32BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For example, if

Page 400

Quartz-MM 1010-33Quartz-MM 10 FM CaptureThis block programs the AMD9513A for capturing FM signals.There is one output for relative frequency compared

Page 401

2 RS232 I/O Support2-16RS-232 Asynchronous ModeUse asynchronous mode when you do not need a response before continuing with other computations. You ca

Page 402

10 Diamond10-34

Page 404

11 Gespac11-2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“GESADA-1” x x ISA Industry“GESPIA-2A” x x ISA Industry

Page 405

GESADA-111-3GESADA-1The 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) cha

Page 406

11 Gespac11-4Driver Block ParametersNumber of Channels - If you choose 16 single-ended from the MUX list, then enter a number between 1 and 16. If you

Page 407

GESADA-111-5Enter 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.T

Page 408 - PCI-DIO24

11 Gespac11-6GESPIA-2AThe 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. Eac

Page 409

GESPIA-2A11-7GESPIA-2A Digital InputUse a separate diver block for each port. By selecting the digital input driver block, the port is configured as i

Page 410

11 Gespac11-8GESPIA-2A Digital OutputUse a separate diver block for each port. By selecting the digital output driver block, the port is configured as

Page 411

12Humusoft

Page 412 - PCI-DIO24H

RS-232 Asynchronous Mode2-171 In the MATLAB command window, typexpclibThe xPC Target driver block library opens.2 Double-click the RS-232 group block.

Page 413

12 Humusoft12-2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“AD 512” xxxx ISA

Page 414

AD 51212-3AD 512The 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 (

Page 415 - PCI-DIO48

12 Humusoft12-4AD 512 Analog Input (A/D)Scaling Input to OutputDriver block ParameterChannel Vector - Enter numbers between 1 and 8. This driver allow

Page 416

AD 51212-5BaseAddress - Enter the base address of the board. This entry must correspond to the jumper settings on the board. For example, if the base

Page 417

12 Humusoft12-6BaseAddress - Enter the base address of the board. This entry must correspond to the DIP-switch settings on the board. For example, if

Page 418

AD 51212-7AD 512 Digital OutputScaling Input to OutputChannel Vector - Enter a numbers between 1 and 8. This driver allows the selection of individual

Page 419 - PCI-DIO96H

12 Humusoft12-8

Page 420

13Keithley Metrabyte

Page 421

13 Keithley Metrabyte13-2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“DAS-1800HR” x x x ISA“KCPI-1801HC”“KPCI-1802HC”

Page 422

DAS-1800HR13-3DAS-1800HRThe DAS-1800HR is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a maximum sample rat

Page 423 - PCI-QUAD04

2 RS232 I/O Support2-18Alternatively, you could access the xPC Target block library from the Simulink Library Browser. In the Simulink window, and fro

Page 424

13 Keithley Metrabyte13-4DAS-1800HR Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - If 16 single-ended or 16 single-e

Page 425

DAS-1800HR13-5The following table is a list of the ranges for this driver given the gain entered and the range chosen.MUX - From the list, choose eith

Page 426

13 Keithley Metrabyte13-6Sample Time - Enter a base sample time or a multiple of the base sample time.BaseAddress - Enter the base address of the boar

Page 427

KCPI-1801HC13-7KCPI-1801HCThe KCPI-1801 is an I/O board with 64 single or 32 differential analog input (A/D) channels (12-bit) with a maximum sample r

Page 428 - 10 Diamond

13 Keithley Metrabyte13-8KPCI-1801HC Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 64.

Page 429 - Diamond-MM

KCPI-1801HC13-9Coupling Vector - Enter a coupling code for each of the channels in the channel vector. The coupling vector must be the same length as

Page 430

13 Keithley Metrabyte13-10KPCI-1801HC Analog Output (D/A)The analog output range of this board is set -10 to +10 volts.Scaling Input to OutputDriver B

Page 431

KCPI-1801HC13-11KPCI-1801HC Digital InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 4 to select the di

Page 432

13 Keithley Metrabyte13-12KPCI-1801HC Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 4 to se

Page 433

KPCI-1802HC13-13KPCI-1802HCThe KCPI-1801 is an I/O board with 64 single or 32 differential analog input (A/D) channels (12-bit) with a maximum sample

Page 434 - Diamond-MM-32

RS-232 Asynchronous Mode2-19For more information on entering the block parameters, see “RS-232 Setup Block” on page 2-27. For the procedure to create

Page 435

13 Keithley Metrabyte13-14KPCI-1802HC Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 64.

Page 436

KPCI-1802HC13-15Coupling Vector - Enter a coupling code for each of the channels in the channel vector. The coupling vector must be the same length as

Page 437

13 Keithley Metrabyte13-16KPCI-1802HC Analog Output (D/A)The analog output range of this board is set -10 to +10 volts.Scaling Input to OutputDriver B

Page 438

KPCI-1802HC13-17KPCI-1802HC Digital InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 4 to select the di

Page 439

13 Keithley Metrabyte13-18KPCI-1802HC Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 4 to se

Page 440 - Quartz-MM 5

14National Instruments

Page 441

14 National Instruments14-2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“AT-AO-6” x“AT-AO-10” x“GPIB-232CT-A”GPIB setupGB

Page 442

14-3“PXI-6040E” xxxx compact PCI“PXI-6070E” xxxx compact PCI“PXI-6508” x x compact PCIBoard Name A/DD/ADINDOUTOther Bus type

Page 443

14 National Instruments14-4AT-AO-6The AT-AO-6 is an I/O board with 6 analog output (D/A) channels (12-bit), and 16 digital I/O lines.xPC Target suppor

Page 444

AT-AO-614-5[1,2]Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Enter a range

Page 445

iiiCAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller . . . . . . . . . . . . . . . 4-8Setup Driver Block . . . . . . .

Page 446

2 RS232 I/O Support2-208 Click OK. The Block Parameters dialog box closes.9 Repeat the previous setup for the second RS-232 Setup block and the COM2 p

Page 447

14 National Instruments14-6AT-AO-6 Digital InputThe AT-AO-6 has 8 digital input lines.Scaling Input to OutputDriver Block ParametersChannel Vector - E

Page 448

AT-AO-614-7AT-AO-6 Digital Output The AT-AO-6 has 8 digital output lines.Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers

Page 449

14 National Instruments14-8AT-AO-10The AT-AO-10 is an I/O board with 10 analog output (D/A) channels (12-bit), and 16 digital I/O lines.xPC Target sup

Page 450 - Quartz-MM 10

AT-AO-1014-9[1,2]Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Enter a range

Page 451

14 National Instruments14-10AT-AO-10 Digital InputThe AT-AO-10 has 8 digital input lines.Scaling Input to OutputDriver Block ParametersChannel Vector

Page 452

AT-AO-1014-11AT-AO-10 Digital Output The AT-AO-10 has 8 digital output lines.Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numb

Page 453

14 National Instruments14-12GPIB-232CT-AThe GPIB-232CT-A is GPIB controller external to the target PC. It is connected to the target PC with an RS232

Page 454

GPIB-232CT-A14-13Number of Stopbits - From the list, choose 1 or 2.Parity - From the list, choose None, Odd, or Even.Protocol - From the list, choose

Page 455

14 National Instruments14-14PC-DIO-24The PC-DIO-24 is an I/O board with 24 digital input and output lines.xPC Target supports this board with two driv

Page 456

PC-DIO-2414-15PC-DIO24 Digital InputThe 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 co

Page 457

RS-232 Asynchronous Mode2-2112 Click OK. The Block Parameters dialog box closes.13 Double-click the RS-232 Send block. The Block Parameters dialog box

Page 458

14 National Instruments14-16PC-DIO24 Digital OutputThe PC-DIO24 has one 8255 chip with 3 ports (A,B,C). Each port has a maximum of 8 digital I/O lines

Page 459

PC-TIO-1014-17PC-TIO-10The PC-TIO-10 is an I/O board with 16 digital input and output lines, and 10 counter/timer channels (16-bit).xPC Target support

Page 460

14 National Instruments14-18Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input l

Page 461

PC-TIO-1014-19Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used wit

Page 462 - 11 Gespac

14 National Instruments14-20PC-TIO-10 Counter PWMThe PC-TIO-10 has two AM9513A chips each with 5 counters for a total of 10 counters on the board.The

Page 463 - GESADA-1

PC-TIO-1014-21Sample Time - Enter the base sample time or a multiple of the base sample time. The sample time indicates the update rate of registratio

Page 464

14 National Instruments14-22Initial Duty Cycle - Enter a value between 0 and 1 to set the initial duty cycle. The Duty Cycle defines the duty cycle at

Page 465

PC-TIO-1014-23Scaling Input to OutputDriver Block ParametersCounter - From the list, choose 1, 2, 3, 4, 5, 6, 7, 8, 9, or 10 to select which counter i

Page 466 - GESPIA-2A

14 National Instruments14-24PC-TIO10 Counter FM & ARMThe PC-TIO-10 has two AM9513A chips each with 5 counters for a total of 10 counters on the bo

Page 467

PC-TIO-1014-25Initial ARM State - From the list, choose Disarmed or Armed. The Initial ARM State defines if the counter should be armed or disarmed af

Page 468

2 RS232 I/O Support2-2216 Double-click the Signal Generator block, and enter parameters. For example, from the Wave Form list, choose, sine. In the Am

Page 469

14 National Instruments14-26PCI-6023EThe PCI-6023E is an I/O board with 16 single or 8 differential analog input (A/D) channels (12-bit) with a maximu

Page 470 - 12 Humusoft

PCI-6023E14-27PCI-6023E Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver a

Page 471

14 National Instruments14-28The following table is a list of the couplings for this driver and the corresponding coupling codes.For example, if the fi

Page 472 - Driver block Parameter

PCI-6023E14-29PCI-6023E Digital InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digita

Page 473

14 National Instruments14-30PCI-6023E Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to se

Page 474

PCI-6024E14-31PCI-6024EThe 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

Page 475

14 National Instruments14-32PCI-6024E Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16.

Page 476

PCI-6024E14-33The following table is a list of the couplings for this driver and the corresponding coupling codes.For example, if the first and second

Page 477

14 National Instruments14-34PCI-6024E Analog Output (D/A)The analog output range of this board is set -10 to +10 volts.Scaling Input to OutputDriver B

Page 478 - 13 Keithley Metrabyte

PCI-6024E14-35PCI-6024E Digital InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digita

Page 479 - DAS-1800HR

RS-232 Asynchronous Mode2-23Note Field names in the structures are case sensitive.RS232_Send(1).SendData = ’start,%f,%f,stop;\r’;RS232_Send(1).InputPo

Page 480

14 National Instruments14-36PCI-6024E Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to se

Page 481

PCI-6025E14-37PCI-6025EThe 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

Page 482

14 National Instruments14-38PCI-6025E Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16.

Page 483 - KCPI-1801HC

PCI-6025E14-39The following table is a list of the couplings for this driver and the corresponding coupling codes.For example, if the first and second

Page 484

14 National Instruments14-40PCI-6025E Analog Output (D/A)The analog output range of this board is set -10 to +10 volts.Scaling Input to OutputDriver B

Page 485

PCI-6025E14-41PCI-6025E Digital InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digita

Page 486

14 National Instruments14-42PCI-6025E Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to se

Page 487

PCI-6031E14-43PCI-6031EThe 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

Page 488

14 National Instruments14-44Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 64. This driver allows you t

Page 489

PCI-6031E14-45[-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 le

Page 490

2 RS232 I/O Support2-247 Connect the input and output ports on the RS-232 driver blocks to other blocks in your Simulink model.Your model should look

Page 491 - KPCI-1802HC

14 National Instruments14-46If two or more boards of this type are physically present in your target PC, enter the PCI slot number of the board associ

Page 492

PCI-6031E14-47PCI 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-

Page 493

14 National Instruments14-48PCI-6031E Digital OutputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to

Page 494

PCI-6052E14-49PCI-6052EThe 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

Page 495

14 National Instruments14-50Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows you t

Page 496 - 14 National Instruments

PCI-6052E14-51For 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 Vect

Page 497

14 National Instruments14-52If only one board of this type is physically present in your target PC, enter-1 If two or more boards of this type are phy

Page 498

PCI-6052E14-53Sampletime - Base sample time of a multiple of the base sample time.PCI Slot (-1:autosearch) - Enter a number between -1 and n.If only o

Page 499 - [-10,10]

14 National Instruments14-54PCI-6052E Digital OutputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to

Page 500 - AT-AO-6 Digital Input

PCI-6071E14-55PCI-6071EThe 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

Page 501 - AT-AO-6 Digital Output

RS-232 Asynchronous Mode2-25Building and Running the Target Application (Asynchronous)xPC Target and Real-Time Workshop create C code from your Simuli

Page 502

14 National Instruments14-56PCI-6071E Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 64.

Page 503 - AT-AO-10

PCI-6071E14-57For 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 Vect

Page 504 - AT-AO-10 Digital Input

14 National Instruments14-58The driver selects a second differential input 8 channels higher than the first channel. In the example above, the driver

Page 505 - AT-AO-10 Digital Output

PCI-6071E14-59The following table is a list of the ranges for this driver and the corresponding range codes.For example, if the first channel is -10 t

Page 506 - GPIB-232CT-A

14 National Instruments14-60Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.Sampletime - Enter a bas

Page 507

PCI-650314-61PCI-6503The PCI-6503 is an I/O board with 24 digital input and output lines.xPC Target supports this board with two driver blocks: •“PCI-

Page 508 - PC-DIO-24

14 National Instruments14-62Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this por

Page 509

PCI-650314-63Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver

Page 510

14 National Instruments14-64PCI-6508

Page 511 - PC-TIO-10

PCI-DIO-9614-65PCI-DIO-96The PC-DIO-96 is an I/O board with 96 digital input and output lines.xPC Target supports this board with two driver blocks: •

Page 512

2 RS232 I/O Support2-26

Page 513

14 National Instruments14-66Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this por

Page 514

PCI-DIO-9614-67Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driv

Page 515

14 National Instruments14-68PCI-MIO-16E-1The PCI-MIO-16E-1 is an I/O board with 16 single or 8 differential analog input channels (12-bit) with a maxi

Page 516

PCI-MIO-16E-114-69Channel Vector - Enter numbers between 1 and 16. This driver allows you to enter channel numbers in any order.For example, to use th

Page 517

14 National Instruments14-70The following table is a list of the couplings for this driver and the corresponding coupling codes.For example, if the fi

Page 518

PCI-MIO-16E-114-71PCI-MIO-16E1 Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2. This d

Page 519 - PC-TIO10 FM Capture

14 National Instruments14-72If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associa

Page 520 - PCI-6023E

PCI-MIO-16E-114-73PCI-MIO-16E1 Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select th

Page 521

14 National Instruments14-74PCI-MIO-16E-4The PCI-MIO-16E-4 is an I/O board with 16 single or 8 differential analog input channels (12-bit) with a maxi

Page 522

PCI-MIO-16E-414-75PCI-MIO-16E-4 Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This

Page 523

RS-232 Simulink Block Reference2-27RS-232 Simulink Block ReferencexPC Target supports RS-232 communication with driver blocks in your Simulink model a

Page 524

14 National Instruments14-76For 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

Page 525 - PCI-6024E

PCI-MIO-16E-414-77The driver selects a second differential input 8 channels higher than the first channel. In the example above, the driver would sele

Page 526

14 National Instruments14-78The following table is a list of the ranges for this driver and the corresponding range codes.For example, if the first ch

Page 527

PCI-MIO-16E-414-79Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.Sampletime - Enter a base sample t

Page 528

14 National Instruments14-80PCI-MIO-16XE-10The PCI-6024E is an I/O board with 16 single or 8 differential analog input (A/D) channels (16-bit) with a

Page 529

PCI-MIO-16XE-1014-81Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows you to enter

Page 530

14 National Instruments14-82[-10,1,1]Coupling Vector - Enter a coupling code for each of the channels in the channel vector. The coupling vector must

Page 531 - PCI-6025E

PCI-MIO-16XE-1014-83If two or more boards of this type are physically present in your target PC, enter the PCI slot number of the board associated wit

Page 532

14 National Instruments14-84PCI Slot (-1:autosearch) - Enter a number between -1 and n.If only one board of this type is physically present in the tar

Page 533

PCI-MIO-16XE-1014-85PCI-MIO-16XE-10 Digital OutputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to s

Page 534

2 RS232 I/O Support2-28Sendbuffer SizeEnter the size, in bytes, of the send buffer.Receivebuffer SizeEnter the size, in bytes, of the receive buffer.T

Page 535

14 National Instruments14-86PXI-6040EThe PXI-6040E is an I/O board with 16 single or 8 differential analog input channels (12-bit) with a maximum samp

Page 536

PXI-6040E14-87PXI-6040E Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver a

Page 537 - PCI-6031E

14 National Instruments14-88For 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

Page 538

PXI-6040E14-89The driver selects a second differential input 8 channels higher than the first channel. In the example above, the driver would select t

Page 539

14 National Instruments14-90The following table is a list of the ranges for this driver and the corresponding range codes.For example, if the first ch

Page 540

PXI-6040E14-91Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.Sampletime - Enter a base sample time

Page 541

14 National Instruments14-92PXI-6070EThe PXI-6070E is an I/O board with 16 single or 8 differential analog input channels (12-bit) with a maximum samp

Page 542

PXI-6070E14-93Driver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows you to enter channel numbers in any order.For

Page 543 - PCI-6052E

14 National Instruments14-94The following table is a list of the couplings for this driver and the corresponding coupling codes.For example, if the fi

Page 544

PXI-6070E14-95PXI-6070E Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2. This driver a

Page 545

RS-232 Simulink Block Reference2-29RS-232 Send/Receive Block (Synchronous)The Block Parameters dialog box for the Synchronous Send & Receive block

Page 546

14 National Instruments14-96If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associa

Page 547

PXI-6070E14-97PXI-6070E Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digit

Page 548

14 National Instruments14-98PXI-6508The PXI-6508 is an I/O board with 96 digital input and output lines.xPC Target supports this board with two driver

Page 549 - PCI-6071E

PXI-650814-99Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver

Page 550

14 National Instruments14-100Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital out

Page 551

15Real Time Devices

Page 552

15 Real Time Devices2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“DM6420” x ISA PC104“DM6430” x x ISA PC104“DM6604” x x

Page 553

DM64203DM6420The 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

Page 554

15 Real Time Devices4DM6420 Analog InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver all

Page 555 - PCI-6503

DM64205Note 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

Page 556

iv Contents5CAN I/O Support for FIFOIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2FIFO Mode dri

Page 557

2 RS232 I/O Support2-30RS-232 Send Block (Asynchronous)The Block Parameters dialog box for the Asynchronous Send block contains the following fields.R

Page 558 - PCI-6508

15 Real Time Devices6DM6430The 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

Page 559 - PCI-DIO-96

DM64307Channel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual A/D channels in any order. The number of elemen

Page 560

15 Real Time Devices8[0,0,1]The driver selects a second differential input 8 channels higher than the first channel. In the example above, the driver

Page 561

DM66049DM6604The DM6604 is an ISA PC/104 I/O board with 8 analog output (D/A) channels (12-bit), and 24 digital I/O lines.xPC Target supports this boa

Page 562 - PCI-MIO-16E-1

15 Real Time Devices10[1,2,5]Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - E

Page 563

DM660411Number 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

Page 564

15 Real Time Devices12DM6804The 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 825

Page 565

DM680413Use a separate driver block for each port. By selecting the digital input driver block, the port is configured as input.Channel Vector - Enter

Page 566

15 Real Time Devices14Port - 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 m

Page 567

DM680415Initial 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

Page 568 - PCI-MIO-16E-4

RS-232 Simulink Block Reference2-31RS-232 MATLAB Structure ReferenceYou do not use all message fields in all messages. For example, a message to send

Page 569

15 Real Time Devices16Relative Output Frequency - Enter a value less than 1. The Relative Output Frequency is multiplied by the FrequencyBase to set t

Page 570

DM680417Scaling Input to OutputDriver Block ParametersCounter - From the list, choose 1, 2, 3, 4, or 5 to select which counter is used with this drive

Page 571

15 Real Time Devices18The DM6804 FM & ARM driver programs the AM9513A for FM (Frequency Modulation) signal generation (a square wave with fixed du

Page 572

DM680419second 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 th

Page 573

15 Real Time Devices20BaseAddress - Enter the base address of the board. This entry must corresponds to the DIP-switch settings on the board. For exam

Page 574 - PCI-MIO-16XE-10

DM681421DM6814The DM6814 is a 16-bit counting board with 3 channels. This board typically connects to incremental encoders. Incremental encoders conve

Page 575

15 Real Time Devices22Sample Time — Base sample time or a multiple of the base sample time.BaseAddress — Enter the base address of the board. This ent

Page 576

DM742023DM7420The 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

Page 577

15 Real Time Devices24Driver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual A/D chann

Page 578

DM742025The following table is a list of the ranges for this driver given the gain entered in the gain vector.Notice that by increasing the gain code

Page 579

2 RS232 I/O Support2-32RS-232 Send/Receive Message Structure (Synchronous)Below are descriptions of the possible message fields for the send /receive

Page 580 - PXI-6040E

15 Real Time Devices26-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

Page 581

DM742027Port - 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) - Ent

Page 582

15 Real Time Devices28

Page 583

16Softing

Page 584

16 Softing16-2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“CAN-AC2-ISA” CAN fieldbus PCI“CAN-AC2-PCI” CAN fieldbus PC104

Page 585

CAN-AC2-ISA16-3CAN-AC2-ISAFor I/O-drivers to connect xPC Target-applications to the CAN-fieldbus xPC Target CAN-AC2 is provided as an extension to the

Page 586 - PXI-6070E

16 Softing16-4Setup-blockEvery SIMULINK-model which sends and receives CAN-messages over the CAN-AC2 board has to contain exactly one setup-block. The

Page 587

CAN-AC2-ISA16-52: D4000-D7FFF3: D8000-D8FFFThe second and third dialogue-field allows to choose the baudrate of CAN-port 1. If the baudrate within the

Page 588

16 Softing16-6Send-blockTo send CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed send-blocks. The first dialo

Page 589

CAN-AC2-ISA16-7Receive-blockTo receive CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed receive-blocks.The fi

Page 590

RS-232 Simulink Block Reference2-33RS-232 Send Message Structure (Asynchronous)Below is a description of the possible message fields for the send stru

Page 591

16 Softing16-8CAN-AC2-ISA with Intel 82527The second level of the library contains three driver blocks, one for setting up the board, one for sending

Page 592 - PXI-6508

CAN-AC2-ISA16-9Setup-blockEvery SIMULINK-model which sends and receives CAN-messages over the CAN-AC2 board has to contain exactly one setup-block. Th

Page 593

16 Softing16-10The 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 &q

Page 594

CAN-AC2-ISA16-11Send-blockTo send CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed send-blocks. The first dia

Page 595

16 Softing16-12Receive-blockTo receive CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed receive-blocks. The f

Page 596 - 15 Real Time Devices

CAN-AC2-PCI16-13CAN-AC2-PCIFor I/O-drivers to connect xPC Target-applications to the CAN-fieldbus xPC Target CAN-AC2 is provided as an extension to th

Page 597

16 Softing16-14Setup-blockEvery SIMULINK-model which sends and receives CAN-messages over the CAN-AC2-PCI board has to contain exactly one setup-block

Page 598

CAN-AC2-PCI16-15The last 4 dialogue-entries are used to define the Identifiers of all CAN-messages sent or received within the current SIMULINK-model.

Page 599 - Gain Range (V)

16 Softing16-16Send-blockTo send CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed send-blocks.The first dialo

Page 600

CAN-AC2-PCI16-17Receive-blockTo receive CAN-messages specified in the setup-block, a SIMULINK-model can contain as many as needed receive-blocks. The

Page 601

2 RS232 I/O Support2-34RS-232 Receive Message Structure (Asynchronous)Below are descriptions of the possible message fields for the receive message St

Page 602

16 Softing16-18CAN-AC2 and CANopen devicesIntroductionxPC Target CAN-AC2 supports CAN specification 2.0a and 2.0b but this does not generally include

Page 603

CAN-AC2 and CANopen devices16-19Restriction: CANopen initialization and termination is only supported if the CAN-AC2 board is equipped with the Philip

Page 604

16 Softing16-20•initialization phase - Enable global interrupts to enable asynchronous mode (object 6423) - Put device from pre-operational mode into

Page 605 - DM6604 Digital Output

CAN-AC2 and CANopen devices16-21// AIC711 SDO object 6423: enable global interuptsCANAC2_init[0].port=1;CANAC2_init[0].identifier=AIC711_sdo_base+AIC7

Page 606

16 Softing16-22The receive block will read continuously the object to which the AIC711 sends the PDO’s (ie. the converted A/D-values). Because the out

Page 607 - DM6804 Digital Output

CAN-AC2 and CANopen devices16-23The receive block receives the data (PDO) over CAN-message 640+node-i and has to look therefore as follows:

Page 608

16 Softing16-24If more than one CANopen device is connected to the network the dialogue boxes of the setup and receive block and the CANAC2_setup.c fi

Page 609

17Versalogic

Page 610

17 Versalogic17-26I/O boards supported by xPC Target.) Board Name A/DD/ADINDOUTOther Bus type“VSBC-6” x x x watch dog N/A

Page 611

VSBC-617-27VSBC-6The 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.xPC

Page 612

RS-232 Simulink Block Reference2-35Supported Data Types for Message FieldsThe following table lists the supported data types for the RS-232 message fi

Page 613

17 Versalogic17-28The following table is a list of the ranges for this driver and the corresponding range codes.For example, if the first channel is -

Page 614

VSBC-617-29VSBC-6 Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter a numbers between 1 and 16 to select the number o

Page 615

17 Versalogic17-30

Page 616

IndexI-1II/O dirverlibrary 1-2LlibraryI/O dirver 1-2

Page 617

2 RS232 I/O Support2-36

Page 618

3GPIB I/O SupportIntroduction to GPIB Drivers . . . . . . . . . . . 12-3Hardware Connections for GPIB . . . . .

Page 619

3 GPIB I/O Support3-2xPC Target interfaces the target PC to a GPIB instrument bus using an external GPIB controller from National Instruments. This ex

Page 620

Introduction to GPIB Drivers3-3Introduction to GPIB DriversxPC Target uses a model for I/O that includes both Simulink blocks, for theI/O drivers, and

Page 621

v6ADDI-DATAAPCI-1710 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3APCI-1710 Incremental Encoder . .

Page 622

3 GPIB I/O Support3-4Simulink Blocks for GPIBTo support the use of GPIB, the xPC Target I/O library includes a set of GPIB driver blocks. These driver

Page 623

Introduction to GPIB Drivers3-5Currently, only two limitations exist. xPC Target does not support string data types as input and output data types. Al

Page 624 - 16 Softing

3 GPIB I/O Support3-6Using GPIB DriversxPC Target uses a combination of Simulink blocks and MATLAB structures to support GPIB communication from your

Page 625 - CAN-AC2-ISA

Using GPIB Drivers3-73 Double-click the National Instruments group block.A window with blocks for GPIB drivers opens. Alternatively, you could access

Page 626 - Setup-block

3 GPIB I/O Support3-85 Double-click the GPIB Setup block. Enter values that correspond to the DIP switch settings you set on the GPIB-232CT-A controll

Page 627

Using GPIB Drivers3-9For more information on entering the block parameters, see “GPIB-232CT-A Setup” on page 14-12. For the procedure to create the in

Page 628 - Send-block

3 GPIB I/O Support3-10structure, see “Creating GPIB Message Structures” on page 3-11.6 Click OK. The Block Parameters dialog box closes.7 Double-click

Page 629 - Receive-block

Using GPIB Drivers3-11Your next task is to create the MATLAB message structures that the GPIB driver blocks use to sequence commands to the GPIB contr

Page 630

3 GPIB I/O Support3-12GPIB_Send_Receive(2).Command = ’rd 16’;GPIB_Send_Receive(2).RecData = ’%f’;GPIB_Send_Receive(2).RdLength = 20;GPIB_Send_Receive(

Page 631

Using GPIB Drivers3-138 Set the pre-load function for your Simulink model to load the message structures when you open the model. For example, if you

Page 632

vi ContentsPCL-812 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-24PCL-812 Analog Input (A/D) . . . .

Page 633

3 GPIB I/O Support3-14GPIB Simulink Block ReferenceThe GPIB-232CT-A is a GPIB controller external to the target PC. It is connected to the target PC w

Page 634

GPIB Simulink Block Reference3-15Baudrate From the list, choose 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200, 600, or 300.Number of DatabitsFro

Page 635

3 GPIB I/O Support3-16GPIB-232CT-A Send/Receive BlockDriver Block ParametersGPIB MATLAB Structure ReferenceYou do not use all message fields in all me

Page 636

GPIB Simulink Block Reference3-17GPIB Initialization and Termination Message StructuresThe format for the initialization and termination structures ar

Page 637

3 GPIB I/O Support3-18GPIB Send/Receive Message StructureBelow is a description of the possible fields for the send/receive message structure. The ord

Page 638

GPIB Simulink Block Reference3-19The first port is used to dynamically provide the length of the receive string, while the second port provides the va

Page 639

3 GPIB I/O Support3-20OutputDataTypes Defines the data types for the output ports on the driver block. Default value = []If this value is not define,

Page 640 - CAN-AC2 and CANopen devices

GPIB Simulink Block Reference3-21Shortcuts and Features for MessagesxPC Target defines the abbreviations wrt and rd to make message writing easier wit

Page 641

3 GPIB I/O Support3-22GPIB_Message(1).RecData = ’%f%d’;GPIB_Message(1).OutputPorts = [1 -1];The code %d reads the length of data and the -1 discards t

Page 642

GPIB Simulink Block Reference3-23Supported Data Types for Message FieldsThe following table lists the supported data types for the message fields .Sen

Page 643

viiPCL-818L . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-53PCL-818L Analog Input (A/D) . . . . . . . . .

Page 644

3 GPIB I/O Support3-24

Page 645

4CAN I/O SupportIntroduction 2CAN-AC2 4CAN-AC2-PCI 4CAN-AC2-104 4Selecting a CAN Library 5CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82

Page 646

4 CAN I/O Support4-2IntroductionxPC Target offers support to connect an xPC target system to a CAN network using the CAN driver blocks provided by the

Page 647

Introduction4-3the build process. This has to be done in the xPC Target setup environment either using the xpcsetup-GUI or the corresponding command l

Page 648 - 17 Versalogic

4 CAN I/O Support4-4CAN-AC2This is the CAN-board for the ISA-Bus offering two CAN ports (Highspeed). In it’s standard hardware configuration it uses t

Page 649

Introduction4-5Selecting a CAN LibraryBefore you can build a target application using CAN driver blocks, you need to select the correct CAN library. T

Page 650

4 CAN I/O Support4-6

Page 651 - Block Parameters

Introduction4-7The following table shows which CAN-Library property value depending on the used board or boards.* the setting ‘1000 MB PCI’ is the sam

Page 652

4 CAN I/O Support4-8CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-ControllerThe driver blocks described here support the CAN-AC2

Page 653 - I/O dirver 1-2

CAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller4-9Setup Driver BlockThe Setup block is used to define general settings

Commentaires sur ces manuels

Pas de commentaire