rbei-etas / busmaster

BUSMASTER is an Open Source Software tool to simulate, analyze and test data bus systems such as CAN. BUSMASTER was conceptualized, designed and implemented by Robert Bosch Engineering and Business Solutions (RBEI). Presently it is a joint project of RBEI and ETAS GmbH.
http://rbei-etas.github.com/busmaster/
GNU General Public License v3.0
950 stars 502 forks source link

Click "Connect" but no response, after load .cpp file in Node Simulation #1247

Open DanielTian90 opened 4 years ago

DanielTian90 commented 4 years ago

One .cpp file was generated from CAPL, and there is no function in capl. But after load .cpp file in Node Simulation panel, I tried to click "Connect" there is no response. Here is the code in cpp file.

/ / this file is generated by busmaster / / version [1.2] / / busmaster version [3.2.2] / / protocol [can] */

/ start busmaster include header /

include

include "canincludes.h"

/ end busmaster include header /

/ start busmaster function prototype / void utils_prestart(); / end busmaster function prototype /

/ start busmaster function wrapper prototype / / end busmaster function wrapper prototype /

int rx  =   1;

int tx  =   0;

#define for for
#define switch  switch
#define if  if

/@!encoding:936/ includes {

} / start busmaster global variable /

namespace global { // message 0x100 msg;// = {dlc = 8} }

//on message 0xc0 //{ // int i; // msg.dlc = 8; // for(i = 0; i < 8; i++) // msg.byte(i) = i; // output(msg); //}

; using namespace global;

/ end busmaster global variable /

/ start busmaster generated function - utils_prestart / void utils_prestart() {

} / end busmaster generated function - utils_prestart / */

max196809d commented 4 years ago

If possible I would need the converter to busmaster CAPL2CConverter.dll J1939 but with your help version busmaster 3.2.2.,