How do you create a 2-d array%3F

Advertisement
How do you create and write a 2-d array??  I have two operations in the same WHILE loop.  Each execution of the loop should generate a new  pair of values.  
However, the BUILD ARRAY function only outputs a 1-d array to the WRITE TO SPREADSHEET FILE.vi. 
Perhaps, more broadly, how does one put data into a 2-d array as it is collected?  I think I am building two arrays simultaneously below, but, what I really want is to build a single 2-d array.  Is this how you would do it?  It looks clumsy connecting sequential BUILD ARRAY's together.  Is this creating a 2-d array that I can search later by index and return the paired data? 
Lastly, why does my front panel indicator only show data in the first column??  How do I make it display the data as it is collected across the rows?
Thanks,
Dave
Solved!
Go to Solution.
Attachments:
forum dec 12_2012 build 2d array.vi ‏13 KB
Advertisement

Replay

dav2010 wrote:
Sorry, very simple minded here...how do pairs go as a 1-d array?  I thought that (x,y) data must be a 2-d array...a column of "x's" and a column of "y's"?  Wouldn't a 1-d array just be all x's?  I admit I'm pretty new to understanding arrays.
" build your 1D array from both scalars"  -->  how do you do this??  I cannot find a "convert to scalar" on the pallette.
Also, here is the vi saved down to 2009, I think.
Dave
Here's a simpler way, just write out your X and Y as a 1D array each iteration. The Write will append your data as a column of X's and a column of Y's:
or generate all your values and then write once:
(fix the broken wire).
“A child of five could understand this. Send someone to fetch a child of five.”
― Groucho Marx

How do you create an array of any size(no limits).

how do you create an array of any size(no limits). this array should hold BigInteger values. BigInteger[] array = new BigInteger[100000000]; //creates new array of BigIntegers array[0] = new BigInteger("6"); //puts "6" in array[1] = Bi

How do you create a slpit screen

how do you create a split screen to use two document opened at the same time?Hi iKappa, Open the two documents and drag them by their title bars next to each other on the screen. Regards, Ian.Read other 2 answers

How can you create a swish pan in Final Cut X?

How can you create a swish pan in Final Cut X?Andy's - http://andymees.wordpress.com/swish-transitions/   How's that for service? Cheers!Read other 2 answers

How do you create a messages account the new macbook air

how do you create a messages account the new macbook airNot possible to create a new mailbox with the iPhone. If the account is an IMAP account, you can create additional server stored mailboxes with the email client used on your computer for accessi

How do you create folders in photo's

In an IPOD4 (or IPhone for that matter) how do you create folders within Photo's to segregate your pictures in to meanigfull collections, rather than just random bunches. ThanksBummer - seems like wasted effort - to move all the photo's to a computer

How do you creat a copy right symbol in aperture for your photos

How do you creat a copy right symbol in Aperture 3?You can type the copyright symbol in any Mac application using the keyboard shortcut "{Option}+{g}". © Google is a good source for answers to questions of this sort: how to type a copyright symb

How do you create new faces album in photos OS X?

How do you create new faces album in photos OS X?Right-click on any IMAGE anywhere, then follow the Get Info instructions. You can also do it on the Faces screen. At the bottom of that screen you should see a Suggested Faces bar. Double-click on one

How do you create a  table of contents on pages?

How do you create a table of contents on pages?Hi Megan .. See page 102 >   http://manuals.info.apple.com/en/pages_userguide.pdf You may want to save that PDF file. It will come in handy.Read other 2 answers

How do you create bookmarks when you create a PDF from word?

Hi All, how do you create bookmarks when you create a PDF from word, rather than having to individually copy from a pdf and create bookmarks? Adobe 8.1 full version.Thanks for the reply, I'll give it a go and will let you knowRead other 3 answers

How do you create a mail merge in Pages on Mavericks?

How do you create a mail merge in Pages on Mavericks?Yeah, this and another 100 things Apple dropped. Rate/Review Pages 5 in the App Store. PeterRead other 5 answers

How do you create aligned interactive text boxs in a PDF with the same width and height?

how do you create aligned interactive text boxs in a PDF with the same width and height? Without free hand creating the sizing?Assuming by "interactive text boxes" you mean form fields; in Acrobat, make a form field, then copy it and paste. (GIv

How do you create a layout template in photoshop elements 8

How do you create a layout template into photoshop elements 8You have to do it manually. Use the marquee tools to define the components of the template, then apply a stroke via the Edit menu. It's best to place the stroke on a separate layer, and pos

How do you create a transparent background in AE

Hi--I'm using AE CS5 on a MacBook Pro and I'm brand new to using AE. How do you create a transparent background? I need it because I'm creating a shatter effect on a photo and want to import the AE movie into FCP and have it play on one layer while b

How do you create a mixed media disc? I would like to include a slideshow/movie as well as include a .pdf of a photo book on the same disc?

How do you create a mixed media disc? I would like to include a slideshow/movie as well as include a .pdf of a photo book on the same disc. I would like the movie to play on any DVD player.Do you want the pdf available to view or just for copying fro

How do you create a folder to put same subject emails in?

How do you create a folder to put same subject emails in?Hope this helps. http://support.apple.com/kb/PH14946Read other 2 answers

How do you create a jar file in JDeveloper 11.1.2.0.0

How do you create a jar file in JDeveloper 11.1.2.0.01) Select the project for which you would like to generate the jar. 2) Right Click the selected right and select 'Project Properties' 3) Select the 'Deployment' in the left tab. 4) Click on 'New' t

How do you create a PDF document from excel???

How do you create a PDF document from excel???Hi Kwasi Debra, You might need to sign up at "https://cloud.acrobat.com/" using your Adobe ID credentials. Then, select 'Create PDF' tab and click on 'Select PDF files to export' option. Upload your

How do you create a desktop shortcut to a playlist?

How do you create a desktop shortcut to a playlist? I'd like to start iTunes and have it automatically start playing a specific playlist...how do I do that? Thanks in advancePress the Option and Command keys when dragging a file or folder to the desk

We are creating templated pdf's for Buscards? How do you create so fillable is in pms color Ripping

We are creating templated PDF's for our new web to print software.  How do you create the fillable pdf so that when ripped it will separte the pms colors?  Our designers say that the fillable text can only be in black and can't be in a pms color? Tha