NI Home > Community > NI Discussion Forums

Automotive and Embedded Networks

Showing results for 
Search instead for 
Do you mean 
Reply
Member
Youssef89
Posts: 8
0 Kudos

how can i sniff the cancasexl traffic on labview?

Hi, For my last year project i need to observe the data traffic passing through the cancasexl, someone can help me or give me an idea? thank you.
Member
Kyle_M
Posts: 197
0 Kudos

Re: how can i sniff the cancasexl traffic on labview?

Youssef89,

 

I did a bit of digging here, and it sounds like VECTOR makes a CANcaseXL labview driver, but unfortunately it is not free. It also seems like They also have a free .NET library, which you could call into in LabVIEW, but it sounds like its a bit tedious, based on a few other threads such as this. That said, most of those forums were pretty old, so I would suggest contacting VECTOR to see what their options look like now.

 

 

Regards,

Kyle M.
Applications Engineering
National Instruments
Member
Vincent_Gh
Posts: 18
0 Kudos

Re: how can i sniff the cancasexl traffic on labview?

Are you trying to monitor the CAN traffic, CAN messages on the bus? Do you have the VECTOR CANoe app also?

You could call CANoe from Labview...

What more exactly are you trying to achieve?

 

Vincent

Member
Youssef89
Posts: 8
0 Kudos

Re: how can i sniff the cancasexl traffic on labview?

In fact there is another application running on parallel with labview to send the testing frames to the dashboard of a car.
I would like to get the passed frames using labview, than compare the frames to the data base to identify what kind of tests was done on the dashboard.

 

Member
Kyle_M
Posts: 197
0 Kudos

Re: how can i sniff the cancasexl traffic on labview?

[ Edited ]

Youssef89,

 

If you are trying to interface with a CAN bus to read an OBDII port, you should be able to do everything you need in LabVIEW with a simple CAN device (either NI-XNET or NI-CAN)  and a CAN-OBD-II connector. we then offer full APIs for talking to the bus. You can send and receive any frames or signals you could need from there through LabVIEW. The simplest setup would probably be a USB 8473 with a CAN-OBD-II connector cable. Would that be a viable option? It would circumnavigate needing to used the Vector CAN libraries altogether. 

 

Regards,

Kyle M.
Applications Engineering
National Instruments
Member
schrotti
Posts: 5
0 Kudos

Re: how can i sniff the cancasexl traffic on labview?

Active Participant
TroyK
Posts: 438
0 Kudos

Re: how can i sniff the cancasexl traffic on labview?

I realise this thread is quite old now but anyone searching may be interested...

 

There is now a reasonably complete wrapper library for the vxlapi.dll uploaded to the NI Developer Community.

You may wish to have a look at it if you're developing for the Vector XL hardware.

 

https://decibel.ni.com/content/docs/DOC-30180

Troy
CLD
Each snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
Beware of the man who won't be bothered with details. - William Feather
The greatest of faults is to be conscious of none. - Thomas Carlyle
Member
Reno87
Posts: 5
0 Kudos

Receive LIN frame with CANcaseXL vxlapi.dll

Hello,

 

The tutorial to receive LIN frame works well for my application. I can "listen" communication between the master and the slave with my CANcaseXL.

But now I want to create a "master mode" in which I can send frame to my slave and read the answer.

Does anyone have an example to work in "master mode" with the CANcaseXL?

 

Renaud

 

Active Participant
TroyK
Posts: 438
0 Kudos

Re: Receive LIN frame with CANcaseXL vxlapi.dll

The zip file in the NI Communities document mentioned above now contains an example VI that simulates a LIN Network with a master node and a configurable number of responding slave nodes.

I wrote it a long time ago to simulate heavy LIN traffic.

 

It is not as simple as the other included examples but it does show how to simulate a LIN Master node using the the vxlapi.

Troy
CLD
Each snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
Beware of the man who won't be bothered with details. - William Feather
The greatest of faults is to be conscious of none. - Thomas Carlyle