Documentation

BVM PMCDIO64 Digital Output

PMCDIO64 Digital Output block

Library

Simulink® Real-Time™ Library for BVM

Scaling Input to Output

I/O Module Output

Block Input Data Type

Scaling

TTL

double

< 0.5 = TTL low
≥ 0.5 = TTL high

Block Parameters

Format

From the list, choose either 32 One bit channels or Single 32 bit port.

If the format is 32 One bit channels, then the channel vector specifies the configuration of the block. Each input is a double. The output is set to low voltage if the input is < 0.5 and high voltage if the input is ≥ 0.5.

If the format is Single 32 bit port, then the input to the block is a 32-bit integer where the 32 bits on the I/O module are controlled by the single input. The channel vector is not used in this mode and is unavailable on the Block Parameters dialog box. The least significant bit is the lowest numbered bit in the manufacturer documentation.

Channel vector

This is a vector of channels and is only used when the format is 32 One bit channels. Channels are numbered from 1 to 32 even if this manufacturer labels them 0 to 31. I/O signal numbers IO32 to IO63 are acquired by choosing Port 2 and channels 1 to 32.

Reset action vector

If you chose 32 One bit channels, enter a vector of 1's and 0's that is the same length as the channel vector. A value of 1 indicates that the channel is reset to the value in the initial value vector when the model is stopped. A value of 0 indicates that the output remains at the last value written when the model is stopped. If you enter a scalar value, that value is used for all channels.

If you chose Single 32 bit port, enter a 1 or a 0 to determine what happens when the model is stopped. If you enter 1, the 32 bits of the output are reset to the value given by the initial value vector. If you enter 0, the output remains at the last value written when the model is stopped.

Initial value vector

If you chose 32 One bit channels, this vector determines both the initial value of the outputs at model download time and the values when model execution is stopped. A value of 1 for a given channel sets the output for that channel to 1 while any other value sets the output to 0.

If you chose Single 32 bit port, enter the scaler value to write to the output port. The value can be a hexadecimal or a decimal. If it is a hexadecimal, then use C syntax. For example, 0xaaaaaaaa in hexadecimal would be the equivalent of 2863311530 in decimal.

Port

Each half of the 64 bits is a separate port. Port 1 is the lower 32 bits and Port 2 is the upper 32 bits. You can use one port for input and the other port for output. In a given model, each port can only be set to one direction.

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')

External Websites

Was this topic helpful?