LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Return invalid value when calling CANoe CAPL function

I want to call CAPL function from LabVIEW,and get the return value from CAPL function.

 

the source code of CAPL is as below:

 

3.JPG

 

the diagram of LabVIEW is as below:

 

1-1.png

then I run the VI. the result at the front pannel of that VI is as below :

 

2.JPG

 

the CALL return value is very very strange , is seems I reached a random address .

 

but the write windows of CANoe is correct , it shows like below:

 

4.JPG

 

it indicates two things:

 

a、function TEST130 can properly call function TEST128 , CAPL in CAPL, the return value is OK.

b、function TEST130 caculated correct value , but didnot return to LabVIEW.

 

what is wrong ? what shall I do ? I observed almost all CANoe's HELP,but can not find any instruction . 

 

thank you.

0 Kudos
Message 1 of 4
(1,115 Views)

It's been a while since last time I did the interaction between LabVIEW and CANoe/CANape.

 

Could you share the labview code in LabVIEW version LV20.

0 Kudos
Message 2 of 4
(1,074 Views)

thank you, I have solved the problem, Vector mailed me an example.

0 Kudos
Message 3 of 4
(1,055 Views)

Hello, could you be so kind as to help me and understand why I can't access the function, could you send me an example of how you register yourself in labview and then call a function when you are in measurement. If you have something vector sent to you and you share it I would appreciate it.

I await your news, thanks in advance.

0 Kudos
Message 4 of 4
(942 Views)