J1939 Message Triggering
Simulink® Real-Time™ Library for J1939
The J1939 Message Trigger block triggers the transmission of a J1939 message under conditions that the block specifies. When using this block in your model, connect its Trigger Out port to the Trigger input port of the J1939 Transmit Message block. The possible triggering conditions are:
Nonzero input at the Trigger Message input port
Expiration of the repetition interval
A detected change in the input signal
This block has the following input ports:
Manually triggers the message transmission when the input value
Detects changes in the input.
This block has the following output ports:
Outputs an active signal when a condition for triggering a message occurs. Connect this output to the Trigger input port of the J1939 Transmit Message block.
Select this check box to enable periodic triggering at the interval specified in the Repetition Interval parameter.
Specify the enabled repetition interval in milliseconds. The repetition interval must be an integer multiple of the model update rate.
Select this check box to enable triggering when both of the following are true:
Input signal wired to the Signal For Change Detection port input port changes by at least the value in the Minimum Change Threshold parameter.
Specified time in the Minimum Change Interval parameter has expired.
Specify the threshold change to trigger a message. The trigger event is a change in the input signal relative to the signal value from the previous triggering.
Specify the minimum time for the block to wait after a message transmission occurs because of a change in the signal.