03-31-2006 11:27 AM
03-31-2006 11:35 AM - edited 03-31-2006 11:35 AM
Message Edited by smercurio_fc on 03-31-200611:36 AM
03-31-2006 11:37 AM
Hello,
If you wire the 1024-point array from within your For Loop to the loop border, then you will get a 2D array output from the loop containing all your data points...but it will be a 13x1024 array, and it sounds like you need a 1024x13 array. You can transpose the array with the Transpose 2D Array function in the Array palette.
I hope this helps...if you still have questions, post a sample VI demonstrating the problem you're having.
-D
03-31-2006 11:42 AM - edited 03-31-2006 11:42 AM
Update pic:
Message Edited by smercurio_fc on 03-31-200611:44 AM
03-31-2006 11:45 AM
srry guys, here is the attachment, maybe that will help!
03-31-2006 11:57 AM
Ah, the ol' dynamic datatype...now I see why you were having problems. It looks like you're on the right track with the "From DDT" function you dropped on the diagram. You have it correctly configured to convert to a 1D array of scalars...just build that array up on the For Loop border, then use a Transpose 2D Array function outside the loop to switch around the row/column dimensions, as shown in the previous screenshot.
Good luck,
-D
03-31-2006 12:05 PM
Now it just keeps on putting the same data of each 13 loops behind each other...
This is so irritating, espacially when it's a school project and it has to be finished at monday!
could you please check my vi again?:$
i feel so a noob right now
03-31-2006 12:07 PM
03-31-2006 12:27 PM
03-31-2006 12:58 PM - edited 03-31-2006 12:58 PM
Ok, it looks like your array actually contains just a scalar value (in my first glance at your code I thought it contained an array of values). Here is a simple screenshot of the sequence of steps you would take regarding your two For Loops to generate the data the way you want:
The Transpose 2D Array needs to be done outside the main loop to get the dimensions the way you want them. Also, the previous suggestion of doing the File I/O outside the main loop is a good idea, it will make your code faster.
Good luck,
-D
Message Edited by Darren on 03-31-200612:58 PM