Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN1 port data not sent

Hi

 

I am trying to test the existing NI-PCMCIA CAN card low speed 2-port, in this manner.

 

I have connected the NI-PCMCIA can card on the PCI slot and i am also  using another kavser leaf USB CAN dongle(single port), i have interfaced

a female-female-Dsub 9pin connector between the CAN-port1(NI can card) and Kvaser USB Dongle.

 

In my  MAX panel the NI can card is detected and is alright.

 

I am executing a example VI i,e CAN-transmit-perodic.vi, on the other side i have the Kavser can king application open and trying to 

see the data in the  execution window.

 

I have not changed any parameters in the transmit-perodic.vi 125K is default baud rate, only i choos ethe can interface as "CAN1".

I am choosing the baudrate as 125k in Kvaser application to.

 

I am not able to see successfully the data transmitted by NI can card.

 

I would like to know where, i have gone wrong & do let me know the right metod of acheving this.

 

Have a look at the screen shot, where the  output window is blank

 

Regards

 

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

Hello raghavendra,

 

It looks like your Kvaser dongle is set to HS (High Speed) CAN.  You will need to set it to Low Speed if you want to communicate to Low Speed transceivers on the PCMCIA side.

 

If your PCMCIA transceivers are actually High Speed, then your problem is most likely termination.  You will need to add a 120 Ohm termination resistor between the CAN_H and CAN_L lines on your cable...which makes me think of something else...are you sure that the CAN_H and CAN_L lines are on PIN 2 and Pin 7 on the Kvaser module?

O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 6
(7,502 Views)

Hi Proulx,

 

Thank you for the support, i am able to finish the excerise. I need some information

is it possible to communicate to a UUT based on  CANopen, thru labview without the

CANopen library. what i mean is just use the existing CAN library and communicate to the

UUT(CAN open based).

 

Regards

 

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

Hi,

 

You could implement the CANopen protocol in LabVIEW yourself, or implement a subset of the protocol.

 

But why reinvent the wheel 🙂

Message Edited by O_Proulx on 05-11-2010 05:06 PM
O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 4 of 6
(7,475 Views)

Hi Proulx.

 

 

Its just some time constraints, as we have an lowspeed PCMCIA-NI CAN CARD-2port

just trying to use the existing resource.

 

is there any sample program of CanOpen implemented in CAN...just initalisze and send a message(start node operation) to the device.

if yes, could just share it.

 

Regards

rags

0 Kudos
Message 5 of 6
(7,467 Views)
You could always look at this...
O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 6 of 6
(7,455 Views)