The value of AllowMultipleInstances in the .ini on Build file

I modified my exe application .ini file manually to add the AllowMultipleInstances = true directive, and it works fine. However, whenever I have reconstitute the applciation, I notice the .ini file is overwritten, and I have to manually add the directive. Is there a way to specify the directive in the build process to avoid the manual step?

I'm under 8.20 LV.

Thank you

-Ted

Hi Ted,

The oldest version I have on hand to refer to is 8.5, but I think you should be able to specify a custom configuration file (ini) in the Advanced section of the property window of the Application (Build specification).  You will need to create one keep a version of the ini you want to shoot in the build - in your case, you simply need to add the modified file that you have in your project.  Note that this will override the ini which is usually automatically generated, so you need to update if you change the name of the exe file or something of this nature.

Kind regards

Tags: NI Software

Similar Questions

  • Hi, I'm rookiee and I just started with the first steps of creating a Web site. the katies-coffee-building file is on my desk and uplouded in the library. That has worked well. Now I'm putting the button in Photo Shop (banner), I have pull down on file/pl

    Message "Hi, I'm rookiee and I just started with the first steps of creating a Web site. the katies-coffee-building file is on my desk and uplouded in the library. That has worked well. Now, I'm putting the button in Photo Shop (banner) in. I pull down on the file Photo Shop button instead and try to select the Banner.psd file. Unfortunately all of the (active) folder is not accessible to all. One is not visibel. Please - need some help here. Thank you.

    @Ach ja, meine Muttersprache ist Deutsch

    You must use the file > Place Photoshop button (Cmd / Ctrl + B).

  • APK ON THE DPS APP BUILDER FILE

    I create an Android app in the generator of dps.

    I'm done ok with certificates and all the procedures, and I want to download the apk fie test. In my builter there is only one apk file named Installer android .apk.

    As I've seen in all the tutorials in Adobe tv I should get 2 apk files.one for the developer and one for the store. But I don't get a single file

    Has this changed and now gives an apk file or I there a mistake made by me?

    Help please...

    iOS applications include the development (.ipa) and testing and presentation, the distribution files (.zip). For applications Android/Amazon, there is only a single .apk for the tests and the presentation file.

  • Noise DC value of the ini file values

    Hello

    I am trying to build a generator of signals (sine, triangle, sawtooth, square random noise, DC). I managed to get the job of waveform using the signal generator of NOR built based on VI. but I want to add the DC case that I managed to do. but I want the values (magnitude and frequency) to be in an ini file. My idea is manual sets the values in the file, once I run the vi and select the case of DC noise, it should read the file values and the data output and once I have stop, it records the values of dc before returning.

    So, I'm stuck trying to figure how to do this. I hope that I was clear enough. I don't have a code to view since I haven't started yet coding on this part. Help, please.

    Clearly enough explained.

    Take a look at the screw configuration file, found in e/s from file > Config File live. There also many examples n the community, as well as in the Finder of the example, illustrating the use of these. A good starting point is the sample Configuration settings file write example Finder, and reading Configuration settings file.

    Your .ini file will look something like this, once created:

    [DC noise settings]

    Amplitude = 1.234567

    Frequency = 8.901234

    This is equivalent to:

    [Name of section]

    Key 1 = value

    Button 2 = value

    When asked to read a specific key in a certain section, VI only through the file for the named section, and then search for they key the name you provided it. Remember, you will need to know what type of data is when you read back.

    You can use VI writing to modify specific keys in specific sections as soon as you close the file.

    This is one of a multitude of methods, you can use to do this, but are probably the simplest.

  • read and sort the values present in the .ini file

    Hi all

    I have an .ini file in which a set of modules with that execution order is mentioned. I want to get all these values sorted in a table, so that I can proceed with the execution of each one in the order given. The list of the module in the .ini file looks like this:

    .

    Here, the numbers represent the order of execution of the module.

    I should get output as a table with the following values:

    1 MNO

    DEF 2

    3 STU

    4 PQR

    5 GHEE

    6 VWZ

    ABC 7

    8 JKL

    I don't know about the configuration data and reading key live but as the list of modules is huge I don't know how to write efficient code for this. Any suggestions are welcome.

    Thank you.

    The excerpt below should be very close to what you want.

  • default setting of the entry in the ini file?

    What, in v2011, is the default setting in the ini file AllowMultipleInstances value? I know this isn't a field normally included in the generated ini file when an exe is built, I wonder what the value is default? I've added in the ini file, set to False on a machine, I try to solve problems which has a launch program so slow that operators often go back and try and start again, which results in two instances, only that works properly.

    Test with any simple program, it seems that the default value is false, as usual.

    Maybe your executable is so heavy during the loading time is not "recognizable" a later instance for a long time?

    In this case, you can write a slight stub program that will be launched by the user instead of the main.

    The heel should run at hand via a file cmd or SystemExec; It would give fast feedback to the user; It should stay for enough time to leave the main appear, then stop itself.

  • problem updating the ini file ini file

    I get the ip address of the user's input and to replace the old IP in the .ini to the last ip address file but the problem is when a user enter the IP and I write it in my ini file it does not at once, but if I do it twise in calling the same function of my command button twise then my ini file is updated , it is the strage iniwrite function returnes success although on first attempt. I checked with breakpoint, but when I do it twise, then it is done, please guide me in detail, I am really amayzed by this strange behavior...

    I already gave you the exact order of the functions in my previous message!

    Ini file tool generates an object in memory that allows you to store and locate the values. This object can be filled in reading a file on the disk; Similarly, it can be saved to a file on disk. This is the very first operation and the last to perform if you want a picture to date of your values on the disk. There are three layers to consider:

    1. The file on the disk

    2. The IniText object in memory

    3. The variables specific to your program

    With this in mind, the right order to update the file on the disk so that it reflects the value that your variables have in memory is:

    Ini_New create the object in memory

    Ini_ReadFromFile fill it with the contents of the disc

    Ini_get('sendmail_from') read of the idebugprogramnode2 memory in your program variables

    Here tou can update the values of program

    Ini_Put update the object of memory with the contents of your variables

    Ini_WriteToFile save everything on the disc

    Memory Ini_Dispose clear

    As you save on disk before you call the Ini_Put functions, the disk image is not updated

  • Best practices for the .ini file, reading

    Hello LabViewers

    I have a pretty big application that uses a lot of communication material of various devices. I created an executable file, because the software runs on multiple sites. Some settings are currently hardcoded, others I put in a file .ini, such as the focus of the camera. The thought process was that this kind of parameters may vary from one place to another and can be defined by a user in the .ini file.

    I would now like to extend the application of the possibility of using two different versions of the device hardware key (an atomic Force Microscope). I think it makes sense to do so using two versions of the .ini file. I intend to create two different .ini files and a trained user there could still adjust settings, such as the focus of the camera, if necessary. The other settings, it can not touch. I also EMI to force the user to select an .ini to start the executable file using a dialog box file, unlike now where the ini (only) file is automatically read in. If no .ini file is specified, then the application would stop. This use of the .ini file has a meaning?

    My real question now solves on how to manage playback in the sector of .ini file. My estimate is that between 20-30 settings will be stored in the .ini file, I see two possibilities, but I don't know what the best choice or if im missing a third

    (1) (current solution) I created a vi in reading where I write all the .ini values to the global variables of the project. All other read only VI the value of global variables (no other writing) ommit competitive situations

    (2) I have pass the path to the .ini file in the subVIs and read the values in the .ini file if necessary. I can open them read-only.

    What is the best practice? What is more scalable? Advantages/disadvantages?

    Thank you very much

    1. I recommend just using a configuration file.  You have just a key to say what type of device is actually used.  This will make things easier on the user, because they will not have to keep selecting the right file.

    2. I use the globals.  There is no need to constantly open, get values and close a file when it is the same everywhere.  And since it's just a moment read at first, globals are perfect for this.

  • using the .ini file created by EXE

    First of all I would like to say that I have a thorough knowledge of the .ini files and the need for them.  My question is related specifically to the .ini file that is created with the executable.  I searched the forum but have not found any instance of my question specifically.  After installation, the .exe and .ini are placed in my working directory in Program Files, which I expected.  The .ini file that is created is attached.

    Now, I would like to point to a different .ini that stores control settings.  I did it in the App generator under Advanced > Use Custom Config File.  That's fine and dandy, but the network, web, settings etc that have been created in the original .ini does not get included in my new .ini.  If my option is to use an .ini file separated with my control as well as created by the .exe parameters.  This seems redundant.

    My question is: does nothing my executable with the .ini file that is created when it starts to run?  I'd be OK NOT to have attached items if I wanted to point to a custom .ini file?  Why create an .ini with these specific settings file if the .exe does nothing with them?

    The only article I found is this one

    http://digital.NI.com/public.nsf/allkb/5467F7D7895835C186256FAF00600A21?OpenDocument

    but it does not explain what the .exe is done with it, if anything.  I guess you have a total control over the .ini and there is nothing "automatic / backstage" going on here.

    Thanks in advance for your help.

    Why remind you the application builder to a custom INI file if you are going to have to read the chips inside manually anyway?  The reason to use a custom within the app Builder INI file is so that you can include specific parameters of execution (VI, access list server, port etc.) which are different from the settings using the LabVIEW development environment.

    You need not key in the INI file for your run-time application (as evidenced by the fact that if you delete the INI file, your exe will still works, creating a new INI file with default values).  If you leave the defaults, the application adds in the first leg in any case.

    You can store your own data in the same INI file used by the executable file; just put the keys in a different section.  LabVIEW Config File format INI files screws slightly differently (for example adding spaces around the = sign), but I didn't know it causes problems.

  • Why can't I just copy a profile to another system in the directory profiles and modified the ini file

    My main system crashed. I have a copy of the profile. When I move a copy of the profile in the profiles folder and edit the ini file to use the new name, I get a message that there is an instance of thunderbird running and I need to shut it down. I don't see any instance of thunderbird anywhere in the Task Manager. It happens just for me the fact that I am also in firefox may be the cause of the problem to a running instance. I'm under V31.7.0

    I tried to simply move the mail directory in the existing profile. The thing is that I don't see the old messages. I can see all of the subfolders of the Inbox on the left but not messages in the right pain. I can see new messages, but it's all in the Inbox and not filtered to the subfolder.

    I tried to activate the function of multiple profile but that doesn't seem to work.

    MY BAD
    It seems that I had something that was bad in the profile. I got the profile from a backup and now Thunderbird works fine.

    Sorry that I missed the problem earlier.

  • Re: Satellite A300-15 has recovery question: couldn't get a writing of the language of the ini

    I am of the Greece.

    I'm going to start the recovery cd, and it returns the following error:
    + Not able to get a writing of the language of the ini file.
    http://free4U.gr/pics/view-152_DSC01468.jpg

    What to do. ?

    Hello

    Have you tried to repeat the recovery procedure?
    Have you used the recovery disk Toshiba or did you start from HARD drive recovery?

    Check the two procedures;
    First try the recovery of HARD drive; Press F8, and then choose fix my computer and in the new window, follow with HARD drive recovery.

  • Edit the INI of the executable file with & quot; HideRootWindow & quot;

    Hello

    I am trying to create an executable so that it shows only a single window in the taskbar. On an article knowledge base (http://digital.ni.com/public.nsf/allkb/6E660558F3D420C786256FCB005B4F52) I'd read about the configuration HideRootWindow = True in the INI file. I did it and it worked. However, the problem is that whenever I have reconstitute the exe in LabVIEW, the line disappears, & I have to manually edit the INI file each time. I was wondering if there was anyway I could do this automatically if LabVIEW while it adds this line to the INI file to each build process.

    Appreciate any help. Thank you!

    Instead of checking the use of the default Configuration of LabVIEW file, uncheck this option and add your own ini file. Also, be sure that you add to the project ini file too! This will help to maintain.

    I hope this helps.

  • How do I script in DIAdem to include specific lines of code (similar to .ini in LabVIEW files) based on the computer/user?

    I took Basic training courses so DIAdem Advanced and have been scripting for several months.  I am interested in how to include specific lines of code based on the computer.  Told me it would be similar to .ini in LabVIEW files, although I've never used myself .ini files.

    Hi Karen,.

    What do you mean by "includes the lines of code?  Do you mean what happens when you run a command 'ScriptInclude()' or 'ScriptCmdAdd()' in a tiara VBScript?  Or do you mean that you want to run several lines as DIAdem begins, similar to 'ScriptStart() '?

    What do you mean by "computer-based?  Do you mean you want to implement different batch files on different computers, but you are still using the same file (named) command on each target computer?  Or do you mean that you want to implement the same command on all target computers file, but you want different commands to run this file based on the computer on which you are.  In the latter case, how do you determine computer on which you are on - MAC address, logged in user name, or what?

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Chips of the INI

    Nuggets of Darren, he noted that you can increase the responsiveness of the keyboard by setting quick drop Fast Search = True.  I am familiar with the INI format, but I don't know how to go about adding this token. Where is this file to add this token?

    Thanks in advance,

    Paul

    C:\Program Files (x 86) \National Instruments\LabVIEW 20xx\LabVIEW.ini

  • Programmatically move EXE file to RT-target and change the INI to start the EXE when restarting. Then the target restart RT.

    I'm trying to:

    1. download the rtexe on the target in real time
    2. download the file or - rt.ini of the RT target on the local disk
    3. change the RTApp.StartupApplication path to POINT to newly downloaded rtexe
    4. download the ini file edited to target RT
    5 reset
    6. the new rtexe should start to run

    When manually deploy the application of RT through the Project Explorer and manually restart the target RT works very well.

    However if I follow the steps above using the attached VI, to restart it does not start the EXE and loses the connection with the RT.

    When I try to reconnect, he said:

    "Errors were detected in the log of the target when connecting to the target:

    LabVIEW: (Hex 0x63B) target the RT has not enough memory to load the startup application. »

    Now why is there enough memory when the EXE is deployed through the Project Explorer, but not enough when the EXE file is moved manually?

    If there is an easier process or to achieve this goal, please suggest.

    Thank you

    Problem solved.  Problem was never in the INI file.

    Apparently using FTP "FTP Store Multiple.vi" used to move the file EXE to the rt to intimidate target must change the file somehow. Instead I just use the FTP "Put several files.vi" and everything works fine.

Maybe you are looking for

  • I need help I want to retrieve my mac pro book

    I need help I want to retrieve my mac pro book and now I can not bcz Yosimoto os is not avilabe what can do? < object edited by host >

  • Portege 4000: Can't find Wlan access points

    Device will display a Manager Toshiba Mini PCI card wireless current LAN and I have the latest driver for it. I have a new installation of XP SP2. I am able to search for wireless networks, but the search always comes back with nothing even when ther

  • How to allow browsing the Web via the Windows Vista firewall

    I'm trying to lock the outbound firewall rules on my PC. My thought is that if there is no malicious software on my PC, I would not communicate with other computers. To this end, I really want to allow connections from web browser and to make remote

  • The sound is saturated

    lost sound, has gotten using CARPETS unfortunately andrea Bocelli sounds like Donald Duck Realtek

  • Scan and email

    How can I scan a receipt and then send it to a company? E. A. Chetney