11-04-2015 12:25 AM
Hi, so I am trying to split my byte into 4096 in the for loop. The data size is 117824, but the substring doesnt print out all my data(it only prints out some of the data), however my substring2 will print out the whole hex code is I set the offset from 0 to 117823. Why is this happening?
Solved! Go to Solution.
11-04-2015 01:21 AM - edited 11-04-2015 01:48 AM
As expected, substring shows only the data of the current iteration of the loop. Connect the wire to the right border of the for loop to build an array.
Your code could be simplyfied like this :
In your current code, the last elements (incomplete block) are ignored.
11-04-2015 01:32 AM - edited 11-04-2015 01:53 AM
like JB mentioned.
The substring indicator only shows the value of the last iteration.
I attached you a small vi which simplyfied the requirements in the for loop
11-04-2015 04:48 AM
Or another way of doing it
Craig