ModelingSimulationImplementationxPC Target For Use with Real-Time Workshop ®I/O Reference GuideVersion 1
viii Contents9ComputerBoardsCIO-CTR05 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-5CIO-CTR05 Counter PWM
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
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
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
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
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
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
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
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
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
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
ixCIO-DAS16JR/16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-36CIO-DAS16JR/16 Analog Input (A/D) . . . . . . . . . .
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
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
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
CAN driver blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller4-23The third block group highlighted above contains the three available CAN
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
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
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
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-
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
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
x ContentsCIO-DIO48 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-72CIO-DIO48 Digital Input . . . . . . . .
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
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
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
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
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
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
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
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
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
Constructing and Extracting CAN Data Frames4-39Constructing and Extracting CAN Data FramesCAN data frames have a maximum size of 8 bytes (64 bits). Fo
xiPC104-DAS16JR/16 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-101PC104-DAS16JR/16 Analog Input (A/D) . . . . . . . . .
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
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
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
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
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
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
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
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
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
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
xii ContentsPCI-DDA02/12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-137PCI-DDA02/12 Analog Output (D/A) . . .
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
Model execution driven by CAN-messages (Interrupt capability of CAN Receive blocks)4-51Generate interrupts check box. Checking this box will declare a
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
Defining Initialization and Termination CAN Messages4-53Defining Initialization and Termination CAN Messages The CAN Setup driver blocks for all suppo
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-
5CAN I/O Support for FIFOIntroduction . . . . . . . . . . . . . . . . . . . 13-2FIFO Mode drivers for CAN boar
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
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
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
Introduction5-5messages to be processed and the number of total messages going over the network is high.Especially for monitor type of applications th
xiii10DiamondDiamond-MM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-3Diamond-MM Analog Input (A/D) . . . . .
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
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
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
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
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
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
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
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
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
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
xiv Contents11GespacGESADA-1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11-3GESADA-1 Analog Input (A/D) .
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
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
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
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
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
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
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
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
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
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
xvKPCI-1802HC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-13KPCI-1802HC Analog Input (A/D) . . . . . . . . . .
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
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
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
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
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
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
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
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
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
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
xvi ContentsPCI-6023E . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-26PCI-6023E Analog Input (A/D) . . . .
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
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
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
Acceptance Filters5-39using decimal numbers. You can use the MATLAB function ‘hex2dec’ to also define hexadecimal numbers in the dialog box entry. Let
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
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
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
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
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
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
xviiPCI-6508 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-64PCI-DIO-96 . . . . . . . . . . . . . . . .
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
Examples5-47
5 CAN I/O Support for FIFO5-48
6ADDI-DATA
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
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
6 ADDI-DATA6-4to the APCI-1710-manual for information on how to electrically connect the encoders to the board.Driver Block ParametersFunction Module.
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
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
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
How to Contact The MathWorks:www.mathworks.com Webcomp.soft-sys.matlab [email protected] Technical [email protected] Product e
xviii Contents15Real Time DevicesDM6420 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-3DM6420 Analog
6 ADDI-DATA6-8
7Advantech
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
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
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
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
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
PCL-18007-7PCL-1800 Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allow
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
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
xix16SoftingCAN-AC2-ISA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-3CAN-AC2-ISA with Philips PCA82C200 . .
7 Advantech7-10PCL-726 Digital InputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allo
PCL-7267-11PCL-726 Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows
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
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
7 Advantech7-14PCL-727 Digital InputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allo
PCL-7277-15PCL-727 Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows
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
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
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
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
xx Contents
7 Advantech7-20PCL-818 Analog Output (D/A)Scaling of Input to OutputDriver Block ParameterChannel Vector - Enter numbers between 1 and 2. This driver
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
7 Advantech7-22PCL-818 Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver al
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
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
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
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
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
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
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
1I/O DriversI/O Driver Block Library . . . . . . . . . . . . . . . . .28Memory-Mapped Devices . . . . .
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
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
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
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
7 Advantech7-34PCL-818HG Digital InputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver al
PCL-818HG7-35PCL-818HG Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver al
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
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
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.
PCL-818L7-39PCL-818L Digital InputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter channels between 1 and 16. This driver allow
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
7 Advantech7-40PCL-818L Digital Output Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter channels between 1 and 16. This driver
8Burr-Brown
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
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
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
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
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
PCI-20019M8-7W11 in W31 -W12 outJumper NumberJumper Jumper NumberJumper
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
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
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,
8 Burr-Brown8-10W10 out W31 -W11 inJumper NumberJumper Jumper NumberJumper
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
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
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
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
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
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
9ComputerBoards
9 ComputerBoards9-2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“CIO-CTR05” counter FMcounter FM&ARMcounter PWMcounte
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
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
9 ComputerBoards9-4“PCI-CTR05” counter FMcounter FM&ARMcounter PWMcounterPWM&ARPWM captureFrequency capturePCI“PCI-DAS1200” xxxx PCI“PCI-DAS12
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
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
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
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
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
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
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
9 ComputerBoards9-12CIO-CTR05 FM CaptureThis block programs the AMD9513A for capturing FM signals.There is one output for relative frequency compared
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
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
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
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
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
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
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
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
9 ComputerBoards9-20CIO-CTR10 FM CaptureThis block programs the AMD9513A for capturing FM signals.There is one output for relative frequency compared
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
9 ComputerBoards9-22Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Range code
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
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
9 ComputerBoards9-24Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Range code
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
9 ComputerBoards9-26Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Enter a ra
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
9 ComputerBoards9-28Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Enter a ra
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
9 ComputerBoards9-30CIO-DAS16/330 Analog Input (A/D)Scaling Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen from
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
9 ComputerBoards9-32CIO-DAS16/JR Analog Input (A/D)Scaling Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen from t
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
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
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
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
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
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
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
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
9 ComputerBoards9-40CIO-DAS1601/12 Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2. Th
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
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
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
iContents1I/O DriversI/O Driver Block Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2Memory-Mapped Devices . . . . . . . .
1 I/O Drivers1-8
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
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
9 ComputerBoards9-46CIO-DAS1602/12 Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2. Th
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
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
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
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
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
9 ComputerBoards9-52CIO-DAS1602/16 Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2. Th
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
2RS232 I/O SupportIntroduction to RS-232 Drivers . . . . . . . . . . . . 3Hardware Connections for RS-232 . . . . .
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
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
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
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
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
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
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
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
9 ComputerBoards9-62CIO-DDA06/16 Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 6. This
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
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
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
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
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
CIO-DIO249-67Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver
9 ComputerBoards9-68Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This
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
9 ComputerBoards9-70Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This
CIO-DIO24H9-71Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This drive
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
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
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
9 ComputerBoards9-74Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines us
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
9 ComputerBoards9-76Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This
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
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
CIO-DIO969-79Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver
9 ComputerBoards9-80Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines us
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
9 ComputerBoards9-82Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This
CIO-DIO1929-83Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used wit
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
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
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
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
CIO-PDISO169-87Scaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 8 to select the number of digital input
9 ComputerBoards9-88CIO-PDISO16 Digital OutputThe CIO-PDISO16 has two independent connectors. Each connector has 8 relay driven digital input lines.Us
CIO-QUAD029-89CIO-QUAD02The CIO-QUAD02 is a 24-bit counting board with 2 channels. This board typically connects to incremental encoders. Incremental
9 ComputerBoards9-90The velocity is given by:velocity = (distance(ts) - distance(ts-1)) / tsThe direction is given by:direction = distance(ts) - dista
CIO-QUAD029-91Resolution - The Resolution field specifies the divisions of the connected incremental encoder for one revolution.
9 ComputerBoards9-92CIO-QUAD04The CIO-QUAD04 is a 24-bit counting board with 4 channels. This board typically connects to incremental encoders. Increm
CIO-QUAD049-93The velocity is given by:velocity = (distance(ts) - distance(ts-1)) / tsThe direction is given by:direction = distance(ts) - distance(ts
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
9 ComputerBoards9-94Resolution - The Resolution field specifies the divisions of the connected incremental encoder for one revolution.
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
9 ComputerBoards9-96Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Range code
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
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
PC104-DAS16JR/129-99PC104-DAS16JR/12 Digital Input Scaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 4 t
9 ComputerBoards9-100PC104-DAS16JR/12 Digital OutputScaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 4
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
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
PC104-DAS16JR/169-103PC104-DAS16JR/16 Digital Input Scaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 4
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
9 ComputerBoards9-104PC104-DAS16JR/16 Digital OutputScaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 4
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
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
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
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
PCI-CTR059-109PCI-CTR05 Counter PWMThe PCI-CTR05 PWM driver programs the AM9513A for PWM (Pulse Width Modulation) signal generation (a square wave wit
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,
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
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
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
RS-232 Synchronous Mode2-7RS-232 Synchronous ModeUse synchronous mode when you need to receive a response before continuing with other computations. I
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,
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
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
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
9 ComputerBoards9-118Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.Range Vector - Enter a r
PCI-DAS12009-119Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used wi
9 ComputerBoards9-120Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.Scaling
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
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
PCI-DAS1200/JR9-123Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used
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
9 ComputerBoards9-124Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.Scaling
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
9 ComputerBoards9-126PCI-DAS1602/12 Analog Input (A/D)Scaling of Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen
PCI-DAS1602/129-127PCI-DAS1602/12 Analog Output (D/A)Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2.
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
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
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
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
9 ComputerBoards9-132PCI-DAS1602/16 Analog Input (A/D)Scaling of Input to OutputDriver Block ParametersNumber of Channels - If single-ended is chosen
PCI-DAS1602/169-133PCI-DAS1602/16 Analog Output (D/A)Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2.
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
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
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
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
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
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
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
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
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
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
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
ii ContentsRS-232 Receive Message Structure (Asynchronous) . . . . . . . . 2-34Supported Data Types for Message Fields . . . . . . . . . . . . . .
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
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
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
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
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
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
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
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
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
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
PCI-DIO249-153Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with
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
9 ComputerBoards9-154Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.Scaling
PCI-DIO249-155
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
PCI-DIO24H9-157Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used wit
9 ComputerBoards9-158Use a separate diver block for each port. By selecting the digital output driver block, the port is configured as output.Scaling
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
9 ComputerBoards9-160Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines us
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
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
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
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
9 ComputerBoards9-164Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines us
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
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
PCI-QUAD049-167PCI-QUAD04The PCI-QUAD04 is a 24-bit counting board with 4 channels. This board typically connects to incremental encoders. Incremental
9 ComputerBoards9-168The velocity is given by:velocity = (distance(ts) - distance(ts-1)) / tsThe direction is given by:direction = distance(ts) - dist
PCI-QUAD049-169Resolution - The Resolution field specifies the divisions of the connected incremental encoder for one revolution.
9 ComputerBoards9-170
10Diamond
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
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
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-
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
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
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
Diamond-MM10-7Diamond-MM Digital OutputScaling Input to OutputDriver Block ParametersNumber of Channels - Enter a number between 1 and 8 to select the
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
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
10 Diamond10-10MUX — From the list choose single-ended (32 channels) or differential (16channels). This entry must correspond to the MUX jumpers set o
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
10 Diamond10-12Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This drive
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
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
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
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
10 Diamond10-160x300
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
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
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
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
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
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
Quartz-MM 510-23Quartz-MM5 FM CaptureThis block programs the AMD9513A for capturing FM signals.There is one output for relative frequency compared to
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
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
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
10 Diamond10-260x300
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
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
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
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
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
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
Quartz-MM 1010-33Quartz-MM 10 FM CaptureThis block programs the AMD9513A for capturing FM signals.There is one output for relative frequency compared
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
10 Diamond10-34
11Gespac
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
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
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
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
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
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
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
12Humusoft
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.
12 Humusoft12-2I/O boards supported by xPC Target. Board Name A/DD/ADINDOUTOther Bus type“AD 512” xxxx ISA
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 (
12 Humusoft12-4AD 512 Analog Input (A/D)Scaling Input to OutputDriver block ParameterChannel Vector - Enter numbers between 1 and 8. This driver allow
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
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
AD 51212-7AD 512 Digital OutputScaling Input to OutputChannel Vector - Enter a numbers between 1 and 8. This driver allows the selection of individual
12 Humusoft12-8
13Keithley Metrabyte
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”
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
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
13 Keithley Metrabyte13-4DAS-1800HR Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - If 16 single-ended or 16 single-e
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
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
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
13 Keithley Metrabyte13-8KPCI-1801HC Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 64.
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
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
KCPI-1801HC13-11KPCI-1801HC Digital InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 4 to select the di
13 Keithley Metrabyte13-12KPCI-1801HC Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 4 to se
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
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
13 Keithley Metrabyte13-14KPCI-1802HC Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 64.
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
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
KPCI-1802HC13-17KPCI-1802HC Digital InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 4 to select the di
13 Keithley Metrabyte13-18KPCI-1802HC Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 4 to se
14National Instruments
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
14-3“PXI-6040E” xxxx compact PCI“PXI-6070E” xxxx compact PCI“PXI-6508” x x compact PCIBoard Name A/DD/ADINDOUTOther Bus type
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
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
iiiCAN driver blocks for the CAN-AC2 (ISA) with Philips PCA 82C200 CAN-Controller . . . . . . . . . . . . . . . 4-8Setup Driver Block . . . . . . .
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
14 National Instruments14-6AT-AO-6 Digital InputThe AT-AO-6 has 8 digital input lines.Scaling Input to OutputDriver Block ParametersChannel Vector - E
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
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
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
14 National Instruments14-10AT-AO-10 Digital InputThe AT-AO-10 has 8 digital input lines.Scaling Input to OutputDriver Block ParametersChannel Vector
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
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
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
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
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
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
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
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
14 National Instruments14-18Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input l
PC-TIO-1014-19Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used wit
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
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
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
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
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
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
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
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
PCI-6023E14-27PCI-6023E Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver a
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
PCI-6023E14-29PCI-6023E Digital InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digita
14 National Instruments14-30PCI-6023E Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to se
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
14 National Instruments14-32PCI-6024E Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16.
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
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
PCI-6024E14-35PCI-6024E Digital InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digita
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
14 National Instruments14-36PCI-6024E Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to se
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
14 National Instruments14-38PCI-6025E Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16.
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
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
PCI-6025E14-41PCI-6025E Digital InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digita
14 National Instruments14-42PCI-6025E Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to se
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
14 National Instruments14-44Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 64. This driver allows you t
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
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
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
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-
14 National Instruments14-48PCI-6031E Digital OutputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to
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
14 National Instruments14-50Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows you t
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
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
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
14 National Instruments14-54PCI-6052E Digital OutputScaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to
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
RS-232 Asynchronous Mode2-25Building and Running the Target Application (Asynchronous)xPC Target and Real-Time Workshop create C code from your Simuli
14 National Instruments14-56PCI-6071E Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 64.
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
14 National Instruments14-58The driver selects a second differential input 8 channels higher than the first channel. In the example above, the driver
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
14 National Instruments14-60Number the lines beginning with 1 even if the board manufacture starts numbering the lines with 0.Sampletime - Enter a bas
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-
14 National Instruments14-62Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this por
PCI-650314-63Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital output lines used with this port. This driver
14 National Instruments14-64PCI-6508
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: •
2 RS232 I/O Support2-26
14 National Instruments14-66Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this por
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
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
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
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
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
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
PCI-MIO-16E-114-73PCI-MIO-16E1 Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select th
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
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
RS-232 Simulink Block Reference2-27RS-232 Simulink Block ReferencexPC Target supports RS-232 communication with driver blocks in your Simulink model a
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
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
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
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
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
PCI-MIO-16XE-1014-81Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows you to enter
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
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
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
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
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
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
PXI-6040E14-87PXI-6040E Analog Input (A/D)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver a
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
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
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
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
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
PXI-6070E14-93Driver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows you to enter channel numbers in any order.For
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
PXI-6070E14-95PXI-6070E Analog Output (D/A)Scaling Input to OutputDriver Block ParametersChannel Vector - Enter Numbers between 1 and 2. This driver a
RS-232 Simulink Block Reference2-29RS-232 Send/Receive Block (Synchronous)The Block Parameters dialog box for the Synchronous Send & Receive block
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
PXI-6070E14-97PXI-6070E Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digit
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
PXI-650814-99Driver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital input lines used with this port. This driver
14 National Instruments14-100Scaling of Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 8 to select the digital out
15Real Time Devices
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
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
15 Real Time Devices4DM6420 Analog InputScaling Input to OutputDriver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver all
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
iv Contents5CAN I/O Support for FIFOIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2FIFO Mode dri
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
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
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
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
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
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
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
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
DM680413Use a separate driver block for each port. By selecting the digital input driver block, the port is configured as input.Channel Vector - Enter
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
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
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
15 Real Time Devices16Relative Output Frequency - Enter a value less than 1. The Relative Output Frequency is multiplied by the FrequencyBase to set t
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
15 Real Time Devices18The DM6804 FM & ARM driver programs the AM9513A for FM (Frequency Modulation) signal generation (a square wave with fixed du
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
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
DM681421DM6814The DM6814 is a 16-bit counting board with 3 channels. This board typically connects to incremental encoders. Incremental encoders conve
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
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
15 Real Time Devices24Driver Block ParametersChannel Vector - Enter numbers between 1 and 16. This driver allows the selection of individual A/D chann
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
2 RS232 I/O Support2-32RS-232 Send/Receive Message Structure (Synchronous)Below are descriptions of the possible message fields for the send /receive
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
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
15 Real Time Devices28
16Softing
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
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
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
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
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
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
RS-232 Simulink Block Reference2-33RS-232 Send Message Structure (Asynchronous)Below is a description of the possible message fields for the send stru
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
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
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
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
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
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
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
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.
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
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
2 RS232 I/O Support2-34RS-232 Receive Message Structure (Asynchronous)Below are descriptions of the possible message fields for the receive message St
16 Softing16-18CAN-AC2 and CANopen devicesIntroductionxPC Target CAN-AC2 supports CAN specification 2.0a and 2.0b but this does not generally include
CAN-AC2 and CANopen devices16-19Restriction: CANopen initialization and termination is only supported if the CAN-AC2 board is equipped with the Philip
16 Softing16-20•initialization phase - Enable global interrupts to enable asynchronous mode (object 6423) - Put device from pre-operational mode into
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
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
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:
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
17Versalogic
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
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
RS-232 Simulink Block Reference2-35Supported Data Types for Message FieldsThe following table lists the supported data types for the RS-232 message fi
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 -
VSBC-617-29VSBC-6 Digital OutputScaling Input to OutputDriver Block ParametersChannel Vector - Enter a numbers between 1 and 16 to select the number o
17 Versalogic17-30
IndexI-1II/O dirverlibrary 1-2LlibraryI/O dirver 1-2
2 RS232 I/O Support2-36
3GPIB I/O SupportIntroduction to GPIB Drivers . . . . . . . . . . . 12-3Hardware Connections for GPIB . . . . .
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
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
v6ADDI-DATAAPCI-1710 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3APCI-1710 Incremental Encoder . .
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
Introduction to GPIB Drivers3-5Currently, only two limitations exist. xPC Target does not support string data types as input and output data types. Al
3 GPIB I/O Support3-6Using GPIB DriversxPC Target uses a combination of Simulink blocks and MATLAB structures to support GPIB communication from your
Using GPIB Drivers3-73 Double-click the National Instruments group block.A window with blocks for GPIB drivers opens. Alternatively, you could access
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
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
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
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
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(
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
vi ContentsPCL-812 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-24PCL-812 Analog Input (A/D) . . . .
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
GPIB Simulink Block Reference3-15Baudrate From the list, choose 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200, 600, or 300.Number of DatabitsFro
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
GPIB Simulink Block Reference3-17GPIB Initialization and Termination Message StructuresThe format for the initialization and termination structures ar
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
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
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,
GPIB Simulink Block Reference3-21Shortcuts and Features for MessagesxPC Target defines the abbreviations wrt and rd to make message writing easier wit
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
GPIB Simulink Block Reference3-23Supported Data Types for Message FieldsThe following table lists the supported data types for the message fields .Sen
viiPCL-818L . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-53PCL-818L Analog Input (A/D) . . . . . . . . .
3 GPIB I/O Support3-24
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
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
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
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
Introduction4-5Selecting a CAN LibraryBefore you can build a target application using CAN driver blocks, you need to select the correct CAN library. T
4 CAN I/O Support4-6
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
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
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
Kommentare zu diesen Handbüchern