Discussion:
Cannot get NI-CAN to send/receive messages via LabVIEW
(too old to reply)
DirkW
2007-03-14 14:40:17 UTC
Permalink
Hi,
 
The Bus Monitor you can run from MAX does only need the correct Baudrate configured with the same Port you are running the Monitor.
The correct baudrate is the rate you are running on your connected device. If the Monitor does not receive any message, it is perhaps the wrong rate or your cable is not connecting the right pins or the termination is wrong.
The termination within your cable depends on the transceiver you are using. If it is a high speed network (both transceivers are High Speed ) you need 120 ohms between CAN_H and CAN_L on both ends of your cable.
If it is a Fault Tolerant network (both transceivers are low speed/fault tolerant) you need a cable which is not terminated at all, because the resistors are on the hardware already.
 
Besides that with the API if you run an example, there is no need to configure anything else. (nets)
 
hope that helps
 
DirkW
AnkeS
2007-03-14 15:10:11 UTC
Permalink
Mike,

Basically what you are trying to do should work.

Configuring Nets for PEAK-Can is the equivalent of configuring a NI-CAN
Network Interface  Object, except NI-CAN does not help you to
store and reuse different configurations.  In that respect I think
the PCAN Tools quite surpass the National Instruments Toolbox.


You might check the following:

- does your NI-CAN Card pass its selftest ?  (You can start that in MAX)

- have you configured your CAN port for the correct baudrate ?

- have you connected your device to the correct port -  if you use a 2 port CAN-Card CAN0 is PORT1, CAN1 is PORT2 ?  (sorry but things like that happen!)

- is the wiring OK, did you think of 120 Ohm terminating resistors? (NI Cards come without termination!)

- do you use a NI-CAN Software version compatible with your hardware ?
   We once had problems using a brandnew PCMCIA NI-CAN Card with an outdated  driver software.
   Using old hardware with new software usually works.

 
If you cannot  configure your NI-CAN system to show the frames of
your own target-box  in the monitor, I don't  think 
writing a LabVIEW application will help.

Good Luck !!
Anke

Loading...