Adding two 2-D Arrays to then save

I am trying to build two 2-D arrays to then save as a spreadsheet file. This process happens in while loop and I need to enable indexing when I feed the wire out. When I do this I use the build array fucntion but then it creates a 3-D array which I cannot save.

Ok. I've made an example that processes the whole file(s). Run the process file.vi, input a file pattern and select a directory of test files. Now you can click the process files button and it will produce files containing the results you wanted.
In the example I have not included the option of selecting just a segment of the files. The files are named after their origin file, the name is not put into the file itself...and finally I assume that the files always contain complete sets (you can initialize an array to hold the results instead of reusing the incoming array to avoid this dependancy...).
As you will see generating the result is quite simple, it's all done in the calculate VI. If you want to average across fil
es as well (not just data within one and the same file) it will need modifications though...If you want to be able to select a sub-section of the file the easiest way to do it is to do it prior to feeding the array to the calculate VI...the most effective though would be to modify the logic of the calculation VI slightly so that it can work on a selection directly.
If you sometimes need to be able to calculate the average and deviation of more values than the pairs, that's possible as well, but would require a modification of the calculation vi...
Mads
MTO
Attachments:
Process_files.zip ‏196 KB

Similar Messages

  • How can I open a tdms file and replace a subset of data then save that change without re-writing the entire file again?

    Hi all,
    Is it possible to open a tdms file and make a small change an an array subset then save the file without having to save the whole dataset as a different file with a new name? That is to say, is there something similar to "Save" in MS Word rather than "Save As"... I only want to change a 1D array of four data points in a file of 7M data points.
    I am not sure if this make sense? Any help is apreciated.
    Thanks,
    Jack

    You can use either one, but for your application, I would use the synchronous.  It requires far less setup.  When you open the file, set both enable asynchronous and disable buffering to FALSE to enable you to use synchronous with arbitrary data sizes.
    Attached code is LabVIEW 2011.
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    UpdateTDMS.zip ‏20 KB

  • Before 8.3 update when I saved photos they were added to my camera roll. Then I could access the photo I wanted from any app. Now when I SAVE a photo it is not added to the camera roll at all. iCloud photo is on. AND my Photo Stream is GONE entirely.

    Hi all.  Since updating my iphone 6 a couple days ago, I have discovered awful glitches in photos. When I save photos they do not get added to my camera roll. My Camera Roll and Photo Stream used to match.  I would take a photo on the camera and I would see it on my photo stream.  Yesterday, I added an edited photo to my camera roll by saving it (I thought).  But it was not there.  In the past, if I wanted a photo to post in any app, from Twitter to Facebook to Yelp, in order to retrieve it easily (if I had a lot of photos on my phone) I would sometimes text it to myself and then save it. It would be added to my camera roll. Then, when any app asked me to upload a photo, I could find it right at the beginning of my camera roll photos.  Now, when I save a photo it does not appear on my camera roll.  I discovered this yesterday when posting a Yelp review.  I found the photo I wanted to use on my camera roll and it was way back at the beginning of the camera roll.  I edited the photo.  I saved it. It did not get added to my camera roll.  So then I looked for the photo on the camera roll where I had originally found it way back at the beginning.  The edited version of the photo was gone.  Could not find my photo to upload to Yelp.  Then I discovered it was the same with every other app on the phone.
    PHOTO STREAM DISAPPEARED!   This was my main problem and primary question until I tried to resolve the issue. I saw a message on my phone that said (I thought) that I needed to connect my phone to my laptop to restore icloud backups.   So I manually connected my phone to my Mac Pro Laptop (2011)  and backed up my photos.  I made sure iCloud was turned on for photos.  I have it set to Download and Keep Originals.  It is also set to Upload to My Photo Stream. And iCloud sharing is turned on.
    WHEN I connected my phone to my computer I got a message on my phone about setting it up for personal hotspot and it would not complete the update unless I replied.  At first i did set it up, but it seemed to be an issue, so I simply let my phone and computer use my home wifi network.  I don't need the personal hotspot, but it seemed to affect the photo issue further.
    Now where I used to see Photo Stream and Camera Roll, it simply says All Photos.  I am extremely confused.  This is a mess.  Any suggestions would be much appreciated! 

    I restored it twice, once from icloud backup and then from my computer back up. I just restored again and set it up as a new iphone and now my photos are saving again. I was then able to sync apps and music from my itunes to my phone... So happy you wouldn't believe!!

  • Can't combine two PDF doc in Preview and save under different title.

    I regularly used Preview to combine two scanned pages into a single document and them save them under a different name using "Save As..." With Lion I get a unhappy run-around within Versions and can't save the combined document. I wound up placing the two files in folder and zipping it for transmission via Mail. What is the procedure under Lion with Versions, or how do I disable Versions? I can track my documents quite adequately without Versions.
    21 inch iMac with OS10.7

    See  post in this thread: https://discussions.apple.com/thread/3437156?start=0&tstart=0
    You can combine PDFs directly in Preview, but the interface is a little tricksy. 
    First open the sidebar in Preview.  If your existing PDF has only one page, there will be just that one thumbnail.
    The key is to drag new files onto this thumbnail/icon, not below it.  If you drag below it you'll just show two separate docs in the same preview window-- but if you drag on top onto it it will highlight and the two files will combine.  Then you can hit save.

  • I accidentally added two .doc files, they show in iTunes file sharing, but don't show on iPad?

    I accidentally added two .doc files by dragging and dropping into itunes, under my device, then the app tab, then file sharing for Adobe Reader, they show in iTunes file sharing window, but don't show on iPad 3, and I cannot delete them on iTunes screen? Please help!

    First, I would advise you to apply Tao philosophy to this. Given the dysfunction of most software, if this was just an accidental copy and you don't want them on iPad and they are not showing up anyway, what's the problem? Forget it. It's not worth the hassles. I'm more concerned that you have psychological issues you need to be dealing with, not this. You are making much too unnecessary work and stress for yourself.
    As for deleting them, I'm assuming you highlighted them and hit delete and it didn't work. If not, it should. Works for me. But if it doesn't, my advice is also not to worry about it, as annoying as the clutter is. It will eventually resolve itself (like when your data files corrupt or your iPad crashes, LOL. (I apologize for my cynicism but I am fed up with dysfunctional software). It's not worth the hassles of trying to figure out petty issues.
    As for me, I have the opposite, and very serious problem. I've got Reader on my iPad too. But I can't move the pdfs out of it and onto my laptop with iTunes' dysfunctional file sharing. I get the error "file cannot be copied because you do not have permission to see its contents." I have hundreds of pdfs on my iPad that I converted from web surfing with other programs that also don't work and I can't get them off the iPad for backup and to have a synced library I can access from both laptop and iPad.
    I called iTunes twice and both times they blamed it on the app, saying iTunes file sharing doesn't support third party apps and that I should call Adobe and talk them into writing the code that will work with iTunes. Yeah, right. And Reader is not the only problem. This is happening with iAnnotate and Write PDF and other apps.
    I suspect that both of us have the root problem, perhaps Apple's greedy refusal to support the apps that it sells in the app store and are quasi-integrated enough to show up in the file sharing documents list, but can't be moved or deleted; and the apps that don't bother to make their apps fully work with iTunes file sharing.
    If anyone has any solutions ......

  • Converting from spreadshet string to array and then back to spreadsheet string

    My questions is; why is the Spreadsheet string to array function creating more data than the original string had when you change the array back into a spreadsheet string. Im trying to analyze a comma delimited file using array functions since my column and row size is constant, but my data varies. Thus my reason for not using string parsing functions which would get more involved and difficult. So, however, after i convert to a 2D array of data from the comma delimited file I read from, and then I convert back to string using the Array to Spreadsheet String, I get added columns to the file, which prevents another program from receiving these files. Also, the data which I am reading is not all contiguous, it has gaps in some places for empty data. Looking at the file compared to the original after it has gone from string to array and then back to string again, looks almost identical except for the file size which got larger by 400 bytes and where the original file has empty spaces, the new file has a lot of commas added. Any idea?
    Charles

    The result you get is normal when the spreadsheet string contains rows of uneven length. Since the array rows have the same number of elements, nil values are added during the coonversion. And of course, the back to string conversion keep those added values in the string, with the associated commas.
    example : 3 x 3 array
    1,2,3
    4
    5,6,7
    is converted into
    1 2 3
    4 0 0
    5 6 7
    then back to
    1,2,3
    4,0,0
    5,6,7
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • I have added two new extension on CUCM, Directory not showing in attendant console even after resynch on CUCM and attendant cosn

    I have added two new extension on CUCM, Directory not showing in attendant console even after resynch on CUCM and attendant cosnole
    Any idea?

    Hello,
    Can you tell us what versions of CUCM and CUxAC you are using?  Just extensions alone in CUCM will not sync to the corporate directory within the attendant console application.  You will at least have to have user's associated with those extensions and depending on your rule set within the console that should then bring those extensions into the console directory.
    Thanks,
    Tony

  • How to open a file, process it with different runnables and then save it

    Hi,
    I want to read an image file, then process it using different runnable classes and then save the output in a different image file.
    In which order should I put the threads? Each process has (of course) different execution time, so I need to know where to put the wait() or lock statement.
    Any idea?
    Thanks

    gmf wrote:
    Here is a diagram
    / One image analysis - image is a buffer\
    Main/                                                             \ save to one image
    \ Second image analysis - image is a buffer/Main calls the others, and all the images are buffers so there is no problem about how do they keep from stepping on each other's toes.
    Are those two separate buffers, both copied from the original image?

  • I manually added two rows in error. How do i delete them?

    Help, I manually added two rows, but cannot find out how to delete them without deleting all the responses!

    Hi;
    You can delete a single, or multiple rows in the Response Table by clicking on the row (or selecting multiple rows by clicking on the first row and then Shift+Click on the last row you want to select) and either using the right click context menu item "Delete Row/s" or clicking the arrow that appears when you mouse over the left side of the row/s and selecting "Delete Row/s" from the menu:
    Thanks,
    Josh

  • Adding to a string array

    hi,
    seem to be having some trouble adding to a string array of names
    im trying to take a name from a text field and add it to the array
    help would be much appreciated
    this is the string array
    String[] AuthorString =     {"John Grisham","Agatha Christie","Nick Coleman","Scott Sinclair"};which is loaded into
    public void fillArrayList(){
         for(int a=0; a<AuthorString.length; a++) {
         AuthorList.add((String)AuthorString[a]);
                         }i then try and add to this using
    public void AddMember(){
         String temp = (String)AuthorField.getSelectedItem();
         for(int a=0; a>AuthorList.size(); a++) {
         String temp = (String)AuhtorList.get(a);
              AuthorString .addItem(temp);
          }can anyone see any problem with this, or am i doing it the completely wrong way

    Also, your "for" loop's test condition is backwards. It should use "less than":
    a < AuthorList.size()

  • Using applet to select a part of an image and then save it

    Hi ,
    I want to use applet to select a part of an image and then save that particular selected part to a server. can anyone provide me a code for this. I have found codes on the sun site which help in uploading an image but I am having trouble in trying to select a part of the image.

    Sorry to get back to you so late, but I was away from my computer this afternoon.
    I'm not sure just what you are after. I do see that you have positioned the tree on the labels. I went to the web site for the label company, and their instructions are not too helplful.
    http://www.pixentral.com/show.php?picture=15sBkl9OZE9xSkHoLMxgwjTFv2VCg1
    I changed the white portion of 1 label to black - - this can be any color. To do this use the magic wand tool, tolerance=10 worked for me, then go to Edit>fill selection.

  • When I open a pdf file in Firefox and then save, how do I set the initial directory to be closer to what I want instead of a temp directory?

    When I choose to save a pdf file directly when using Firefox, it works perfectly. However, when I choose to open a pdf instead and then save it, the save directly displayed will always be a temp directory and it would be more convenient for me to choose a directory closer to where most of my files normally go. How do I change this?

    Hi,
    I partially answered your question in another posting but I feel that you´re in the wrong forum for your problem. This is for BSP development and you talk about CRM.

  • How to remove the sort function on the drill down and then save

    how to remove the sort function on the drill down and then save in the  change local view of the Query
    Is it possible to change the porperties of any characteristic in the local view and then save?
    If so please post the answer.

    I do not think that option is possible.
    Regards,
    Venkata Boga.

  • JPEG/PSD issue--I open a jpeg and edit it (levels, crop) and then "save as" and the save as option shows there are now levels in the image and it wants to save it as a .psd file or a copy with layers.  What am I doing that has these settings appear?

    JPEG/PSD issue--I open a jpeg and edit it (levels, crop) and then "save as" and the save as option shows there are now levels in the image and it wants to save it as a .psd file or a copy with layers.  What am I doing that has these settings appear?

    16bit? Pixels extending beyond the canvas? (from a crop with delete unused pixels turn off).  Have you previously been saving PSD files?
    IME you sometimes have to tell Photoshop that the first save of a session is JPG, and it remembers from there on.  The way to 'tell' Photoshop that JPG, or PDF, or PNG etc are now your preferred format is to Ctrl (Cmd) click on that format in the Save As drop down list.  So long as the file does not have parameters that your chosen format does not support, then this should work for you.
    [EDIT]  Just noticed that you did include 'Crop' in the subject line.  Do you have 'Delete cropped pixels' checked?

  • Need to open existing .pdf files and add footer, then save files again

    I would like to know how to go about opening a folder containing .pdf files, adding a footer to each file, then saving the file.
    I wanted to check first and see if this would be possible and if so, how to go about doing so.  Is this something that can be accomplished in a batch file?
    We are using Acrobat 5.0 to create the .pdf, but I don't know if we need a newer version to accomplish what I am looking to do.
    Thanks for any info you can give me.

    Hi,
    fwiw - Acrobat 5 (full) supported Batch Sequences.
    The "facility" was provided as an add-on available on the installation media.
    Be well...

Maybe you are looking for