RXErr using PCAN-View

USB to CAN Interface
Post Reply
sandeep156
Posts: 5
Joined: Thu 9. Jul 2015, 22:52

RXErr using PCAN-View

Post by sandeep156 » Thu 9. Jul 2015, 23:01

Hello,

I have a device which constantly sends PDOs through the PCAN-USB to the laptop (PCAN-VIEW) every 64ms once I activate it. I could see the data on PCAN-VIEW just fine before I started using the PCAN Basic Labview VIs. However, after meddling around with the LabVIEW VIs to see if I can send and receive some messages through LabVIEW, I am not able to receive the data I used to receive on PCAN-View anymore.

The errors that I see are

Form Error, RX, CRC delimiter, RxErr = 1, TXErr=0
Form Error, RX, Error Delimiter, RXErr = 2, TXErr = 0

And the RXerr increases until it hits 128.

So I tried to connect my device to another laptop and was able to see the data as expected on PCAN VIEW. I have not done any LabVIEW work on this other laptop.

So I have clearly done something on LabVIEW to cause this. I have tried reset and uninitialize VIs on LabVIEW to see if it would solve the issue. However it did not.

Can I get some suggestions on what to try next?

Thanks,
Sandeep

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: RXErr using PCAN-View

Post by M.Maidhof » Fri 10. Jul 2015, 09:56

Hi,

please check used CAN baudrate of your LabView application.

regards

Michael

sandeep156
Posts: 5
Joined: Thu 9. Jul 2015, 22:52

Re: RXErr using PCAN-View

Post by sandeep156 » Fri 10. Jul 2015, 16:28

Hey Michael

I set the baudrate in my LabVIEW application to be 50kbits/s which is what I need it to be. I did the same when I reverted to using just PCAN-VIEW.

Do you see any other possible issue?

Thanks,
Sandeep

sandeep156
Posts: 5
Joined: Thu 9. Jul 2015, 22:52

Re: RXErr using PCAN-View

Post by sandeep156 » Fri 10. Jul 2015, 16:35

Also, I guess my main issue here is, when I move out of LabVIEW i.e. unitialize and close out the connection, shouldn't I be able to set the parameters I want on PCAN-VIEW and establish communication with my device?

So, am I maybe missing a step here?

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: RXErr using PCAN-View

Post by M.Maidhof » Mon 13. Jul 2015, 14:40

Hi,

yes, after uninitialisation, you should be able to set the baudrate parameters in PCAN-View again.

About your main problem: do you have termination resistors in your CAN cable?

regards

Michael

sandeep156
Posts: 5
Joined: Thu 9. Jul 2015, 22:52

Re: RXErr using PCAN-View

Post by sandeep156 » Wed 15. Jul 2015, 23:20

Hey Michael,

I just found out the problem today.. It was a blunder on my part. While I had the right baud rate on labview (500k) I had the wrong one on PCAN-View (50k)

I apologize for having taken up your time.

And yes, there is termination.

Regards,
Sandeep

Post Reply