08-20-2014 06:11 PM - edited 08-20-2014 06:33 PM
I want to replace my CANCASEXL with Arduino to Monitor all CAN Signals.
From your link it sounds technically possible but certainly not simple.
As much as I would like to have played around with an Arduino I simply have no time.
This is outside my area of expertise.
12-04-2014 03:57 PM
Troy,
I've recently downloaded the VXLAPI VIs and am trying to create VIs to transmit and receive CAN messages. I was able to create the transmit portion successfully. However, the receive seems to be harder to achieve. I know there are message on the bus as I am monitoring the CAN communication elsewhere, but the tagdata array in the LV program is empty except for a "1" in index 4. I don't understand what I'm doing wrong and I would appreciate some help to figure this out.
currently, my project is larger than the 6 MB size restriction, so I split it into two posts. In this post I have attached my project and most of the VIs included. In the next post will be a large library that houses a lot of the VIs I used as a template to create a custom device based on these VIs. Once both zip files are extracted, just place the J1939 folder inside the Vector folder and the project should be happy. The VI to look at would be the "Receive.VI" in the project.
Thanks
12-04-2014 03:58 PM
J1939 Zip file.
12-04-2014 04:16 PM
I don't have any XNET libraries or Veristand installed so I can only partially load your code.
Are you sure the xlEvents you are receiving are CAN type events?
It looks to me like you are setting the acceptance filter to not let through any messages.
The acceptance filter should start fully open, if you want to only receive a specific range of messages then set it to filter all but those messages.
Try this in your init.vi...
12-05-2014 09:04 AM
I actually got it working before I got this reply, we had a problem with the Vector box we were using. Once I fixed that, I was recieving messages just fine. So after it was fixed I tried doing what you suggested and I didn't see any change in the data I was receiving. That Init VI was taken directly from the Transmit Example VI that was in the .zip file I downloaded from you. Is there a reason those acceptance VIs were in that example and what difference would they make to my VI with and without them?
12-07-2014 03:48 PM
The transmit example didn't account for receive functions, but I made a mistake in my last post.
Setting 'code' = 0x00000000 usually means no CAN massages will get through the filter, but I forgot that setting 'mask' = 0x00000000 means all code bits are irrelevant.
Sorry for the confusion. Glad you got it working.
03-12-2015 07:58 PM
Hi Munna,
I was recently made aware of this Arduino add-on that seems to do what you want.
http://www.seeedstudio.com/wiki/CAN-BUS_Shield
Troy
03-15-2015 08:31 PM
Hi TroyK,
Thanks for your information.
Long back I checked this. Now I’m not working on this.
Some more information about this,
https://www.labviewmakerhub.com/forums/viewtopic.php?f=12&t=220&hilit=CAN+Shield+CAN+network
01-09-2024 05:38 PM
Can you please post in LV2011?