04-18-2007 01:53 PM
04-18-2007 11:45 PM
So, here is the problem again, with .vi. So, I am reading continuously an encoder, and want to write a set of data to file by pressing a button. For this, I use a Shift register, and case statement. But it is always replacing the column instead of appending, why? I mean, I think the 'false' case is responsible for that, because of the built array, but i am not sure. Someone might help me.04-19-2007 02:55 AM
04-19-2007 09:01 AM
I don't have LV on my network PC and can't see exactly how you're writing to file. However, I'm not aware of any natural way to append *columns* to a 2D array of file data.
2D arrays are generally handled row-wise, so it's much more natural to append *rows*. You may need to pass your data through "Transpose 2D Array" before writing so that what you think of as columns will be stored on disk as append-able rows. (Of course, you'd also need to remember and reverse this transpose when you read your file.)
- Kevin P.
04-19-2007 09:04 AM
04-19-2007 09:17 AM
04-19-2007 09:32 AM
04-19-2007 10:28 AM
04-20-2007 04:35 AM