Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Problems

Hello,
I'm trying to learn more about CAN, and is now trying to understand the basics of building a CAN project in LabVIEW. To do this, I need to get the examples working, but they don't.
 

I've already read most of the threads in the forum and most of the user guides as well. I bought one USB-CAN and one cRIO-CAN (NI USB-8473s, NI 9853), and the only example that works is the Can Receive.vi (for USB). But I need a project that uses the Frame to Channel Conversion Library. So I downloaded 1.0.2 version first, and followed the instructions and tried the , but it wouldn't work.  Then I found a thread that had the same problems, but solved it by upgrading to version 1.0.3. I did this, installed it by a few steps:

1I copied the frchconvlib and frchconvlib.out in system32.
2. I copied the API.llb and frchconlib.mnu to LabVIEW 8.6/user.lib.
3. I copied the contents of the Remote Target Support folder to the RT Images folder and installed this in MAX.
 After I had done this I made a new FPGA Project, and put all the files from VxWorksBasicInputOutput.lvproj to this project and followed these steps:

0 Kudos
Message 1 of 2
(6,502 Views)

1. I'm using an own dbc.-file, and sends can frames from a CANcaseXL (vector) to the cRIO, CAN 0.

2. I imported the CAN-file to CAN Channels in MAX. The file contains a great amount of channels. After this I right-clicked CAN channels and used "send to RT".

3. I used the CAN Channel Data Import and selected the DBC-file, using the path control. I selected one channel, and pressed Retrun Selected Messages.

4. In the host program (I complied the FPGA program first, of course) I select the bin-file that was created from the previous step, and run the program.

5. Nothing happens. I've tried o great amount of examples, but none of them will work (except the example I mentioned before). What am I doing wrong?

 

 

 

Best regards, Tim

0 Kudos
Message 2 of 2
(6,501 Views)