Psyfusion Posted March 17, 2008 Report Share Posted March 17, 2008 Hi! I'm relatively new to labview! I have to make a 2d array from a binary streem input(from serial port). The task would be to build a 2d array, in a way, that data from the port is written into a column until 0 value is read then into the next column until 0 and so on.(so basically streamed data between 0 valued bytes would form a column.) Approx. 650 rows and 270 columns would be needed! Please help me if you can! My greatest problem is with building an array with indexing based on a condition! Thanx! Quote Link to comment
Norm Kirchner Posted March 18, 2008 Report Share Posted March 18, 2008 Well I'm sure others will fill in the remaining gaps in your question, but to answer your last question. Use the Initialize array function to make blank array of the size you want and then use the replace element array function to put the element in the precise spot you want it. Quote Link to comment
Raymond Law Posted March 18, 2008 Report Share Posted March 18, 2008 Hi there, I assumed you will read in the whole stream in one go first. Then you may try this: If you sure your stream will end with a zero value, you may remove the zero padding. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.