07-07-2008 08:29 PM
07-07-2008 09:00 PM
When you want to make a three dimensional array, I think, you need to make sure that the number of rows and columns in each page is same (or else blank data will be added based on the biggest row / column).
This is just my thinking (pardon me if i didnt get ur intention well): You could probably arrange each motor data in a single column and put them together as a 2D array. I belive you can still achieve using one index for all motors (for row only). The column index will be depending on the motor number. Here also you need to make sure that all motor has same number of data.
07-07-2008 09:21 PM
07-07-2008 10:27 PM
Hi Marko,
You can have a 3D array with all the 3 dimensions as unequal. It is like the shorter rows & columns will be filled with empty elements upto the maximum size of the row or column in the entire array. This has been already mentioned in the previous reply.
If this is not what you need, please tell us more of your exact requirement.
07-07-2008 10:32 PM
Deepu wrote:
When you want to make a three dimensional array, I think, you need to make sure that the number of rows and columns in each page is same (or else blank data will be added based on the biggest row / column).
07-07-2008 10:38 PM
Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner
07-07-2008 10:41 PM
Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner
07-07-2008 11:30 PM
Since we know the size of the array from the beginning, it would be better NOT to built an array in loops, one row at a time.
One way would be to allocate the 60x3 array feeding into the shift register and then use "replace array subset inside the inner loop and do things "in place".
Alternatively, you could also use autoindexing and reshape to the final size at the end. (see attached quick modification).
(Of course the while loop needs a wait.)
07-08-2008 11:02 AM
07-08-2008 01:40 PM