I have read 118 files (from a directory) each with 2088 data and put them into a 2 D array with 2cols and 246384row, I want to have aeach file on a separate columns with 2088 rows

I have read 118 files from a directory using the list.vi. Each file has 2 cols with 2088rows. Now I have the data in a 2 D array with 2cols and 246384rows (118files * 2088rows). However I want to put each file in the same array but each file in separate columns. then I would have 236 columns (2cols for each of the 118 files) by 2088 rows. thank you very much in advance.

Hiya,
here's a couple of .vi's that might help out. I've taken a minimum manipulation approach by using replace array subset, and I'm not bothering to strip out the 1D array before inserting it. Instead I flip the array of filenames, and from this fill in the end 2-D array from the right, overwriting the column that will eventually become the "X" data values (same for each file) and appear on the right.
The second .vi is a sub.vi I posted elsewhere on the discussion group to get the number of lines in a file. If you're sure that you know the number of data points is always going to be 2088, then replace this sub vi with a constant to speed up the program. (by about 2 seconds!)
I've also updated the .vi to work as a sub.vi if you wa
nt it to, complete with error handling.
Hope this helps.
S.
// it takes almost no time to rate an answer
Attachments:
read_files_updated.vi ‏81 KB
Num_Lines_in_File.vi ‏62 KB

