Start and run CANoe from Command Prompt

Gustaf Gulliksson picture Gustaf Gulliksson · Dec 8, 2014 · Viewed 8.4k times · Source

Is it possible to start and run Vector CANoe from the Command Prompt and/or by using any other external script?

Answer

np2807 picture np2807 · Apr 18, 2018

CANOE simply loads a .cfg configuration file. For jenkins, I am using the Visual Basics script and using this loading perticular configration file.

In this was it bypasses the "I accept" and other windows and loads the desired configuration also also using same kind of VB scirpt you can close the application.

'ToStart CANoe_Start.vbs

Set App = CreateObject("CANoe.Application")   
dim fso: set fso = CreateObject("Scripting.FileSystemObject")   
dim CANoe_config    
CANoe_config = fso.BuildPath(fso.GetAbsolutePathName("."), "<target.cfg>")

App.Measurement.Start()

After that you can add the operations in jenkins jobs; to close the same appilcation use :

'ToStop CANoe_Stop.vbs
Set App = CreateObject("CANoe.Application")
App.Quit()

This worked for me. You can call the vbs's over command prompt.