Documentation

This is machine translation

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

Signals

Physical signals defined in CAN message or J1939 parameter group

Description

The Signals property allows you to view and edit signal values defined for a CAN message or a J1939 parameter group. This property displays an empty structure if the message has no defined signals or a database is not attached to the message or parameter group. The input values for this property depends on the signal type.

Characteristics

Usage

CAN message, J1939 parameter group

Read only

Sometimes

Data type

Structure

Examples

Display CAN Message Signals

Create a CAN message.

message = canMessage(canDb,'messageName');

Display message signals.

message.Signals
    VehicleSpeed: 0
       EngineRPM: 250

Change the value of a signal.

message.Signals.EngineRPM = 300

Display J1939 Parameter Group Signals

Create a parameter group.

pg = j1939ParameterGroup(db, 'PackedData')

Display parameter group signals

pg.Signals
       ToggleSwitch: -1
       SliderSwitch: -1
       RockerSwitch: -1
    RepeatingStairs: 255
         PushButton: 1

Change the value of the repeating stairs.

pg.Signals.RepeatingStairs = 200
       ToggleSwitch: -1
       SliderSwitch: -1
       RockerSwitch: -1
    RepeatingStairs: 200
         PushButton: 1
Was this topic helpful?