Set version string from a shared file in App Builder

I am upgrading my applications to use the new LabVIEW 8.0.1 Pro env. I am getting used to the new App Builder features and I like what i see. However... i am having a couple of issues...
1. I now have to change build number in both my About_Dialog.vi AND in the build properties.
2. I now have to change the build number for EACH binary i build, EACH time i build.
Is there a way to, at build time, read a file to set the version string? IE. Can i have a text file that is called fileversion.txt or something and have it be read to populate the build version?
Is there a way to have a pre/post build script that can be run to set parameters/configs using the 8.0 App Builder?
The primary reason for this is that since i cannot use a command line option to build my executables, i would at least like to simplify it to be able to use a simple mouse clicker app. However the version info has to change with each build and that increases the complexity of the script 10 fold. Alternatively, is it possible to remove the version info from the binary? I like the feature a lot, but my customers are going to get confused if the about dialog says something different than the binary properties.

Hello Plexsys,
With LabVIEW 8.0, in the project explorer you can have VIs targeted to multiple devices. This is where to conditional disable structure comes into the picture. With this structure it possible at runtime to disable a section of the code depending upon the target on which this VI is running.
Besides working with multiple targets (using the Target Type symbol), you can also define your own symbol. This way a VI can behave differently when used in conjunction with different projects. You can define the symbol for a project by right clicking on the Project (in project explorer) and selecting “properties”. This way, if a specific VI is moved over from one project to the other (with a different symbol value), then it would behave differently. If a project does not contain one of the symbol values, then the default case would be executed.
You can always refer to LabVIEW help for more information on the conditional disable structure.
At this moment I don’t think that the conditional disable structure could provide you with the functionality that you are looking for.
Regards,
Chetan K
Application Engineer
National Instruments

Similar Messages

  • Reading Each String From a text File

    Hello everyone...,
    I've a doubt in File...cos am not aware of File.....Could anyone
    plz tell me how do i read each String from a text file and store those Strings in each File...For example if a file contains "Java Tchnology forums, File handling in Java"...
    The output should be like this... Each file should contains each String....i.e..., Java-File1,Technology-File2...and so on....Plz anyone help me

    The Java� Tutorials > Essential Classes: Basic I/O

  • I can't find the Show menu to import a song from a shared file.

    Where do i find the show menu to import a song from a shared file?

    Welcome to the Apple Community.
    Do you mean this one in the bottom left corner of iTunes.

  • Problems deleting a string from an external file.

    hi!
    I am working on a program but am having problems deleting a string of information from an external file. The code I have managed to do only seems to be deleting the surname. The rest of the string remains and the Surname from the string bellow the one that should have been deleted moves to where the surname that was just deleated was.
    this is the code snippet that should be deleting the string:
              System.out.print("Please enter the last name of the contact: ");
              last_name = dataInput.next();
              int z = 0;
              for (int i=0; i < number_of_records; i++)
                        if ((last_name.compareTo(lastName)) < i && (last_name.compareTo(lastName[i]) > i))
                                  z = i;
              for (int i = z; i < number_of_records; i++)
                        lastName[i] = lastName[i+1];
    Anyone got any ideas why its not deleting the whole string?
    the extrenal file is set out like:
    surname,,first name,,phone number

    I don't think you have given enough information to answer this question completely; however, here is my guess:
    The code that appears to be doing the "deleting"
    for (int i = z; i < number_of_records; i++)
        lastName[i] = lastName[i+1];
    }is only acting upon the lastName array.

  • How to move an App from one mac to DPS App builder on another mac

    When I try to download the Developer app, after adding new UDIDs to the provisioning certificate, I get an error stating the app was built on a different machine. Everything works great when completed from the original Mac that I did the build on. (this was created on a "freelance design" machine and now needs to move to the company machine. I have tried to delete the app and start over, howeve the "Delete" option is grayed out. Using the single edition app.

    If you are a Creative Cloud subscriber, you would need to have InDesign Installed on the new Mac. Then you need to click on 'Create App' from Folio Builder Panel in InDesign on the new Mac. That will launch DPS App Builder and embedd the folio in your App. So bottomline is that you need to do this process on the new Mac.
    If you however purchased DPS Single Edition ($395) you may export the Folio from Folio Producer and then import the folio in DPS App Builder and continue buliding the App.
    I can delete the app for you, send me your DPS App Builder id and App name via Private Message.

  • Character '\' is lost when reading a String from a property file.

    Hi all,
    I have encrypted information inside a property file, but when loading properties in my program, the String object used to store the value is changed by the lost of all �\� characters
    # EIS password saved in the property file
    password=WPLqQE0DlVF8Sg\=\=
    #Value loaded in my String object
    WPLqQE0DlVF8Sg==
    Why is this happening? I use java.util.Properties java class to store and load my properties, and it is supposed to do it with the same encoding (ISO 8859-1).
    Please, can someone explain me why this happened and how to solve it?
    Best regards.

          public static void main(String[] args) throws IOException {
               OutputStream props = new FileOutputStream("test.properties");
               Properties p = new Properties();
               p.put("password", "pass=word#is!dumb");
               p.put("user", "    I am a Dummy");
               p.store(props, "Java forum demo props file");
               props.close();
               /* Properties file after store
                * user=\    I am a Dummy
                * password=pass\=word\#is\!dumb
               Properties post = new Properties();
               post.load(new FileInputStream("test.properties"));
               for(Iterator it = post.entrySet().iterator(); it.hasNext();)
                System.out.println(it.next());
                * After load from test.properties
                * user=    I am a Dummy
                * password=pass=word#is!dumb
          }Notice that the special chars are only in the file, not actually in the props. If you think otherwise, I don't know what to say. The \ is a special character that is used to escape other special chars, including itself. You can't create a string in java containing only one backslash, as java assumes the next char is being escaped. when you create a string in Java with one backslash, you have to have 2 backslashes. If you are storing data in the property file using something other than store, than you need to ensure that you are escaping all special charachters that the store method does
    ~Tim

  • Reading a flattened LabVIEW data string from a CSV file in C#?

    We're recording a large amount of data into a CSV file to make it easily accessible from the C# end. I've a header with all the variable names then I write all the data (doubles) as flattened LabVIEW binary strings using flatten to string (little endian) to keep the size down. We are having issues converting these strings back to doubles on the C# end.
    At the C# end we can read the LabVIEW repesentation of the DBL but have tried the BitConverter.ToDouble library function to convert it without luck. We use this method to convert the same flattened data coming over a TCP connection without any problems. I'm not writing the C# part of the program and have little experience with it, but if anyone could shed some light, it would be greatly appreciated.
    Regards,
    Andrew

    It is all written as single values. It looks like we have found a method if we remove the header which contains the variable name as a string so the data is in a csv containing just the binary data strings. It looks like we'll go with this as the data will always be written in the same order so can be indexed by the C# program without the need for headers.
    Thanks.

  • Suggestions on setting up RAID drives for sharing files

    Looking for some suggestions on how to best set up my schools mac lab...
    What I have:
    The lab admin computer is a MacPro 8GB ram two internal 1TB drives (no RAID card)
    HD one is currently not raided and is running leopard 10.5.4, ARD3, CS3, etc. The HD 2 is waiting to be utilized.
    The student computers are (intel) iMacs 2.66ghz 4GB ram running 10.5.4 and used primarily for running CS3 apps with yearbook and art students.
    What I would like to do:
    Use the second HD on the MacPro to share files with the imacs. My yearbook students need to be able to access their photos and layouts from any imac they log into, but I would also like to protect the files (from accidental deleting) and possibly make it quicker for them to access them (since our school network tends to be a bit slow).
    I don't know wether I should partition the second HD, RAID and if so in what configuration? or some combination of both. I have never really used a RAID disk before so I am not sure how it could apply to what I want to do. Or am I going about this the wrong way?
    Any suggestions?
    Thanks

    Because you are in an enterprise situation your major concern should be backup. Your data and all student data are at risk without a proper backup strategy. With a single 1 TB drive in use you should consider using the second 1TB drive as the backup drive. Daily backups should be scheduled to back up all user data and user accounts stored on the main drive. I suggest you use a top-grade piece of backup software that will do scheduled backups at designated times to assure you have a current daily backup on the second hard drive. If you are willing to go the extra bit then buy a third 1 TB hard drive and set up a mirrored RAID with the second drive you now have. This will provide some redundancy in the event of the loss of a hard drive due to mechanical failure (it does not protect you in the event of data corruption.) You should then set up a method of providing additional archival backups on a weekly or monthly basis. The archival backups should be done on separate hard drives (perhaps an external Firewire drive) or to multiple DVDs. A third backup would be a copy of the archival backups that would be stored off-site in the event of fire, theft, or other catastrophic loss as well as for security purposes.
    There are few backup programs capable of doing it all including backing up across multiple optical discs - Retrospect is the least expensive one. Other suitable backup programs are:
    Backup Software Recommendations
    My personal recommendations are (order is not significant):
    1. Synchronize! Pro X (Commercial)
    2. Synk (Backup, Standard, or Pro)
    3. Carbon Copy Cloner (Donationware)
    4. SuperDuper! (Commercial)
    5. Restore option of Disk Utility can be used to make only full backups.
    The following utilities can also be used for backup, but cannot create bootable clones:
    6. Backup (requires a .Mac account with Apple both to get the software and to use it.)
    Also read How to Back Up and Restore Your Files.
    More expensive enterprise backup solutions are:
    1. NetVault
    2. BRU Server or BRU LE

  • Setting default values from a configuration file...how_to

    Hi,
    When we place controls in the front panel VI, there are default values
    that we can set during design time. Is it possible to load up a VI and
    read those default values from a file? I guess the point is that I want
    to be able to store different control settings for different users with
    one VI. Maybe possibly use the File I/O VI's to load up default control
    values that way. Is it possible?
    Thanks,
    Steven

    _Steven Chang wrote:
    >Hi,>>When we place controls in the front panel VI, there are default values>that
    we can set during design time. Is it possible to load up a VI and>read those
    default values from a file? I guess the point is that I want>to be able
    to store different control settings for different users with>one VI. Maybe
    possibly use the File I/O VI's to load up default control>values that way.
    Is it possible?>>Thanks,>Steven>
    After trying many various ways of storing configuration data, the way I use
    the most is to set up a "configuration global", a global that consists of
    basically a single cluster into which I place anything about the application
    that I want to configure and store. I usually include the application's path,
    DASQ settings, a
    nd user preferences. You can then read/write this cluster
    anytime during your test session. You can provide user access to specific
    portions of the global through a tabbed dialog box and allow multiple records
    in your config file which can be accessed at any time.

  • Display string from a log file on a Dashboard?

    Hello everyone,
    I need a little guidance on how to solve this problem in SCOM 2012 R2.
    I need SCOM to do this:
    Read a log file on a specific application server (say its hostname is server21)
    Look for the text: Total number of users: 15
    Display the text “Users on Server21 =
     15” on a SCOM dashboard (or something to that effect)
    Sounds simple enough? Well, I am stumped :-(
    I have read and followed tutorials on internet, telling me how to create a rule and alerts. However I don’t want alerts. I want this data to be simply shown on a dashboard.
    How can I do that?
    PS: I hear that I may have to create my own management pack with only server21 in it. Is that right?
    -Rajeev rajdude.com

    Thanks for the tip. The powershell grid widget is pretty powerful. However it will take me quite some time and effort to write a PS script which can extract the exact info I need from that application's log file. I was hoping SCOM's own log parsing
    capabilities would do it.
    By the way, yes, we can create a MP and have only one server in it. We can use the (free) 
    MPAuthor to make a MP with only one server in it. Here is a video showing how to do it...
    http://www.silect.com/static/mpauthor/MP_Author_Creating_a_New_Single_Server_Application_MP.mp4
    I tried doing what I want using MPAuthor, but it again boiled down to me writing a PS script which can extract the exact info I need
    from that application's log file.
    -Rajeev rajdude.com

  • Set version name from IPTC Title field?

    I'm no AppleScript genius but I am sure there shouldn't be a whole lot of lines of code needed for me to grab a selection of images and change their version name to whatever the IPTC title field is.
    basically right now the version names are messed up due to tampering but the IPTC metadata is fine, so i want the metadata to prevail over whatever aperture has as name & keywords.
    Anyone got an idea of how to do this simply and quickly? I know I have a batch file renaming utility but I don't think that will help me in this case as aperture doesn't 'care' about file name does it?
    This is on Aperture 3.5 (latest version)

    Lightroom stores metadata in its own database, located:
    [Username]/Pictures/Lightroom/Lightroom Database.lrdb (Mac OS) file.
    [Username]/My Documents/My Pictures/Lightroom/Lightroom Database.lrdb (Windows) file.
    This is different to CS5/Bridge where XMP sidecars contain the metadata for proprietary raw files and in others (DNG, Tiff, jpeg, PSD) it's contained in the XMP headroom within the image file.

  • Do you know how to download some videos from iCloud shared file to my iPad

    I have shared a file with some pictures and videos in "shared streams" with other iOS users. Everybody put their videos put their photos and videos, and I would like to download some of them to my camera roll to make a video with iMovie, but I cannot find the option. I am only allowed to download photos, no videos. Is there any way of download these videos in my iPad?

    You can buy and download films via the iTunes app on the iPad, they will then download into the Movies app - you will need to download the films over wifi as there is a 20 meg limit per file over 3G. Or you can buy and download them on your computer and then sync them to the iPad via your computer's iTunes - select the iPad 'device' on the left-hand side of your computer's iTunes, and on the right-hand side on the Movies tab select which films to sync to it

  • 'Sharing' Files Between Apps?

    This may be a fools' errand.
    Since the days of Palm Pilots, I've been using Docs to Go pretty heavily.
    I sync most of my files through my Desktop, not the cloud.
    Now, I'm attempting to trial-run some good PDF annotation apps. I have a bunch of PDFs that I've synced between my Desktop and my iPad with Docs to Go.
    Is there any way I can open that same file using, say, GoodReader? Or do I need to push a copy of the same PDF into GoodReader with iTunes? (And then of course, I'll lose version control between the two apps...?)
    Or... what other options do I have?
    Thanks

    If DocumentsToGo shows your other Apps in the Open in.... menu, you won't need to push another copy. However, you're never really going to be able to share documents the way you want. You'll essentially have two copies.
    By the way, I find, unless the documents are quite large or you have lots of them, emailing them to yourself is easier than iTunes. I believe you can email from Documents to Go.
    I've forgotten if Documents to Go supports DropBox. If it does, you could store the apps their and open from GoodReader.
    Best of luck.

  • Sharing Files and Apps

    Here is what I want to do:
    I am trying to set up a separate user Account for my 15yo son. He already has a stack of Garage Band compositions on my User Account.
    How do I let him have access to my Account for his Garage Band stuff without letting him have full access?
    I want his account to have Parental Control limits.

    misso1 wrote:
    I am trying to set up a separate user Account for my 15yo son. He already has a stack of Garage Band compositions on my User Account.
    How do I let him have access to my Account for his Garage Band stuff without letting him have full access?
    Why not just move "his Garage Band stuff" to the new account? It's probably in <yourhomefolder>/Music I'd copy it from there to /Users/Shared or to <yourhomefolder>/Public, then move it from there to <hishomefolder>/Music.
    The sharing of the Garage Band app itself should be pretty much automatic if you enable it in Parental Controls.

  • Problem with setting Created, Modified, Author, Editor on file i Site Collection from Client SDK

    Hello,
    I have a piece of code that is used for converting files from a shared file area to SharePoint for customers that move to SharePoint and Dynamics CRM. The relation to Dynamics CRM calls for using custom code an not existing conversion tools.
    The code I wrote works fine if the file sent to a regular site in SharePoint, but if I try to use the same code for files in the Site Collection. If I use the address for the site collection in the constructor for the ClientContext, and the relative URL
    from that for the file, both the upload and the setting of the attributes fails (I do make sure the file is there before trying to set the attributes).
    After some experimentation I am able to upload the file, by creating the client context with the main site URL, and adding the site collection path elements ("/sites/crm") to the path for the file, but using the same the setting of the attributes
    fails.
    I have tried some other variant where the site collection elements are in the path for both the ClientContext and the file path. Then the upload fails, the file retrival (GetFileByServerRelativeUrl) works, but the retrival of the attributes then fails.
    The code below illustrates the variations.
    Can someone please explain what I am doing wrong, or is this a bug in the SDK?
    Regards
    Anders
    using System;
    using System.IO;
    using System.Security;
    using Microsoft.SharePoint.Client;
    using File = System.IO.File;
    using SP = Microsoft.SharePoint.Client;
    namespace TestSharePointDocumentAttributes
        class DocumentAttributeTester
            public void Execute(string[] args)
                string userId = args[0];
                string password = args[1];
                string filePath = @"C:\work\TestCV1.docx";
                string siteUrl;
                string documentPath;
                string clientContextUrl;
                string serverRelativeUrl;
                DateTime createdDate = new DateTime(2013, 2, 1, 11, 20, 45);
                DateTime modifiedDate = new DateTime(2013, 3, 1, 11, 40, 45);
                string fileName = Path.GetFileName(filePath);
                SecureString securePassword = new SecureString();
                foreach (char c in password.ToCharArray())
                    securePassword.AppendChar(c);
                // Pass 1, no site collection
                Console.WriteLine("Pass 1");
                clientContextUrl = "https://losangas.sharepoint.com";
                serverRelativeUrl = "/crmn_candidate/TestSPAttributes" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
                // Pass 2, site collection, parameters as expected, both upload and set attributes fails (even if file exists)
                Console.WriteLine("Pass 2");
                clientContextUrl = "https://losangas.sharepoint.com/sites/crm";
                serverRelativeUrl = "/kontakter/N/Test1" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
                // Pass 3, site collection, parameters adjusted. Upload works and set attributes fails.
                Console.WriteLine("Pass 3");
                clientContextUrl = "https://losangas.sharepoint.com";
                serverRelativeUrl = "/sites/crm/kontakter/N/Test1" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
                // Pass 4, site collection, parameters adjusted. Upload works fails, but GetFileByServerRelativeUrl succeds and load items fails
                Console.WriteLine("Pass 4");
                clientContextUrl = "https://losangas.sharepoint.com";
                serverRelativeUrl = "/sites/crm/kontakter/N/Test1" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
            private void upload(string clientContextUrl, string serverRelativeUrl, string userId, SecureString securePassword, string filePath)
                try
                    byte[] fileContents = File.ReadAllBytes(filePath);
                    string fileName = Path.GetFileName(filePath);
                    ClientContext clientContext = new ClientContext(clientContextUrl);
                    clientContext.Credentials = new SharePointOnlineCredentials(userId, securePassword);
                    SP.File.SaveBinaryDirect(clientContext, serverRelativeUrl, new MemoryStream(fileContents), true);
                    Console.WriteLine("Upload successful.");
                catch (Exception ex)
                    Console.WriteLine(string.Format("Upload error: {0}", ex.Message));
            private void setVariables(string clientContextUrl, string serverRelativeUrl, string userId, SecureString securePassword, DateTime createdDate, DateTime modifiedDate)
                try
                    ClientContext clientContext = new ClientContext(clientContextUrl);
                    clientContext.Credentials = new SharePointOnlineCredentials(userId, securePassword);
                    Microsoft.SharePoint.Client.File uploadedFile = clientContext.Web.GetFileByServerRelativeUrl(serverRelativeUrl);
                    clientContext.ExecuteQuery();
                    ListItem listItem = uploadedFile.ListItemAllFields;
                    List list = listItem.ParentList;
                    clientContext.Load(uploadedFile.ListItemAllFields);
                    clientContext.ExecuteQuery();
                    FieldUserValue author = FieldUserValue.FromUser("Elisabeth Skaane");
                    FieldUserValue editor = FieldUserValue.FromUser("Elisabeth Skaane");
                    listItem["Created"] = createdDate.ToString("MM.dd.yyyy HH:mm:ss"); // i.e. "6/5/2012 10:19" 
                    listItem["Modified"] = modifiedDate.ToString("MM.dd.yyyy HH:mm:ss"); // i.e. "6/5/2012 10:19" 
                    listItem["Author"] = author;
                    listItem["Editor"] = editor;
                    listItem.Update();
                    clientContext.ExecuteQuery();
                    Console.WriteLine("Set attributes successful.");
                catch (Exception ex)
                    Console.WriteLine(string.Format("Set attributes error: {0}", ex.Message));

    Hello,
    Thanks for your effort, but you are not addressing the problem.
    As I tried to explain, setting the date works fine in the case where there is no site collection involved. There is no reason to believe that this will be different when in a site collection. Also the logon works fine in borth cases. The FieldUserValue.FromUser
    can take either an email, or a prefered name. I tested both.
    Anders

Maybe you are looking for

  • How do I install app on hundreds of ipads

    I've got a project in the works where about 100 ipads will be bought to put one local application on it which will run continuously. Also, application won't be available from itunes store. This application needs to be updatable, and I don't need uniq

  • How do I enable digital signatures in Reader?

    I have created a form using Adobe Standard 9.2.  It has a digital signature field and no security settings.  The properties indicates that signing is allowed.  However, if I open the form with Reader 9.2, the properties indicate that signing is not a

  • Staging Area - Sans Transformations?

    I am struggling to come up with a proper term for a database that will contain untransformed application data.  This would be an EL process what will pull application data from the source, and insert it into the "staging" area.  A subsequent job will

  • Maestro need help also code is 75957252 for bios password reset

    maestro need help also code is 75957252 for bios password reset This question was solved. View Solution.

  • IPad 2 and Apple wireless keyboard (function keys not working)...

    Hello all, I just purchased the Apple wireless keyboard to use with an iPad 2. It pairs fine and I can type away but none of the function keys work (brightness, volume etc). Anyone have any ideas? I think these worked fine on earlier keyboard models.