03-16-2008 09:51 PM
03-17-2008 08:19 AM
03-17-2008 09:07 AM
Hi Dustin,
The CAN I/O node has a timeouty for waiting on a frame to arrive. This timeout is typically 10 seconds. When this timeout happens the node executes and receives an empty frame. You have to take care to handle these timeouts by using a case for the timeout error and one case for a regular frame. See the examples for details.
If this is not the reason for your problem, please post your code, so i could have a look to it.
03-17-2008 09:29 AM
03-18-2008 08:37 AM
Hi,
I would need to see your FPGA VI to make any suggestions. Your RT VI is far to complex and has to many missing parts to debug it. I hope you wrote this code and understand how it works, because you have to debug it.
I would start with isolating the CAN part into a single VI, so you can debug the CAN traffic more effective. Then try to send a FRAME you know with a rate you know and debug the data flow within your RT environment.
DirkW
03-19-2008 08:55 AM
03-20-2008 12:15 PM
I agree if the data really changes in your frames and you receive the same data all the time, there is something wrong. But since the module and the driver are running ok with other customers, i would suspect your setup or FPGA code to be the problem.
Does the ID and number of bytes indicator show the correct values? Have you checked the baud rate to be the same with the transmitter? Did you know that the second port needs external power in order to work at all?
DirkW
03-26-2008 11:56 AM
After messing around with it and getting nowhere, I tried
Port 1, and it started to work for a few minutes then quit.
So then I decided that it must be bad hardware. So I opened it up to see if
there were any glaring issues and I found what look like to be manufacturing
defects. See photo.
I ordered a new board and it's currently working like it should.
But this brings up another question. There does not appear to be any examples
of how to synchronize can data with other data such as analog inputs.
I know there is a timestamp, and theoretically I could somehow match timestamps on the fly, but there has to be a better way.
Thanks
Dustin
03-31-2008 03:58 PM
04-01-2008 08:32 AM