-->

How to create multiple application instances in CA

2020-05-09 09:15发布

问题:

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

回答1:

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