NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Active X CANoe

I have a run time error : "Create New Object" in automation call failed while trying to use object class CAPL(ICAPL2). I have managed to use object call Application (IApplication3). What is the problem ?

0 Kudos
Message 1 of 6
(4,471 Views)

Hi,

 

The real problem is that it is currently extremly cold in europe last few days.

And I assume that  no one is out there (including Vector-Support) help sloving this question.

This stuff is very Vector-Api specific. You have do each process step in right order.

 

If you like that members here will help you should provide more information.

At least one small teststand example.

 

Regards

 

juergen

 

 

 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 6
(4,461 Views)

Ok, I have now an error while calling "GetFunction" in "ICAPL2" of "CANoe Type Library"

 

Error code : "-2147418113 : User defined error code"

Possible System Error : Défaillance irréméidable

 

Have an idea ?

0 Kudos
Message 3 of 6
(4,455 Views)

Hi,

 

I have no idea.

Provide a Ni-TestStand example that shows your Vector API initailisation and the step where the error occures.

And don't forget to provide a complete CANoe example configuration.

Another option is to contact vector's-support.

 

Regards

Juergen  

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 6
(4,449 Views)

According CAPL recommandations :

 

Important: The assignment of a CAPL function to a variable can only be done in the OnInit event handler of the Measurement object. This means that the variable used to access the Measurement object must be declared using the WithEvents keyword in Visual Basic.

 

How to do this "WithEvents" in TestStand, I do not want to use Visual Basic, just TestSTand...

0 Kudos
Message 5 of 6
(4,447 Views)

This report is now on http://forums.ni.com/t5/NI-TestStand/CAPL-with-TestStand/td-p/1869959

 

 

Regards
Ray Farmer
0 Kudos
Message 6 of 6
(4,437 Views)