TI DM642 receive block (not recommended)


Simulink® Real-Time™ Library of Drivers No Longer Recommended for Use

Block Parameters


Enter a unique number (starting with 1) to identify the memory region for this block.

    Note:   Region numbers must be the same regions as those identified in the Embedded Coder® DM642 model.

Data type and size (cell array)

Enter a cell array of character character vectors and port widths, in the form of {'datatype[port width]'}, for each port. Valid data types are:

  • 'double'

  • 'single'

  • 'int8'

  • 'uint8'

  • 'int16'

  • 'uint16'

  • 'int32'

  • 'uint32'

  • 'boolean'

For example, a value of {'double[1]'} specifies a port data type of double and a width of 1.

New port

Select this check box to create an output port labeled new. This is a port of type boolean to indicate if the port data is new. This port does not indicate that data has changed, only that the DM642 has written data since the Simulink Real-Time software last read data. You might want to use this check box if this block is reading data asynchronously.

Block until data is available

Select this check box to read data only when data is ready to be read. The block is in a busy wait until then. Be careful to avoid deadlock situations when selecting this block.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

PCI slot (-1:autosearch)

If only one board of this type is in the target computer, enter -1 to locate the board.

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

To determine the bus number and the PCI slot number, type:

tg = slrt;
getPCIInfo(tg, 'installed')

Was this topic helpful?