Skip to content

What is new?

Node Simulation v1.2 changes

STCAN_MSG in node simulation is updated to ease accessing message attributes, signal values and to support Big Endian signals as given below class STCAN_MSG { unsigned int id; bool isExtended; bool isRtr; unsigned char dlc; unsigned char cluster; unsigned char data[64]; unsigned long timeStamp; bool isCanfd; // To set data bool byteAt(int index, unsigned char val); bool wordAt(int index, unsigned short val); bool longAt(int index, unsigned long val); // To get data unsigned char byteAt(int index); unsigned short wordAt(int index); unsigned long longAt(int index); };

Following functions are supported to access/update Signal values To set signal rawvalue or physicalvalue 1. rawvalue(int x); // Type ‘int’ will vary as per the signal type 2. physicalvalue(double x); To get signal rawvalue or physicalvalue 1. rawvalue(); // returns signal rawvalue 2. physicalvalue(); // returns signal physicalvalue For more details, refer ‘Examples’ section under ‘CAN->Node Simulation’

On importing Node Simulation .cpp file of version 1.1, .cpp file will be automatically updated with version 1.2 changes and a backup file will be created in the same path (.bak file) CAN CAPL to Cpp conversion is updated as per Node Simulation 1.2 structures


Authoritative source: BUSMASTER DITA help source what_is_new_nodesimulation.dita, compiled into BUSMASTER.CHM with the application.