I'm working on CANalyzer and I can't find how to call a CAPL function wich contains a parameter. If I put num in functions_call.Call(num) it doesn't work.
def call(num):
print 'calling from CAN'
x=int(num)
functions_call.Call()
return 1
解决方案
I ran into a similar problem a while back and some Googling led me to the following application note by Vector:
...checkout section "2.7 Calling CAPL Functions".
To sum it up, make sure to declare your CAPL function's parameters as "long", .e.g: the following seemed to work for me:
void function1(long l)
{
write("function1() called with %d!", l);
}
For the sake of completion, this is how my python code (for the example above) looks like:
from win32com import client
imp