04-10-2015 11:14 AM
Hi,
Ive attahced my .vi file to show my current state.
I revieve CAN messsages of 8 byte in length, this message contians address and data which i'm trying to place in a 2d array, row and column respectively.
So the address and data bytes are concatonated and the 16 boolean data bits are then read and if it is true then the address is used to select the row in the array and the column is selected via i, this element is then incremented. If the boolean bit is false then nothing is done.
To me this should work but the array does not retain any data and it is not seen in the indicator array.
Can anyone show me what i'm doing incorrectly, as the array is not accessed when there are no true bits then the array should remain intact.
cheers!
04-10-2015 11:49 AM
I think you need a shift register to hold your latest numeric array. You are currently only updating values from the initial array and never updating.
05-11-2015 11:55 AM - edited 05-11-2015 11:57 AM
Hi, thanks for the tip, it worked perfectly, but only for one array, I've since tried to expand the project for multiple arrays but its stopped working.
I've attached the updated file.
All are set with shift registers and as use default unless wired, so unless the array is accessed, they shoud be passed through un-edited.
So I'm not sure why it stops working, the .csv files at the end are blank.
cheers!
05-11-2015 01:06 PM
Hello, I didnt' look at your code but I think I know the problem. If you select us default if unwired, it does not pass through the data. You need to select the tunnel and select link to input tunnel and wire to unwired cases. Then you're data will flow through. Good luck.