Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

J1939 Transmit

Transmit J1939 message

Library

Vehicle Network Toolbox: J1939 Communication

Description

The J1939 Transmit block transmits a J1939 message. The J1939 database file defines the nodes and parameter groups. You specify the J1939 database with the J1939 Network Configuration block.

Note

You need a license for both Vehicle Network Toolbox™ and Simulink® software to use this block.

Other Supported Features

The J1939 communication blocks support the use of Simulink Accelerator™ and Rapid Accelerator mode. Using this feature, you can speed up the execution of Simulink models. For more information on this feature, see the Simulink documentation.

The J1939 communication blocks also support code generation with limited deployment capabilities. Code generation requires the Microsoft® C++ compiler.

Block Inputs

  • Data

    Depending on the J1939 parameter group and signals defined in the J1939 database file, the block can have multiple data input ports.

  • Trigger

    Enables the transmission of the message for that sample. A value of 1 specifies to send, a value of 0 specifies not to send.

Parameters

Config name

The name of the J1939 network configuration to associate with. This is used to access the corresponding J1939 database. Only the nodes defined in the model and associated with the specified J1939 network configuration appear in the Node name list. The option shows none if no J1939 network configuration is found.

Node name

The name of the J1939 node. The drop-down list includes all the nodes in the model, both custom nodes and nodes from the database.

Parameter Group

The parameter group number (PGN) and name from the database. The contents of this list vary depending on the parameter groups that the J1939 database file specifies. The default is the first parameter group for the selected node.

Note

If you change any parameter group settings within your J1939 database file, you must then open the J1939 Transmit block dialog box and select the same Parameter Group, then click OK or Apply to update the parameter group information in the block.

Signals

Signals defined in the parameter group.

PG Priority

Priority of the parameter group, read from the database. This priority setting resolves clashes of multiple parameter groups transmitting on the same bus at the same time. If a conflict occurs, the priority group with lower priority (i.e., higher value) will refrain from transmitting. The value can range from 0 (highest priority) to 7 (lowest).

Destination Address

Name of the destination node. The default is the first node defined in the database, otherwise Custom.

For a custom destination address, you can specify 0–253 for the address of the destination node. For broadcasting to all nodes, use the Custom Destination Address setting with an address of 255.

Introduced in R2015b

Was this topic helpful?