12-30-2009 05:14 PM
I can open canalyzer. Compile the code but not access my own CAPL functions. The program does not report any errors.
The program looks like this.
Solved! Go to Solution.
12-30-2009 11:52 PM
12-31-2009 04:41 AM
Thanks for the link. unfortunately it did not help.
I have tried to access CAPL through the com object and python. I get the sama problem. That code look like this
Application = Dispatch("CANalyzer.Application")
Measurement = Application.Measurement
ApplicationEvents = WithEvents(Application,ApplEvents)
MeasurementEvents=WithEvents(Measurement,MeasEvents)
CAPL=Application.CAPL
Application.Open("C:\\Users\\kortOtjock\\Desktop\\Canalyzer filer\\Rig2_Any_Capl_Nodetest.cfg")
ref=CAPL.GetFunction("TEST")
Measurement.Start()
wait(2000)
ref.Call(1) #thisis ignored by canalyzer
01-02-2010 01:16 PM
Found the problem
GetFunction has to be created in a OnInit event
09-13-2010 04:21 AM
Hello,
I need urgent help ...
How is the OnInit() Function called in Python ?
is there an implementation for Python ~2.6 available ? I did not manage up to now to fix the same problem. Maybe someone has a finished implementation for accessing CAPL function by python.
Thanks a lot for your help.
Best regards.
02-09-2012 07:02 AM
I have the same problem. How to create GetFunction in a OnInit event with TestStand ??
02-03-2014 11:52 PM
Hey could u jus jot down the code for calling the CAPL function using python .. i am facing the same problem 😞
02-04-2014 01:53 AM
09-26-2014 04:33 AM
Hi All,
I have one query regarding the above topic.
How to access the CAPL function in python script and how to execute that CAPL function.
In CAPL function, I am sending a CAN message. I need to execute that CAPL function through python. Can anyone tell me how to do this.
Thanks alot in advance!
Regards,
Pavan Joshi
04-03-2015 10:00 AM
Hi ALL,
please how can I get the retuurned value of CAPL function in python below my code any help please:
App_Handle.CAPL.GetFunction("Multiply")
functions_handle.Call() #this will make a call for Multiply function now how can I get the return value of Multiply
Cordially