Search code examples
visual-c++vbscriptcomtypelibcom-server

How to create multiple application instances in CANoe COM Server Interface


I’m trying write client application to CANoe (application by Vector). I can fully control one application trough COM server objects but if i create a new application instance, gCanAppB, the original instance gCanAppA is closed. How can i tell to the COM Server, that open the new instance in new application window?

My source code:

Set gCanAppA = CreateObject( "CANoe.Application")
Set gCanAppB = CreateObject( "CANoe.Application")

gCanAppA.Open ("Easy.cfg")
gCanAppA.CAPL.Compile
gCanAppA.Measurement.Start

gCanAppB.Open ("Easy.cfg")
gCanAppB.CAPL.Compile
gCanAppB.Measurement.Start

Solution

  • You can deactivate this behaviour in the options below Configurations/Options: Configuration image