Skip to Main Content Skip to Search
Product Documentation

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)
  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS