Is it possible to programmatically save all?

Does anyone know if there is a method available to do "save all" just like you would from the project? Or do I have to get all the VIs from the project recursively, myself? I don't see a method for it from invoke nodes wired up to a project reference. Just trying to avoid reinventing the wheel.
CLA, LabVIEW Versions 2010-2013
Solved!
Go to Solution.

Jeff·Þ·Bohrer wrote:
Makes me curious... is that BD open ?
Which BD? Also, I will be using a method to open a project reference which this VI doing the saving is not in. So, I won't have a static project reference in my code and this VI won't be saving itself using this method, since it won't be executing the save all on the project which contains it (if that's what you are getting at).
Edit: Darren suggested I load the main VI's into memory first, because this VI has no caching and tries to open each library/VI individually, save, then close. But, even when doing so this method is crawling. It takes upwards of 5 minutes to save the 700 VIs in the array. But, if I close the project and it says "you have 108 unsaved VIs" and I press save, it takes about 3 seconds to save them all. Suggestions on this?
CLA, LabVIEW Versions 2010-2013

Similar Messages

  • Programmatic execution of Save All command (ctrl-shift-s)

    I have a set of Projects, each configured with code for an RT target. I have written a VI server application to open each project, and open the front panel of the main VI for the RT target.
    Once that front panel is up, I can go to the menu bar, select File, and then select Save All. However, I need to do this programmatically. With VI server, I only see Save->Instrument, which only saves the main VI, not all the subVIs. How do I do the equivalent of Save All?
    I have tried getting the list of all opened VIs and saving them individually, and also tried the Mass Compile, but both of these take many hours to complete, whereas the manual Save All just takes a few seconds. I have also tried accessing the Windows utility USER32.DLL:keybd_event to press the ctrl-shift-s keys programmatically, but that doesn't seem to work either.
    Thank you in advance for your assistance.

    I believe the thread you linked will only save the vi's, if you have libraries or controls or other things you want to save then you might try this.
    http://lavag.org/topic/15443-scripting-project-save-all/

  • Buying a new Mac and try to save all information from iPhone in new iTunes, is it possible? how?

    Buying a new Mac and try to save all information from iPhone in new iTunes, is it possible? how?

    The easiest thing to do is transfer the library from the old computer to the new one.  Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the option (alt) key (shift on Windows) so you get a prompt to choose a library, then select the copied iTunes folder.  If this is to a new computer and you put the copied iTunes folder in the default location of Macintosh HD > Users > *User Name* > Music  then you don't even need to start with the option key held down, iTunes will automatically look for it there.  (Make sure there isn't anything already in the iTunes folder there that you want to keep since you will be replacing it with the one you are moving.)
    If you do not have access to the old library (and you always should in the form of a backup you regularly make of your computer and store on a drive in a safe place) and this phone has been synced with a different library you can backup certain items, then erase the phone and restore those items.  This will not include media not purchased from the iTunes Store.
    iOS: How to back up and restore your content - http://support.apple.com/kb/HT1766 - "Learn how to back up and restore the content on your iPhone, iPad, or iPod touch using iCloud or iTunes."
    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself independently backed up against loss.  To use a device with a new computer you transfer the content from the old computer (or its backup) directly to the new computer, not the device to the new computer. Media syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

  • HT4859 is it possible to save all my apps to icloud? how?

    is it possible to save all my apps to icloud? how?

    Yes.  You can transfer your Apps from the iPod Touch to iTunes by plugging the iPod Touch in and selecting File -> Transfer Purchases from <Name of iPod>.  This will transfer all the apps on your iPod over to your iTunes library as well as any other iTunes purchased content.
    However, you also need to back up your app data via iTunes or iCloud.  See here for instructions on how to back up your iPod Touch.
    iOS: How to back up
    And when the new/replacement iPod Touch arrives, restore it from that same backup.
    B-rock

  • Error while saving activity - it was not possible to save all objects

    Hi
    We are on ECC6 EHP4 and having just started to config EIC ERP, we have done some configuration and have referred to various SAP notes, the main note being 1052082 to set up case management.  We have managed to create an activity but on saving we get the following messages:
    Error whilce saving activity (message class HREIC_APPL - message number 246)
    Activity was saved
    It was not possible to save all objects successfully (message class CRM_BOL - message number 010)
    We are not sure how to correct this, we have searched and cannot find anything relating to these messages, I hope someone can be of assistance.
    many thanks
    Julie

    Hi Julie
    There are list of items that dont transport or need to be updated via manual configuration such as number ranges, surveys, email addresses and several others.
    Glad you figured out this one.
    Jarret

  • Error : Transaction not possible to save all objects successfully

    Hi All,
    We are facing the below error after our CRM 7.0 upgrade when we save Service ticket and IR in IC web.
    The flow is unknown, some times when we create a new ticket it comes some times when we edit existing ticket comes.
    Strange thing is we are unable to reproduce the same in our pre prod and also prod environment
    Only our agents are able to reproduce.
    Service Ticket : Error
    ! Transaction not possible to save all objects successfully.
    u221A It was not possible to save all objects successfully
    u221A The predecessor does not exist on the database.
    u221A The predecessor does not exist on the database.
    IR: Error
    Status object not available on Unkonwn object
    [The status dropdown is empty]
    Please help us with any pointers on the same.As we are not able to get to the root cause.
    Thanks
    AMol

    Hello Amol,
    You say that you upgrade your system to CRM7 that means your BADI_SAVE (or ACTIONS etc') are written with Function modules and maybe you add some new coding with BOL/GENIL.
    We had some similar problem  so we rewrite all BADIs ACTIONS PARTNER DETERMINATIONS etc' to work only with BOL/GENIL technology and it solve our problem.
    Hope it helped or at least gave you some direction.
    Good Luck
    Eli

  • I synced my iphone 5 with my computer and save all the photos to my phone through itunes. i restored my mac and lost all my photos on the mac but i still have them on my phone. how do i get them on my new mac now?

    i synced my iphone 5 with my computer and save all the photos to my phone through itunes. i restored my mac and lost all my photos on the mac but i still have them on my phone. how do i get them on my new mac now?

    how do i get them on my new mac now?
    Be careful, when you connect the iPhone to your mac, unless you have saved the photos. Synced photos may easily  be accidentally deleted by syncing again. And do not enable iCloud Photo  Library (Beta), that will erase synced photos as well.  Synced Photos are not included in the device backups.
    Set your iTunes Preferences to "Devices > Prevent iPos, iPhones, iPads from syncing automatically".  Otherwise iTunes may launch and sync your iPhone with an empty iPhoto library the moment you connect it.
    Unfortunately, it is not possible to sync the synced photos back. Apple recommends to mail them back, but that would be a lot of clicking (iTunes: Syncing photos - Apple Support). You could also share them to a Shared Album, but a third party app like TD recommended, will be better.

  • How do I save all my e-mail folders on my own hard drive? (or keep copies)

    Firefox has been putting my older e-mails in TRASH without me asking; so I want to save all my incoming e-mail ON MY HARD DRIVE locally, as backup.
    Is this possible?
    IGNORE ALL THIS - it is YAHOO!Mail I need to deal with. My Mistake - SORRY !

    hello, firefox is just a web-browser - it doesn't handle your emails at all. are you referring to the mozilla thunderbird mail-client or to a webmail provider? in the latter case please contact the support of your mail provider when you're having issues, since firefox has no way of influencing that...

  • Save all Open Files in CS4?

    Hi all,
    Looking for a script that will save all open files as a a JPG to a specific directory.  I tried using this in CS4 but it doesnt work.  It just opens the save dialog and thats it.  Want something a bit more automated:
    var tempFolder = new Folder ("C:/Your_Temporary_Folder")
    tempFolder.create();
    var DL = documents.length;
    for(a=1;a<=DL;a++){
       activeDocument = documents[a-1];
       var AD=activeDocument;
       var imgName= AD.name;
       imgName = imgName.substr(0, imgName.length -4);
       AD.flatten();
       saveFile = new File("C:/Your_Temporary_Folder/"+imgName+".jpg");
       saveOptions = new JPEGSaveOptions();
       saveOptions.embedColorProfile = true;
       saveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
       saveOptions.matte = MatteType.NONE;
       saveOptions.quality = 12;
       AD.saveAs(saveFile, saveOptions, true,Extension.LOWERCASE);
    Thanks.

    Hi guys,
    That fixed it.  The other problem was that the name length was too short:
       imgName = imgName.substr(0, imgName.length -0);
    So I corrected that as well.  Thanks for your help.
    Is it possible to add a "close without prompting to save" in the script?  So it basically saves the file then closes the window in PS without prompting me to save it again?

  • List of error to "Save all Metadata"

    Hi,
    before restart my machine, when I changed the bind of the context of a custom controller, NWDS reported the possible errors also clicking "SAVE ALL METADATA";
    after restart, to report these errors i must "Rebuild project".
    The "Rebuild" is an operation very long, someone knows how return to the previous situation ?
    thanks in advance

    Hi.
    I have two tips that might relate to what you are asking.
    1.
    When you do changes to a webdynpro project. The changes are done in xml-file and corresponding java-files are generated.
    Errors and warnings are usually derived from the generated java-files.
    In some cases when the studio is restarted or interrupted so that the generation of java-files fails, you would get inconsistency between the xml-files and the generated java-files.
    If you reload the project, all java-files are removed. It is also possible to remove all generated java-files manually (in the navigator tab) and then rebuild the project.
    2.
    NWDS or Eclipse loads all open project into memory. It's therefor advisable to have as few open projects as possible. This improves performance very much.
    However, if you close a project and then open it again, Eclipse is forced to reload the project into memory. This can solve a lot of problems when you get error of missing dependencies to generated classes.
    If you experience trubble with NWDS that you think should work, try the following:
    closing-opening the project
    reload the project
    rebuild the project
    remove all generated files (in "gen*" directories)
    Regards, Mikael

  • RoboHelp 9 crashes frequently when saving or save all

    Hello,
    I'll try to give as much information as possible on this and hopefully someone will know a solution. If you need anymore information that
    I mght have forgotten, I'll gladly supply it.
    So, the basic problem is that RoboHelp 9 frequently crashes when I do a save or save all. 4 out of 5 times it won't crash, but usually after a few
    successful saves it will crash. And it crashes even more frequently when I insert an image, usually right after I insert the image and then save.
    So, here's the deal. The Sr. Tech Writer and I are both working on a small RoboHelp project that will demo a new Web Help Center for
    our company's customer facing website. There is already a very old Web Help Center on the website that was created with an older version
    of RoboHelp, and we're seeking to update that project. This involves importing the old HTML files from the old project into RoboHelp 9, and
    updating the existing files. We have two main project files at the moment and we are working out of a shared network folder. I know normally
    that working out of a network folder would be the issue, but his project has not given him any problems at all. My project is the only one that crashes when I try to save it.
    I honestly think it has something to do with the images, because we have to use SnagIt to take new screenshots. At first, I saved the screenshots to
    the SnagIt folder, but I thought that may be causing a problem in that RoboHelp couldn't save them in that location. So, I moved all the new screenshots associated with the
    project into the project folder and saved every new screenshot into the project folder. I also amde sure that none of the images were anywhere else in the local and network drive.
    That didn't solve the issue.
    I hope this makes snese. I don't know what else to try. If anyone knows another method I could try I'd greatly appreciate it. Thank you.

    Welcome to our community
    Man, I wish I had but a single nickel for every time I've seen someone in the forums say "it has worked just fine for years on the network, so it can't possibly be that. But oh, we are suddenly having all these issues..."
    The bottom line here is that you need to move the project from the network to the local C drive. Just try it. Won't take but a few moments to do. See if the crashes disappear.
    Odds are they will!
    And you will see an additional side benefit. RoboHelp will seem so much snappier as you work with it!
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How do I "save all"

    When I try to shutdown or restart with many files open in APPLEWORKS, I am asked for each file whether I want to save it. I'm sure with an earlier Mac, there had been a "Save All" option.
    I know there is an autosave facility, but that doesn't help.
    If I didn't shut down properly, what just switched off, could I then rely on the Autosave, or would that creat other problems.
    Thanks,
    Ratrust

    Hi RR (or is it RT),
    Welcome to Apple Discussions and the AppleWorks forum.
    There isn't, and to my recollection, there never has been as "Save All" option in AppleWorks or the Mac OS. It might be possible to construct an Automator process or to write an AppleScript that would save all open documents, quit the application(s) and Shut down the computer, but that would be a topic for a different forum.
    One way of avoiding the Save/Don't save/Cancel question for each file is to make a habit of saving each document as you leave it. Press command-S before switching to another window or to another application. It's an extension of a habit I taught myself (and attempted to teach my students)—everytime you leave the keyboard, press command—S first.
    AutoSave does help, but it's function is to ensure that you have a recent copy of your document, not a current copy. Anything you changed since the last scheduled autosave will be lost.
    Even if you could rely on AutoSave to save your AppleWorks documents, an improper shutdown such as you suggest would introduce other problems for any open application and for the operating system itself. All applications do some cleaning up as they go through the quit process, whether the process is initiated by the user (through the application menu or by pressing command-Q) or by the operating system as part of the shut down process. The Mac OS also saves the current state of mounted volumes (such as your hard drive) before unmounting them, and does a number of other maintenance tasks as part of the shut down process. Although OS X goes through a self check and repair routine on startup, and can handle a shutdown through loss of power, I wouldn't make it a regular practice to shut down in that manner, even after saving everything and quitting all applications. The time you gain in the shutdown will be lost in startup as the OS finds more things in need of repair.
    Regards,
    Barry

  • How Do I Save All My Edits

    How can I save all the edits (Presets?)I made to my pics? It might come in handy to know which changes I made in the near future to maybe come back at them. I need to save the original (unedited) pics too I guess.  If possible can some1 explain how to save them as a batch since I have thousands of pics.

    Any edits should be saved automatically with the images. Open any edited picture and select the history panel and all the changes for that picture should be listed there. This data is contained with the other catalogue data.
    All edits are non destructive and the origional image is left untouched. You can verify this by openning an image from the LR catalogue in another image viewer and see that the image has not been edited. BUT if you open the edited image in LR, the edited image will be displayed.
    Your images will only be edited in LR unless you export the edited images to a new file. The new images will contain all the editting.
    If you print an edited image from LR, your edited image will be printed but if you print it with another program you wil get the origional unless you exported the edited image to a new file and rinted from the new file.
    If I need to use the edited images for a project, I export them as jpg's or psd's if using PS. These new exported images will be the edited versions of the selected images from this file even if opened with ay other image viewer.

  • Save all open images

    I didn't find this when I did a forum search, but I find it hard to believe that there isn't a feature request for this already. Photoshop needs a "Save All" feature. I've seen suggestion to just make this an action, but the problem with that is that you must continually hit the action in order to perform it. Maybe I'm just missing something but I find it odd that a photo editing program, in which it is quite possible that you could have dozens of images open at the same time has no "Save All" or "Autosave" features...still.

    If you want to give it a try paste the following text into a new file in ExtendScript Toolkit (part of Photoshop’s installation, Applications/Utilities/Adobe Utilities - CS5/ExtendScript Toolkit CS5) and save it as a jsx-file into Photoshop’s Presets/Scripts-folder.
    After restarting Photoshop the Script should be available under File > Scripts and can be assigned a Keyboard Shortcut directly, recorded into an Action, (in CS4 and CS5) be used in a Configurator-Panel or started from ExtendScript Toolkit directly.
    // save all open documents;
    // 2011, use it at your own risk;
    #target photoshop;
    if (app.documents.length > 0) {
    var theFirst = app.activeDocument;
    var theDocs = app.documents;
    // psd options for unsaved files;
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = false;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    // go through all files;
    for (var m = 0; m < theDocs.length; m++) {
         var theDoc = theDocs[m];
         app.activeDocument = theDoc;
    // getting the name and location;
         var docName = theDoc.name;
    // thanks to xbytor for the regexp;
         if (docName.indexOf(".") != -1) {var basename = docName.match(/(.*)\.[^\.]+$/)[1]}
         else {var basename = docName};
    // getting the location, if unsaved save to desktop;
         try {
              var docPath = theDoc.path;
    // save the file if unsaved;
              if (theDoc.saved == false) {theDoc.save()}
    // if file has not been saved yet save to desktop;
         catch (e) {
              var docPath = "~/Desktop";
              theDoc.saveAs((new File(docPath+'/'+basename+".psd")), psdOpts, false, Extension.LOWERCASE);
    app.activeDocument = theFirst;

  • Save all contact to memory card?

    I have 721 contact and i cannot save all to my sim card so it is possible to save to memory card? I using C6-00 and i just wanna save it for backup only in case

    Hi, should be able to do by going here: Select Menu-> Applications -> Office -> File mgr. and Backup.
    I suggest you do a back up to a computer if you have one too using either Ovi suite or Nokia pc suite (windows). Isync for mac.

Maybe you are looking for

  • How can i sync ipod to external hard drive ?

    Help needed please, brief history,i have an ipod classic and using windows, friend came to tidy up itunes said he would delete doubles and he lost 3/4 of itunes in the process (not good) so ipod still had 150gig of songs on, but itunes was down 70gig

  • Oracle XML query - Explain

    Hi, I am a oracle developer not having knowledge of XML. Could you please explain XML part in the below pasted query. What is XMLTable ,xmlnamespaces, etc. How this XML part is working? select o.ORDER_ID, o.customer_ban ,o.CIBOODLE_CASE_ID ,o.DEALER_

  • Actual / Planned / Target Cost and Quantity

    Hi Experts, In the company that I am working there is the need of having a report with the following information: Plan Cost, Actual Cost, Target Cost, Planned Quantity, Actual Quantity for diferent materials using the cost component split structure o

  • SOS!! : I can't find javax.rmi.*

    After i install j2sdkee1.2.1, I can't find javax.rmi.* in the dictory D:\j2sdkee1.2.1\lib Where will i find it and download it into my computer

  • Anyone know of a compatible 8 TB native NAS with OSX 10.6?

    I tried a Segate Black Armor 440, and it has to be the worst I.T. decision of my career. It was published by Seagate as 10.6 ready and clearly it is not. Tier 2 or (VHP, they call it) admitted to me on the phone that they made a big mistake in develo