Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Can not read CAN signal

I am officially admitting defeat.  I am in the process of taking Intermediate I and II, and I have asked my instructor if he could help out, but he admittily is not a CAN expert.  
 
I am including my program for reference and I hope that one of you skilled readers can give me some pointers on what I am doing wrong.  Here is soem basics on how I would like my program to work.  I have looked at several examples and kind of had things working.  My program does write the CAN message, but the problem is with the read.  I would like to display only the 8 bytes of data, adn only display if they are something other than all zero's.  Which is why I included the greater than zero, and search 1-D aray for true value going into a case structure.  I also thought it would be nice to have a small history of the values so my instructor helped me with the shift register and build arrays.  Lastly, I have included serveral read indicators at various places around the program just to see if I can get anything to coem out on them.  
 
I did mess around with some other options and did manage to get something read and displayed once, but after that I was getting erros with my read que being filled.  In any case, I only got it to work once and then had to go back to the drawing board.
 
I thank you for your time reading my post and appreciate any and all help.
0 Kudos
Message 1 of 2
(3,556 Views)
Hello,

Could you tell me what the exact error is that you are getting? I think your array calculations are taking up time, and the queue gets full before you can read out the data. If you strip down the VI to just writing and reading frames, do you still get the error? Also, when you press the "write" button, to change it to true, do you change it back to false, since your reads are done in the false case. If you don't, then the read is probably never getting called, hence the error. I'll also suggest trying an example. I found a devzone example here. Hope this helps. Thanks!

Regards
Ebele O.
National Instruments
0 Kudos
Message 2 of 2
(3,534 Views)