Documentation Center

  • Trial Software
  • Product Updates

set

Configure property values

Syntax

set (obj, propertyname, propertyvalue)

Description

set (obj, propertyname, propertyvalue) configures the specified property, propertyname, on the object obj, to the value specified in propertyvalue.

Examples

To set a CAN channel property:

canch = canChannel('Vector', 'CANcaseXL 1', 1)
set (canch, 'SilentMode', true)

To set a CAN message property:

message = canMessage(250, 8, true)
set (message, 'Remote', true)

To set a CAN message signal property:

candb = canDatabase('C:\Database.dbc')
message = canMessage(candb, 'Battery_Voltage')
set (message, 'BatVlt', 9.3)
Was this topic helpful?