10-11-2011 05:37 AM
I am receiving binary data through a UDP port. I'm reading a column of a spreadsheet and I want to extract the consecutive row everytime a further 4 bytes of data is received. I will use the contents of the spreadhseet cell as a condition to format the binary data. I guess i need to count the bytes of data passed then reset the counter every time it reaches 4. Every time the counter resets the index array contant need to increment by 1...but i don't know how to do this. Can anyone help?
Thanks
10-11-2011 06:45 AM
You don't have to reset the count of bytes. What you can do is to divide the counter by 4, get the remainder using the Quotient & Remainder node and when that outputs zero, incrememnt the array count by 1. Post of an example of what you accomplish (make this a isolated test code) and we can help you from there.
10-11-2011 06:45 AM
Hi!
You need a shiftregister that stores the array index value. Then just increment if you get a reset.
10-11-2011 09:21 AM
I tried as you said, it seems to be partially working but there seems to be a problem with the timing. The index increments in steps of one but not quickly enough. The data type sent to the selector terminal does not seem to be in sync with the binary data as my data does not update as i expect. Any ideas how to fix this problem?
vi attached...