Similar Messages

  • Has anyone got a script to read a list of email addresses from a Mail message and put them into a group in Contacts?

    Has anyone got a script to read a list of email addresses from a Mail message header and put them into a group in Contacts?

    Now Tony, I know you can't hear my tone on a forum post but I was not complaining, simply stating facts . This change brought several people in my office to a grinding halt in a long established workflow that is really rather simple (and I thought was already assumed from the original post above ):
    1) Select a set of records in FileMaker Pro 12 and export only their e-mail addresses as a CSV file.
    2) Open that CSV file in Excel.
    3) Copy the column of e-mail address.
    4) paste into the appropriate recipient field in Mail.
    5) Send
    If I were to complain it would be about Apple's typically opaque approach to updates. There is no granular explanation of why changes were made or even "what" changes were made.
    Complaining is futile since Apple is Apple and is unlikely to change, but sometimes it is cathartic to "shout into the void" .
    I had thought about doing something with a formula in Excel and your suggestion was simple and helpful. Again, however, it is only a workaround for a long established helpful behavior that Apple has inexplicably broken/removed in Mavericks Mail.
    I, and the other posters here, would love to have the capability back rather than have to add previously unneeded steps to our workflows.
    Ultimately we may add scripting steps to the FileMaker side to export the address lists with commas inserted already if Apple ends up having permanently removed this feature.

  • I removed from my computer macbook, mac app store, and now I want to reinstall with "software update" but doesn´t appareance

    I removed from my computer macbook, mac app store, and now I want to reinstall with "software update" but doesn´t appareance

    Hola, buen dia, Ignacio. Saludos desde México.
    To get the Mac App Store back you will need to manually download and install the Mac OS X 10.6.7 Update Combo;
    http://support.apple.com/kb/DL1361
    It is safe to install this over your current installation of 10.6.7. It will reinstall the Mac App Store, as well as fill in any gaps that your installation my have. It is a common troubleshooting step.
    Ciao

  • HT204408 Can I delete files in "All My Files" under Finder and Favorites without deleting them in the actual folders?  If they will be deleted from the original folders then how do I put them on the external hard drive to save the documents, photos, and v

    Can I delete files in "All My Files" under Finder and Favorites without deleting them in the actual folders?  If they will be deleted from the original folders then how do I put them on the external hard drive to save the documents, photos, and videos?

    Switch to the Finder app and open its preferences.
    Remove the check mark on the items you don't want displayed in the Sidebar tab.
    The originals are not removed from the machine.

  • Is it possible to access a single Lightroom catalogue mounted on a shared drive from multiple computers, each with an individual Lightroom install?

    Is it possible to access a single Lightroom catalogue mounted on a shared drive from multiple computers, each with an individual Lightroom install?
    Thanks.
    Steve Greenberg

    No, Lightroom catalogs cannot be on a networked (shared) drive, and they do not support simultaneous multi-user access

  • When I download firefox, using recommended setting, or my own, all the sub files/folders like plugins, modules, updater end up on the desktop as well as in the file location. And when I try to put them into the file location, they don't. And when I delete

    When I download firefox, using recommended setting, or my own, all the sub files/folders like plugins, modules, updater end up on the desktop as well as in the file location. And when I try to put them into the file location, they don't. And when I delete them, FireFox won't open. I tried deleting FireFox and reinstalling it multiple times, and a message pops up sometimes that says FireFox may not have installed correctly, so I follow the steps, but all the extra icons on my desktop don't go away. This has happened every time I have downloaded FireFox. The browser itself works, but I need to know how to get rid of these icons, but still be able to use FireFox. This is on a new computer, with Windows 7.
    == I downloaded FireFox. ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

    Managed to solve this myself. Just went to properties > hidden.

  • I have photos on my iphone 4 that i'm trying to transfer to iphoto.  The problem is when I plug the phone in, it only wants to transfer the new photos, not all.  How can I take all the photos off my phone and put them into iphoto?

    I have photos on my iphone 4 that i'm trying to transfer to iphoto.  The problem is when I plug the phone in, it only wants to transfer the new photos, not all.  How can I take all the photos off my phone and put them into iphoto? Even if there are duplicates, I'd like to make sure I get all the photos from my phone into iphoto.  Thanks

    To see all the photos on the phone, including photos that have already been imported into iPhoto, deselect the "Hide Photos Already Imported" checkbox. If the camera contains photos that have already been imported into iPhoto, those photos are hidden by default.

  • I have two iphone wich are protected by two different password ! but when i woke up today ! i'v found that my two iphone ( iphone 5 et iphone 4 ) refuse my passwords of 4 numbers i have important data and i dont want to lose please help me ! thank you !

    i have two iphone wich are protected by two different password ! but when i woke up today ! i'v found that my two iphone ( iphone 5 et iphone 4 ) refuse my passwords of 4 numbers i have important data and i dont want to lose please help me ! thank you !

    If you forgot (or don't know) your passcode, restore the device from backup on the last computer it was synced with when the passcode was turned on... this will remove the passcode. If you do not have access to the last computer it was synced with, or you don't have a backup, you will have to force it into recovery mode & restore as a new device.
    See this for more info... http://support.apple.com/kb/HT1212

  • I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  The title is there but no contents.  It won't even play the playlist.  How do I get the contents of the book?

    I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  It won't even play the book, there are no contents.  How do I get the contents of the book?

    I'm guessing this is a problem unique to me as there have been no replies at all...  Thanks a bunch folks

  • I filmed several takes of the same scene for a movie. I trimmed the best clips from each take and put them into the project screen. However, I can't figure out how to make it flow seamlessly as one scene. Can someone please help me??

    I filmed several takes of the same scene for a movie. I trimmed the best clips from each take and put them into the project screen. However, I can't figure out how to make it flow seamlessly as one scene. Can someone please help me??

    1-800-676-2775  apple support   tech support 1 800 275 2273
    If your computer is on one minute before it freezes, than you have one minute to secure your serial number.
    click the apple----->click about this Mac ------> click on version----> until you see the serial number.  You may have to do this a couple of times if it freezes before you have all the numbers.  A camera might help.
    Good Luck

  • Istalling third party instruments.. i have tried to go to application support and putting them into the sampler but they are still not showing up.. can someone help me

    istalling third party instruments.. i have tried to go to application support and putting them into the sampler but they are still not showing up.. can someone help me

    Hi
    So these are EXS24 Sampler Instruments?
    If yes... the .exs Instrument files need to go in
    Library:Application Support:Logic:Sampler Instruments
    Or
    <User>:Library:Application Support:Logic:Sampler Instruments
    CCT

  • I have my iMovies in QuickTime format on an external drive. Is there anyway to show them from the external drive without putting them into iTunes?

    I havei my personal iMovies in QuickTime format on an external drive. I prefer not to have to import them into my iTunes library which is nearly 1GB already. Is there any way to play them from my MacBook Pro through Apple TV 2 without importing them into iTunes?

    Just wanted to add a little to the excellent comments from those above... I have debated on adding the content to iTunes or just accessing the content through some folder structure.
    What has worked best for me and my family:
    use VideoDrive - http://www.aroona.net/VideoDrive/Home.html to import the videos/tvshows into iTunes and make them in the correct format for my iPad/iPhone/AppleTV devices in the house. This software is cheap and excellent and make the adding of content to iTunes (i everything) easy!
    I store my videos on a usb 2tb drive and my tvshows on a different usb 2tb drive. And I swap a drive out every year or so and give old drive away to family/friends. That way my media drives are new(ish) and 1 drive is never older than 2 years.
    for media that I don't want to add to iTunes I still use AirVideo as it is an excellent piece of software. I also use AirVideo to allow me to access content on my home network over the internet.
    my "media server" is a simple 4 year old intel mac mini with 1 gig of ram best $700 I spent when I first flipped to all things mac. Family now have 2 mbp's, 2 iPads, 4 iphones and 1atv (2nd gen)
    I'm working on a document that shows how I did my setup - if you want to read more please feel free to download my preview - https://files.me.com/lee.gaupp/aq0gst
    Would enjoy feedback

  • I imported some pictures from my cameras memory card to iPhoto and now i want to transfer them back to memory card

    I just got my iMac and I just wanted to copy some pictures from my camera's memory card to my computer. turns out 'importing pictures' meant totaly removing the pictures from my memory card. How can I transfer the pictures back to my memory card?
    More info:
    I used Dynex Compact Memory Card Reader and put my memory card in it to connect to the usb plug
    I have a Canon Camera
    I am using iPhoto

    Hi.
    FYI and future reference, importing pictures does not have to mean removing them from the memory card or camera.
    When you plug in a memory card and open iPhoto to import your pictures, there will be a dialog box that opens and asks if you'd like to "Keep" the imported photos on the card, or delete them.
    Apparently you selected the option to delete them.
    In any case, in order to move them back to the card, you *should* be able to plug the card into your Dynex reader, after which the card should mount and display on the desktop. Then, open iPhoto and simply drag the photos from there and into the memory card.
    You may need to recreate the file and folder structure on the card so the camera can find the files when you wish to view them.
    I hope this is helpful.

  • Why are photos I deleted from Camera Roll re-appearing in CR when I put them into Albums from Photo Stream?

    Last night I deleted some photos from my Camera Roll (on iPhone 3GS) using cable connection to my PC. I then went to Photo Stream (the photos were, correctly, still in there) and put some of them in Albums in the Photos app. Some, but not all, have now re-appeared in Camera Roll - and, very unhelpfully, not in the order they were taken. I don't want these photos in Camera Roll but can vaguely accept and understand if the app HAS to copy the Photo Stream photos to Camera Roll if you put them in Albums and they are not in Camera Roll already but then why are there 2 photos (in different Albums) that this is not happening for?
    Any ideas/advice?

    Thanks for your comments.
    I connected the iPhone to my PC with the USB sync cable (I usually sync by Wifi) and opened the iPhone as a Windows window. Went to the relevant DCIM folder for the Camera Roll and Deleted them there. I checked on the iPhone before and after sycning that they had been deleted from Camera Roll - and they had. I only have one Camera Roll album (no chance of another album being synced).
    They remained deleted from my Camera Roll until I put the copies of the photos held in the Photo Stream album (which I purposely did not delete them from) into an album. They then appeared in my Camera Roll again. Now, if I delete them from Camera Roll again (either direct from iPhone Photo app or via USB cable) they still reappear in my Camera Roll if I put them in an album from Photo Stream. I can see it happen before my eyes as each one appears after I have selected the photos from Photo Stream, used Share to put them in an album and then go to Camera Roll - they pop up one at a time.
    It would make sense to some extent except that there are two photos (in two separate albums to the ones that are reappearing) that have definitely been deleted from the Camera Roll, have been put in their respective albums from Photo Stream but are not reappearing in Camera Roll. And, as far as I know, I did exactly the same things with them. I don't want to have the photos back in my Camera Roll but I cannot find any explanation as to why one set is appearing back in Camera Roll and these two are not.

  • How would you read in each line of data and display them to message box?

    How would you read in each line of data from the _.txt file_ and display the whole data using an information-type message box?
    I know how to display each line of the .txt file data, but I do not know how to display the whole thing.
    Here is how I did to display each line of data using the message box:
    import javax.swing.JOptionPane;          // Needed for the JOptionPane class
    import java.io.*;                         // Needed for file classes
    public class problem3
         public static void main(String[] args) throws IOException
              String filename;          // Needed to read the file
              String categories;          // Needed to read the categories
              // Get the filename.
              filename = JOptionPane.showInputDialog("Enter the filname.");
              // Open the file.
              FileReader freader = new FileReader(filename);
              BufferedReader inputFile = new BufferedReader(freader);
              // Read the categories from the file.
              categories = inputFile.readLine();
              // If a category was read, display it and
              // read the remainig categories.
              while(categories != null)
                   // Display the last category read.
                   JOptionPane.showMessageDialog(categories);
                   // Read the next category.
                   categories = inputFile.readLine();
              // Close the file.
              inputFile.close();
    }I think I need to change here:
    // If a category was read, display it and
              // read the remainig categories.
              while(categories != null)
                   // Display the last category read.
                   JOptionPane.showMessageDialog(categories);
                   // Read the next category.
                   categories = inputFile.readLine();
              }but I don't know how to.
    Could you please help me?
    Thank you.

    kyorochan wrote:
    jverd wrote:
    What is not understood about your question is which part of "read a bunch of lines and display them in a textbox" do you not understand.
    First thing's first though: You do recognize that "read a bunch of lines and display them in a textbox" has a few distinct and completely independent parts, right?I'm sorry. I'm not good at English, so I do not understand what you said...
    What I was trying to say is "How to display the whole lines of .txt file in single dialog box."We know that.
    Do you understand that any problem can be broken down into smaller pieces?
    Do you understand that your problem has the following pieces?
    1. Read lines from the file.
    2. Put the lines together into one String.
    3. Put the String into the message box.
    and maybe
    4. Make sure the message box contents are split into lines exactly as the file was.
    (You didn't make it clear if that last one is a requirement.)
    Do you understand that 1-4 are completely independent problems and can be solved separately from each other?
    Do you understand that you have stated that you already know how to do 1 and 3?
    Therefore, you are NOT asking "How to display the whole lines of .txt file in single dialog box." Rather, you ARE asking either #2 or #4 or both.
    If you say once more "display all the lines of the file in one dialog box," then it is clear that we are unable to communicate with you and we cannot help you.

Maybe you are looking for