10-06-2008 03:33 PM
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
10-07-2008 09:56 AM
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.
10-07-2008 10:29 AM
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.
10-07-2008 02:39 PM
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.
10-07-2008 02:44 PM
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.
10-07-2008
03:11 PM
- last edited on
12-13-2024
06:40 PM
by
Content Cleaner
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.