J1939 Pack (not recommended)
Simulink® Real-Time™ Library of Drivers No Longer Recommended for Use
The J1939 Pack block assembles a message suitable for sending over the CAN network.
The block input signal indicates when the message should be sent. You can connect this signal to a J1939 Message Triggering block or to a user selected block. When the signal is 1, the block packs a new message from the current signal input values.
The other input ports are dynamic and depend on the value of the PGN value of the message. The block inputs are of type double.
The single output is a vector of unsigned bytes of variable length. This output is typically connected to the input of the J1939 Transmit block.
Select the message that this block unpacks. From the list, select a parameter group number (PGN). The block automatically creates input ports according to the number and type of suspect parameter numbers (SPNs) that correspond to the PGN.
Enter the three priority bits of this message. Enter a message
7, with 0
being the highest and 7 being the lowest.
Enter the destination address for destination-specific messages. See the SAE J1939-21 for information.