LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Canoe Event Handling in Labview

Anybody worked on handling the events of CANoe in Labview?
 
I am trying to handle the event when there is a value change in the environment variable of CANoe. CANoe provides a COM method "OnChange" but i do not know how to implement this method in Labview. This method is available in CANoe -> Application-> Environment->EnvironmentVariable-> then event OnChange.
 
Any ideas??
 
Thanks,
Suhas
0 Kudos
Message 1 of 7
(6,433 Views)
Suhas,

Unfounately NI does not have any documentation on using CANoe in LabVIEW.  Vector does provide driver software for LabVIEW.  Vector's website may also be a good resource for your question.
Mark
NI App Software R&D
0 Kudos
Message 2 of 7
(6,385 Views)
In general, you would need to use Register Event Callback to register a callback VI for an ActiveX component. There's two examples that ship with LabVIEW that show the use of this. Open the Example Finder (Help -> Find Examples), and search for "callback".
0 Kudos
Message 3 of 7
(6,381 Views)
Hello,

  I'm willing to handle the same process as you, but I did not yet success. I attached my project, and I think my problem is more Labview than CANoe. If you successed or if anyone already have done such diagram with VICallback and Event Data, please have a look, I'm really fighting without success now.....
Download All
0 Kudos
Message 4 of 7
(6,163 Views)

Hello Anthony,

Yes i have implemented this functionality after spending lot of time. Here is an attached vi which will give you some idea, how to register an event.

Regards,

Suhas

0 Kudos
Message 5 of 7
(6,135 Views)
Thanks Suhas,

  Could you please also provide me the callback vi, because with only the first file, I'm not sur to see the big picture...
 
0 Kudos
Message 6 of 7
(6,121 Views)

Hello Anthony,

Attaching the call back vi. you can write your code which need to be executed in the call back function.

Regards,

Suhas

0 Kudos
Message 7 of 7
(6,117 Views)