07-28-2008 04:23 AM - edited 07-28-2008 04:28 AM
07-28-2008 08:31 AM
Hi,
The driver for the USB CAN product line is NI-CAN and the current version is 2.5.2. You can download it here.
There is currently no CANopen support but a basic example that shows how to start with NI-CAN, to create your own CANopen stuff.
09-04-2008 02:30 PM - edited 09-04-2008 02:32 PM
That example lists an llb file??? What the heck is that?
It appears to be a bin!
Ahhhhhhhhh! I see!
It is for LabView - relagating Lab Windows users to second class once again!
How about :
I'm looking for at least a hint on how to setup and access the NI USB CAN as compared to the NI PCMCIA CAN!
All I was told was that I'd need a newer CAN driver 2.5.2, and Lab Windows CVI verison after 7.; so I got the latest 8.5.1 and no further direction!
09-05-2008 09:38 AM
Hi Ken,
Once you download the NI-CAN driver you will have CVI examples installed that you can use to setup the device. The examples will be located at C:\Documents and Settings\All Users\Documents\National Instruments\CVI\samples\nican. Also, if you used the CANopen LabVIEW Library with PCMCIA CAN, please note that you cannot use it with USB-CAN.
Thank you,
09-05-2008 09:46 AM
Thanks for the reply,
I'm not using LabView, or anything for LabView.
I'm just using the NI CAN drivers version 2.5.2.
I've been tinkering with two examples one for Rx and another for Tx, but I couldn't find something that does both.
I was started trying to get something that would be a merge of these two, but I'm not sure it is worth the time I have to do that.
I'm thinking of stepping through each call to configure and open and other drivers calls, until I figure out the differences between PCMCIA / PCI use and the USB use.
It would be nice if this was documented somewhere.
The code I have that calls the CAN drivers for PCMCIA and PCI cards is the exact same code for both devices.
Appearantly, this will not work exactly the same for the USB device.
That is OK, I just would like to have something that either states the differences, or defines the USB interface using the CAN drivers.
09-05-2008 02:43 PM
Hi,
The CVI examples for NI-CAN have the Transmit/receive same Port example code. Thats doing Tx and Rx at the same port.
DirkW
09-05-2008 02:52 PM
I'm working with code that works for NI PCMCIA and PCI CAN devices;
the current code has ncConfig for Rx, then Tx on the same channel.
I'm trying to figure out how to get this code to work for the NI USB 8473 CAN device.
09-08-2008 08:38 AM
Well, then have a look to this KB. It describes the driver limitations for the USB 847x devices:
http://digital.ni.com/public.nsf/allkb/E1A44077DA6C819186257288006B76D7?OpenDocument
09-10-2008 04:52 PM - edited 09-10-2008 04:55 PM
OK, I'm using an NI CAN PCMCIA device, andtrying to add support for the same software using a NI USB CAN 8473;
I'm using
ncWrite and ncReadMult, which don't seem to be listed.
What I'm trying to communicate with uses an NI CAN PCMCIA and basically does this:
ncWrite(8, "65 00 00 00 00 00 00 00" )
ncWrite(8, "02 00 00 00 00 00 00 00" )
ncWrite(8, "50 00 00 00 00 00 00 00" )
ncWrite(8, "AA 00 00 00 00 00 00 00" )
ncWrite(8, "95 00 00 00 00 00 00 00" )
where the 00s are don't cares, all my target is interested in is the first byte (and no, I can't change this).
the 02 indicates a size (it can be 03, 04, ...), 2 bytes for the message"50 AA", everything else is header and footer;
When I read the response I am using:
ncWaitForStste
ncReadMult
and this gets the entire response in a single call.
What I'd like to know, is can I still use this with the 8473 to communicate with my target?
09-11-2008 09:40 AM