Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Channel API error code

Hi,

 

I have been using the Frame API for CAN communication and now I am working on making a simpler application which will utilize a database file that I will specify in MAX.  The database file only consists of messages that my LabVIEW application will write to the device and does not contain the messages that the device will send to my LabVIEW application.  I tried to run a write command to see if data is actually being written and an error came up pointing me to the nicanErr.txt file and said that I should talk to someone at NI to work through this problem.  Attached is the vi, the .ncd file, and the text file.  Can someone tell me what I am doing wrong?

 

 

Thanks,

Gary

0 Kudos
Message 1 of 6
(7,070 Views)

Hello,

 

Can you tell me what hardware you are using.

 

Have you tried opening a CAN message test panel (see attached image)

 

I will have to get back to you on the cause of the error and any follow up suggestions.

 

Thank you. 

 

Christian A
National Instruments
Applications Engineer
0 Kudos
Message 2 of 6
(7,061 Views)

I am using a NI 2 port pcmcia card.  I also have a 2 port pci card, but i am using it for testing and am running it with the application I developed for the Frame API.

 

When i opened MAX I expanded a message in the CAN Channels section and then clicked on one of the Channels.  I clicked the  Test Panel and and it gave me an error for reading.  For writing, it seemed to work.   A screen shot of the error is attached.

0 Kudos
Message 3 of 6
(7,059 Views)

Hello,

 

I changed a few things on your vi.

Please try this vi and also upgrade your CAN drivers to version 2.6

 

Thank you. 

Christian A
National Instruments
Applications Engineer
0 Kudos
Message 4 of 6
(7,052 Views)

I have LabVIEW 8.2 so this file will not open.  Here within the last hour after restarting my computer, the program is no longer giving me the error.  Now i am using a logic analyzer to see the output from the Write command.  I can see the data that is coming out, I just need to work on how to send data with this API.

 

What did you change to the file?  Can I upgrade to CAN 2.6 on the website?  The cards we just bought came with the 2.5.2 CD.

0 Kudos
Message 5 of 6
(7,050 Views)

Hello,

 

Sorry about that, I have attached the file as an 8.2 file.

 

You can navigate to the NI-CAN 2.6 drivers page .  You will have to be logged in to your NI profile.

In the readme you should find that your PCMCIA CAN device is supported by the driver version.

 

Let me know how this goes.

Thank you. 

Christian A
National Instruments
Applications Engineer
0 Kudos
Message 6 of 6
(7,047 Views)