02-09-2012 05:17 AM
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...
02-09-2012 06:28 AM
Why have you started a new thread!
02-09-2012 06:48 AM
Because I think it is a new subject. Is it possible to drive CANoe from TestStand without LabView or something else.
Basically, I'm trying to call CAPL functions from TestStand sequence and it does not work, the GetFunction call from TestStand gives a run time error...
02-09-2012 07:52 AM - edited 02-09-2012 07:53 AM
I have never used the Vector products, but it might be that you will have to create a wrapper function to interface to TestStand rather than interface directly with CAPL.
What error is being reported?
02-09-2012 08:07 AM
In fact, I have to call GetFunction on a OnInit event with TestStand. GetFunction is an API Vector which shall be called under OnInit.
According CAPL :
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.
I do not want to use Visual Basic or something else. I would like to only use TestStand. How to catch the even OnInit with TestStand ?
02-09-2012 08:18 AM - edited 02-09-2012 08:19 AM
Do you have OpenTest because the documentation says that you can generate TestStand SequenceFiles from OpenTest that will run your CANoe.
I would suggest you get in touch with Vector to help you.
02-09-2012 08:31 AM
Ok, I will see thank you.
Is it possible to do an action in TestStand on a callback Active X ??
02-09-2012 11:34 AM - edited 02-09-2012 11:36 AM
The TestStand ActiveX adapter does not support events. If you need events, you will likely have to write a code module which handles them.
-Doug
02-09-2012 12:54 PM
Hi Doug,
One of the reasons why i have decided writing a CANoe wrapper around the CANoe .Net api was that i had no experience about handling events in TestStand.
Just for future projects. Are events in Teststand .net steps possible? I think such a feature is not quit easy in a sequential system.
Still learning
Juergen
Hi slf,
If Dougs answer is bad.
I recommend to write a wrapper around. The .net Api. In my case it is working like a charm.
I am able to Load/Start/Stop applications. Reading and writing of Signals/Sysvar and environments.
Running CAPL and Testfunctions Starting some records and some other features of CANoe.
If you are not able to write a wrapper just take a look at on some Ni-Alliance Partners in your region.
I am sure they will help you.
Regards
Juergen
02-10-2012 02:05 AM - edited 02-10-2012 02:07 AM
Hi, thanks for your annswer.
What do you mean exactly by "wrapper" ? Do you mean that I have to develop a DLL (in LabWindows for example) which will be used from TestStand ?