0

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
akuller
  • 3
  • 5
  • you should probably tag CANoe and/or read its documentation; it's possible that they have designed `CANoe.Application` to be a singleton and you are not supposed to create two at once. – M.M Mar 02 '15 at 02:43
  • Is this still valid? When I tried the above code, it opened both the config in the same application even though I have unchecked the single instance option. – Shyam Jul 09 '20 at 12:36

1 Answers1

1

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

tarrasch
  • 2,630
  • 8
  • 37
  • 61
  • Is this still valid? When I tried the above code, it opened both the config in the same application even though I have unchecked the single instance option. – Shyam Jul 09 '20 at 12:37