LVOOP Class Versioning, saving to file

I'm storing LabVIEW objects to file.  What is the best way to re-load these objects even if the class version has changed?  Generally I've found that this causes few problems and the classes are able to adapt, except when I've made major changes to the class definition typedef.  Is there a way to write an adapter VI that checks the class version of the stored class and up-converts appropriately?
Also, are there any good resources for general "best practices" related to LVOOP, for versioning, working as a team, etc.?

Unfortunately when loading previous classes there doesn't seem to be a way to have tight control over how old versions are converted up. The conversion (hopefully I remember the details right) depends on how they where changed within the editor, if you rename a field then the data for the old name when be placed into the new name, if you remove the field and replace it then the data for the old filed will be deleted and the new one will take the default value).
You'll want to avoid typedefs (classes should be fine) within class data, since typedefs don't maintain their mutation history.
http://lavag.org/topic/14548-class-mutation-history/
Enums can also be a problem
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Maintain-Mutation-History-as-part-of-Enum-Type-Definit...
Hopefully some version of LabVIEW will allow more control over version mutation, but currently you would need to be very careful with the the class data. SVN (or some other file versioning system), could be helpful for backtracking if you mess up modifying the class data (just don't go before the last in use version, since that may break the mutation system).
To have to full control you would need to flatten your data manually. If you want to go that route converting things to variants then using flatten to string is a simple way of storing type data with the real data.

Similar Messages

  • Saving a file in a particular folder over the tomcat server

    I have a java class in the background of a JSP which creates an XML file and saves it.
    Furthermore another class picks that file and processes it. While running this program on my local computer it is obviously working fine but in order to run it on a tomcat server or for that matter any server, I want it to save the XML file in a particular folder, for example:
    tomcat_home/webapps/myapplication/ xmlfolder / something. xml
    so that my other class can easily pick up the file and I dont need to change the location each time I change the server.

    You can get the context root(the place from wher the aplication is running) of your application and then save the file somwhere, but i >>woulden't recomend that. But this is what you are looking for.How ?
    You can also just save the file, it will be saved in a temp directory. (use this only if the file is a temp file not for storing purposes)Just saving the file somehow doesnt work for me as the folder where a class is saving a file by default is somehow different from the folder where another class is trying to pick a file by default. Even if I give no path
    Other option is just to configure a tomcat system variable that specifys an folder. You can get that property from your application and >>then save the files there.Im not able to consider this one because the application will be put on different servers by different people later so they would all then need to configure their systems just to read a file. I was sure there were better ways. :(

  • On my new Imac, I had the trial version of Pages, and saved some files in it. Now I have purchased the full version from Apple via a download, but I cannot save or print the old files, please help!

    On my new Imac I saved some files on the free trial version of Pages, since downloading the full version from Apple, have been unable to save or print from old files saved when using the trial version. Any ideas? Thank you!

    My guess is the 30-day trial period has expired but you didn't remove the trial before installing the full version. The files to delete are the iWork ’09 folder from the main HD > Applications; the iWork ’09 folder in HD > Library > Application Support & the individual iWork application plist files found in HD > Users > (your account) > Library > Preferences for each user.
    Yvan Koenig has written an AppleScript that removes the files. You can find it on his iDisk in For_iWork > iWork '09 > uninstall iWork '09.zip.

  • Good day! When saving a file in Illustrator, I can not keep the older version. How You can save the file in an older version?

    Good day! When saving a file in Illustrator, I can not keep the older version. How You can save the file in an older version?

    When you save a file that's what options offers application
    05 мая 2014 г., в 13:40, Jacob Bugge <[email protected]> написал(а):
    sage go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click theStop Email Notifications link.

  • Edge Animate CC saving older version of my file

    I've been working on a file in EA and I changed some of the imported images and saved the file . I made sure that the publish settings were correct. But when I try to Place the .oam file into a Muse CC project it always gives me the older version of the EA file before the changes.

    Hi Daniel
    The issue is because, the first time you publish as .oam, a new image is captured from stage as (default) poster.png and every time  this is used as poster image for the .oam. However, when you replace the image and if this poster.png is already present then the .oam is published with new image but older poster.png.
    The work around to overcome the problem is, delete poster.png from the 'images' directory of your animate source(from your OS), and then import and re-publish with new images. This time, the .oam poster image will automatically be updated.
    Do let me know If it solved the problem.
    Thanks
    Manigandan

  • I have Win 7 saved (installation file) in My MacBook Pro Licence version. How can i install it on MacBook Pro. After installation how can i make it to work with Parallel desktop or VMware fusion software.

    I have Win 7 saved (installation file) in My MacBook Pro Licence version. How can i install it on MacBook Pro. After installation how can i make it to work with Parallel desktop or VMware fusion software. I can buy these softwares.

    http://www.simplehelp.net/2009/02/02/how-to-install-windows-7-in-os-x-using-para llels-desktop-a-complete-walkthrough/
    http://blogs.parallels.com/consumertech/2011/10/24/install-windows-right-from-wi thin-parallels-desktop-7-guest.html

  • Can I recover an older saved version of a file?

    I had a file with recorded audio in GarageBand. I later took the same file, and deleted the old audio information, and accidentally saved it again without doing save as, thus losing the original version of the file. Is there any way to recover the earlier version?
    Thanks

    Actually, recovery is impossible because the original data would be overwritten with the current data. It would be a different situation if the original file was left intact, copied, then the copy modified, then the original file mistakenly erased.

  • How do I import bookmarks from a saved bookmark-file fron older version?

    How do I import bookmarks from a saved bookmark-file from older version?

    See:
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox

  • EHS - CG36 - Import report - Set MSDS version from key file data

    Hi.
    This is in reference to thread EHS - CG36 - Import report - how to define MSDS version in key file?
    I'm faced with the same client requirement, came across this discussion, and wondering if there was a solution to this.
    I'm on ECC6.0. My client requests to retain the Version of the MSDS at the time of export (CG54 Dok-X, VER key file data) when it gets imported to another system (CG36). Example (similar to Roy's): If the reports in export system are 1.0 and 2.0, then they must be created in the import system the same, not 1.0 and 1.1.
    Apparently, as Christoph has stated, the standard CG36 Import process doesn't make use of the VER key file data besides storing it into the Report's Additional Info (DMS Class charact.).
    I tried to get around this via the user exit. In the IMPORT fm, I set the version/subversion of the report to be created but the C1F3 fm that does the actual report creation just ignores it. If you've done a similar approach, what have I missed? I'm also afraid if I have to clone the C1F3 fm...
    I appreciate your thoughts and inputs.
    Thanks in advance.
    Excerpt from my fm ZC13G_DOKX_SDB_IMPORT:
    FORM l_create_ibd_report...
      IF e_flg_error = false.
    *   fill the report_head
        e_report_head-subid     = i_subid.
        e_report_head-sbgvid    = i_sbgvid.
        e_report_head-langu     = i_langu.
        e_report_head-ehsdoccat = i_ehsdoccat.
        e_report_head-valdat    = sy-datum.
        e_report_head-rem       = i_remark.
    *beg-LECK901211-ins
        e_report_head-version    = i_ver.
        e_report_head-subversion = i_sver.
    *end-LECK901211-ins
    * Begin Correction 15.06.2004 745589 ***********************************
        IF ( l_api_subjoin_tab[] IS INITIAL ).
    *     create the report
          CALL FUNCTION 'C1F3_REPORT_CREATE'
            EXPORTING
              i_addinf            = i_addinf
              i_flg_header        = true
              i_flg_subjoin       = false
            IMPORTING
              e_flg_lockfail      = l_flg_lockfail
              e_flg_error         = l_flg_error
              e_flg_warning       = l_flg_warning
            CHANGING
              x_api_header        = e_report_head
            EXCEPTIONS
              no_object_specified = 1
              parameter_error     = 2
              OTHERS              = 3.
        ELSE.
    Edited by: Maria Luisa Noscal on Apr 8, 2011 8:23 AM

    Solution is to incorporate the logic used by tc CG36VEN, that is, the process of performing a direct table ESTDH update after the new report is saved into the database.
    Edited by: Maria Luisa Noscal on Apr 19, 2011 7:34 PM

  • When saving photoshop file in PDF, my document changes, how do I solve this?

    Hello everybody,
    Im trying to save my CS6 files as PDF documents. When I save my files as PDF some texts or images disappear or deform.
    Is there anything i'm doing wrong?
    Is there a setting I need to change for saving my files so they don't change?
    Thank you for your help!

    Hi,
    Which operating system and version of photoshop cs6 are you using?
    You can find out the exact photoshop cs6 version by going to Help>System Info from within photoshop and looking at the very first line that says Photoshop Version.

  • The niFPui.mxx plug-in caused an exception in the CmxAggregateItemUI::InvokeCommand function in the NIMax process. When saving *.iak file in MAX4.6

    The niFPui.mxx plug-in caused an exception in the CmxAggregateItemUI::InvokeCommand function in the NIMax process. When saving *.iak file in MAX4.6
    Hi There,
    The subject header just about says it all. This is the first action I took with MAX - it is a fresh install. The file I wanted to save was still written and the FP seems to be working ok. However, I need to know what happened.
    I can't post the whole log file due to the amount of characters allowed on this post. I can cut and paste sections if there is a specific part of the file you need. Below is the first section and last section.
     Context where exception was caught:
    Func:
    CmxAggregateItemUI::InvokeCommand Args: plugin=niFPui.mxx Item=0107EAB1
    cmdID.cmdId={4A36174B-EC0C-4D73-A23D-F15D164542DE} cmdID.index=0
    Application   : C:\Program Files\National Instruments\MAX\NIMax.exe
    User Name     : slaney
    OS Version    : 5.1.2600 (Service Pack 3)
    Exception Code: C000001E
    Exception Addr: 457BC448
    Return Address: 457BC448
    Function Name : nNIFPServer::tFpLinearScaleRange::`vftable'
    Module Name   : FieldPoint71
    Parameters    : F001008E 7800FDDD C5100DFC EC0107EA
    Source File   : (not available)
    Return Address: 481000C3
    Function Name : (not available)
    Module Name   : (not available)
    Parameters    : 00000000 00000000 00000000 00000000
    Source File   : (not available) 

    Hi,
    I did a research on your error message and it seems this problem was introduced with MAX 4.6. This version switched to a new error reporting mechanism and reports even errors that are which are not critical to your task.
    These errors typically show up as "unexpected" and if your error falls into this category have a look to this KB for further assistance.
    If it doesn't fall into this category, your could try to go back to the MAX 4.5 or 4.4.. Of course you would need to reinstall some components and might not be able to use newer drivers at all.
    Let me know.
    DirkW

  • How to set jpeg resolution when saving pdf file as jpeg

    I'm running Acrobat using interprocess api, I can invoke a script to save a pdf file as JPEG, but I need to be able to set the resolution of the saved jpeg file.
    Any clues as to how I can do that ?
    Peter

    Hi
    I am running a stand-alone version of Framemaket 10.I try to convert a documentation with a lot of screenshots in it. Regardless of the settings on the Reference pages of the first document of the book, Framemaker converts all graphic files to *.gif, and these are downsized so much that they become illegible. I would like to have them converted to JPG, with little resolution loss, so they are still readable.
    I think Robohelp is too expensive…
    Best regards
    REIDEN TECHNIK AG
    Alexander Keller
    Tech Writer

  • Problem saving gif file over the net

    I am using a simple loop to save files using a URL Connection. It grabs html files fine and they look right but when I used to to download an animated gif it had an error. It saved the file but when I tried to open the image I got a "drawing failed" message.
    I compared it to the working image and the sizes were identical. I also compared the characters in notepad and the beginning and end characters were identical. I looked at the preview in "My Computer" when you select it and it drew only the first line or so. This makes me believe it is a problem with how it switches lines when saving. I checked the ends of the lines though and they also seem identicall. Any ideas? Here is the code. Thankyou.
    FileWriter fileName = new FileWriter(saveFileName);
    BufferedReader in = new BufferedReader(
    new InputStreamReader(
    newConnection.getInputStream()
    BufferedWriter out = new BufferedWriter(fileName);
    for (;;) {
    int data = in.read();
    // Check for EOF
    if (data == -1) break;
    else {
    System.out.print ( (char) data);
    out.write(data);
    }

    GIF files are binary files and can be corrupted if you use the Reader and Writer classes. Use the *Stream classes, like FileInputStream and FileOutputStream.                                                                                                                                                                                                                                                                                                                               

  • When saving a File OS Is Creating Multiple Folders With The Same File Name

    Not sure what I changed but, now when I save a any file (ppt. word, Keynote,Pages e.g.,) to the desktop or any other location the OS will also create multiple file folders with the same file name as the file I'm saving. Inside the folders are what appears to be files locating the saved files. What can I do to fix this problem?
    I'm using the 10.7.2 version
    MacBook Pro

    Misio wrote:
    It looks like a finder bug. To replicate, I surf to any website, I right-click on a jpg image, select "Save Image As" and in the window that pops up I type in the filename "000.jpg", I select the folder Pictures, and click on Save.
    BTW, I don't know why, but the file was saved only as "000" without the file extension ".jpg". Does anybody know why?
    the extension is simply hidden. go to the get info panel for the file and uncheck the option to hide the extension.
    Then I surf to another image, and again I save it as "000.jpg" and now it asks me if I want to replace the existing filename, although the existing one is "000" and I try to save as "000.jpg", so I say yes, and then magically the file is saved with the full filename including the extension "000.jpg"
    When I did it a couple of times, always saving image as "000.jpg" from various sources, I ended up with two distinct files named "000" and both in the same folder Pictures.
    Please advise.
    it sounds to me like you saved one file as 000.jpg and the other and 000.jpg.jpg.
    check the info panels for the files for full names to verify if this is the case.

  • How do I prevent AE from saving .AEP files in the wrong folders?

    I've been using AE heavily for about 6 months, and it has this really pesky basic Windows UI problem that makes life quite frustrating. I work on lots of projects that I maintain sequentially numbered in their respective folders. Typically in Windows when you choose "Save As" windows defaults to the folder the current file resides in.  For some reason After Effects defaults to the last folder I saved a file in, which often times is not the folder I am in. So I end up with project files from projectA stored in the projectB folder.  This leads to version control problems when members of the team can't find the most recent version of projectA and so they start working on the previous version of ProjectA and later on ask me where all my changes are.  I want to believe that AE has a checkbox in preferences somewhere that says "make save-as feature operate like every other windows program" - but I haven't found it yet.  Does anyone have any advice on this topic?

    I want to believe that AE has a checkbox in preferences somewhere that says "make save-as feature operate like every other windows program" - but I haven't found it yet.  Does anyone have any advice on this topic?
    I think you are operating on wrong assumptions - a project is just a reference to other files plus some internal data, so it doesn't exactly make sense to maintain endless lists of absolute paths, given that you can import things back and forth in a million ways. What happens as soon as you import a project into another one? What, when you collect files? What happens when you re-import pre-rendered files? A "same origin" policy would be riddled with tons of issues to figure out the logic as to what the user actually wants to do and which path is the correct one.... I've never missed any such feature.
    Mylenium

Maybe you are looking for

  • I'm trying to install PDANET on a new Macbook Air.

    The installation process proceeds normally but after restart no PADNET icon appears in the menu bar.  Any help? I can't find anything on the net that indicates PDANET will not work with the Air or with Lion

  • Built-In iSight NOT detected on my Windows XP!!

    My built-in iSight is not being detected in my windows when I want to video chat on AIM or skype. Under My Computer, there is nothing under Scanners and Cameras. But on the Mac OS X side of my OS, I can use iSight with iChat. I do NOT use Parallels,

  • Impact of 603 mvt type

    i would like to know impact of 603 mvt type. my user is using vl01no transaction for outbound delivery process.    in this transaction system is generating 603 mvt type. even though receiving plant is not processing GR for this OBD,still system is sh

  • MEP CODE

    my balckberry came from US and im here in the philippines. i enter a wrong mep code ten time. so my mep code is zero. how can i unlock my blackberry despite my mep code is zero. any solution?

  • Peut-on installer Adobe Creative Cloud sur 2 ordi?

    Bonjour, je viens d'acheter un 2ème MAC et je voudrais savoir s'il est possible d'installer Creative Cloud dessus? Sachant qu'au départ il a été installé sur mon 1er MAC. Merci de votre aide!