xPC Target    

Setup Driver Block

The Setup block is used to define general settings of the plugged-in CAN board(s). The CAN driver blocks for this board support up to three boards for each target system what leads to the availability of up to six CAN ports. For each board in the target system exactly one Setup driver block has to be used in a model.

The dialog box of the Setup block lets you define the following settings.

Board -- The first control (pop-up menu) lets you define which board is being accessed by this driver block instance. The board number (1...3) can be seen as a reference identifier in order to differentiate the boards if multiple boards are present in the target system. The physical board finally referenced by the board number depends on the PCI Slot edit field described further below. If just one board is present in the target system, board number 1 should be selected.

CAN 1 - Physical bus -- The second control (pop-up menu) is used to define the physical CAN bus type of CAN port 1. In the board standard hardware configuration only Highspeed CAN is supported. By extending the board with Lowspeed CAN piggyback modules it is possible to additionally select Lowspeed CAN as the physical bus. The value of this control shouldn't be changed to Lowspeed if no module is present for the corresponding CAN port. If the module is present (see the Softing user manual on how to install the modules) you can select between Highspeed and Lowspeed CAN here.

CAN 1- Baud rate -- The third control (pop-up menu) lets you define the most common baud rates for CAN port 1. If special timing is necessary (baud rate), the value "User defined" can be selected. In this case the fourth control (edit field) is used to provide the four values for the timing information. The vector elements have the following meaning

For more information about these values see the Softing user manual for this board.

CAN 2 - Physical bus -- The fifth control (pop-up menu) is used to define the physical CAN bus type of CAN port 2. In the board's standard hardware configuration only Highspeed CAN is supported. By extending the board with Lowspeed CAN piggyback modules it is possible to additionally select Lowspeed CAN as the physical bus. The value of this control shouldn't be changed to Lowspeed if no module is present for the corresponding CAN port. If the module is present (see the Softing user manual on how to install the modules) you can select between Highspeed and Lowspeed CAN here.

CAN 2 - Baud rate -- The sixth control (pop-up menu) lets you define the most common baud rates for CAN port 2. If special timing is necessary (baud rate), the value "User defined" can be selected. In this case the seventh control (edit field) is used to provide the four values for the timing information. The vector elements have the following meaning

For more information about these values see the Softing user manual for this board.

Initialization and Termination -- The eighth and ninth control (edit fields) can be used to define CAN messages sent during initialization and termination of the Setup block.

PCI slot (-1: autosearch) -- The tenth control (edit field) is used to define the PCI slot in which the referenced board (board number) resides. If only one board is present in the target system the value for this control should be -1 (autosearch). This value makes sure that the xPC Target kernel automatically finds the board independently of the PCI slot it is plugged into. If two or more boards of this type are physically present in the target PC, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber, SlotNumber]. Use the xPC Target function `getxpcpci' to query the target system for installed PCI boards and the PCI slots they are plugged into. For more information see `help getxpcpci'.

The board allows activating proper termination for each of the two CAN ports separately by means of DIP-switches at the rear panel of the board. Refer to the Softing user manual on how the DIP-switches have to be set. Both CAN ports have to be terminated properly when you use the provided loop-back model in order to test the board and drivers.


  CAN Driver Blocks for the CAN-AC2-PCI with Philips SJA1000 CAN-Controller Send Driver Block