Create an Exe of a VI that controls another VI

I have a VI that opens and controls another VI. How do I build a executable of the entire application. When I create the exe. I get an error that a reference cannot be found. I have attached an example of how I have build my VI's.
Attachments:
Master.vi ‏50 KB
Slave.vi ‏21 KB

Terry,
There are two issues here.
First of all, when you use "Get this VIs Path" in development, you get a different answer than you do in runtime. This is because the VI no longer has a path.
Secondly, when you build the application, VIs called by VI server do not become a part of the application. They remain as VIs, but are included, if you choose, in a directory that you specify, or are not included at all.
My company uses a utility (that I created) that solves this issue. However; you have to be careful about implementation. The utility is quite simple: It stores the location of the function itself when it is a VI, and the location of the dll when it is deployed. You can very easily change this function to search for an exe.
As this
code belongs to my company, I cannot post it. However, I can help you create one if you like. Again, it is quite simple.
Here are the instructions for you to create your own. I have written it in pseudocode.
"Get This VIs Path"
Strip Path
Convert Path to String
Search String for "[.]exe" or "[.]dll" if it is a dll
if Offset Past Match of Search String <=0, output stripped path
else, strip path again and output
You have to remember that for development, you have to place the 'slave' VI in the same directory as the utility that gets the path. This is VERY important: YOU MUST BUILD A VI THAT GETS THE PATH. In otherwords, the code above must be a seperate VI, that you drop in to replace "Get This VIs Path". You then have to remember that the path is the same as the location of the utility that you built. When you build the application, the slave VI has to be in the same directory as the .exe for this to work properly.
The ONLY other way around this is to hard code
the file path.
I hope this helps

Similar Messages

  • How can I create a exe file with a tab control on it that work´s ?

    I have a VI with many controls and indicators,these are spread on a tab control.This tab control works with out any problems but if i create a exe file then the tab control is fixed. How can I create a exe file so that the tab control on it work´s ?

    I have made a new Posting with the same question but this time I added a screenshot of the VI.
    Attachments:
    project7.1.jpg ‏129 KB

  • How can I Create a exe file were a tab control on it work`s

    I have a VI with many controls and indicators,these are spread on a tab control.This tab control works with out any problems but if i create a exe file then the tab control is fixed. How can I create a exe file so that the tab control on it work´s ?"
    Attachments:
    project7.1.jpg ‏129 KB

    Make the tab control a control and not an indicator. If you want to write
    to it you need to create a local variable.
    "Carlos-R." wrote in message
    news:[email protected]..
    I have a VI with many controls and indicators,these are spread on a
    tab control.This tab control works with out any problems but if i
    create a exe file then the tab control is fixed. How can I create a
    exe file so that the tab control on it work´s ?"

  • How to create smaller .exe file use JBuilder7

    I am currently using JB7(EE), which can create native executable file for me. But I found it so foolish that add so many unneed classes to .exe(As I can use WinRar open it, but cannot change it).
    Does anyone know how to reduce the .exe?
    ps: As I use castor, so I had to include castor class in it, but I really don't want to add all of these to it.

    In the Wizar you employ to make the native executable,
    in the second step the Wizard ask you what to do with
    the libraries you have employed in the proyect,
    include all them include only the classes and
    resources nedded, or not include. This way you'll be
    able to control what is in you .exe file.
    AbrahamYes, I had tried it, and tried every possible combination/permutation of the four choice.
    But still bigger than it can be.
    For example: I used castor.xml library, but JBuilder include all castor include xml parser, html parser, xhtml parser, etc.
    As castor.xml --> castor.xxx(I cannot remember its name) --> castor.html-->...
    So JB7 maybe confused by the complex deps.
    So JB7 include ALL in my exe fiel.
    It may be impossible to create smaller .exe file with normal way.
    So anyone know any other way to create .exe file with the .jar file?
    As I can change the content of .jar, but cannot to .exe.
    thx for continous reply

  • Getting this error while opening a folder : This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel

    Hi,
    While trying to open a folder on my Windows 7 Home Premium, an error comes "This file does not have a program associated with it for performing this
    action.  Please install a program or, if one is already installed, create an association in the Default Programs control panel." I tried searching on the net but did not get great support for the issue when it happens with folder opening.

    Hi Nikunj Shah,
    First, I suggest you download
    Microsoft Safety Scanner or
    Malicious Software Removal Tool to run a full scan.
    The error messages here seems to be caused by the corrupted registries, which related with the folder association.
    You may take a try to merge the following registry settings to reset the folder association, before that, remember to backup your registry settings first:
    How to back up and restore the registry in Windows
    Copy and paste the following commands into Notepad, and save it to a .reg file:
    =================
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\Folder]
    "ContentViewModeLayoutPatternForBrowse"="delta"
    "ContentViewModeForBrowse"="prop:~System.ItemNameDisplay;~System.LayoutPattern.PlaceHolder;~System.LayoutPattern.PlaceHolder;~System.LayoutPattern.PlaceHolder;System.DateModified"
    "ContentViewModeLayoutPatternForSearch"="alpha"
    "ContentViewModeForSearch"="prop:~System.ItemNameDisplay;System.DateModified;~System.ItemFolderPathDisplay"
    @="Folder"
    "EditFlags"=hex:d2,03,00,00
    "FullDetails"="prop:System.PropGroup.Description;System.ItemNameDisplay;System.ItemTypeText;System.Size"
    "NoRecentDocs"=""
    "ThumbnailCutoff"=dword:00000000
    "TileInfo"="prop:System.Title;System.ItemTypeText"
    [HKEY_CLASSES_ROOT\Folder\DefaultIcon]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
      65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,33,00,00,00
    [HKEY_CLASSES_ROOT\Folder\shell\explore]
    "MultiSelectModel"="Document"
    "ProgrammaticAccessOnly"=""
    "LaunchExplorerFlags"=dword:00000018
    [HKEY_CLASSES_ROOT\Folder\shell\explore\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    [HKEY_CLASSES_ROOT\Folder\shell\open]
    "MultiSelectModel"="Document"
    [HKEY_CLASSES_ROOT\Folder\shell\open\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\
      65,00,00,00
    [HKEY_CLASSES_ROOT\Folder\shell\opennewprocess]
    "MUIVerb"="@shell32.dll,-8518"
    "MultiSelectModel"="Document"
    "Extended"=""
    "LaunchExplorerFlags"=dword:00000003
    "ExplorerHost"="{ceff45ee-c862-41de-aee2-a022c81eda92}"
    [HKEY_CLASSES_ROOT\Folder\shell\opennewprocess\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    [HKEY_CLASSES_ROOT\Folder\shell\opennewwindow]
    "MUIVerb"="@shell32.dll,-8517"
    "MultiSelectModel"="Document"
    "OnlyInBrowserWindow"=""
    "LaunchExplorerFlags"=dword:00000001
    [HKEY_CLASSES_ROOT\Folder\shell\opennewwindow\command]
    "DelegateExecute"="{11dbb47c-a525-400b-9e80-a54615a090c0}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\BriefcaseMenu]
    @="{85BBD920-42A0-1069-A2E4-08002B30309D}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\Library Location]
    @="{3dad6c5d-2167-4cae-9914-f99e41c12cfa}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\Offline Files]
    @="{474C98EE-CF3D-41f5-80E3-4AAB0AB04301}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\DragDropHandlers\{BD472F60-27FA-11cf-B8B4-444553540000}]
    @=""
    [HKEY_CLASSES_ROOT\Folder\ShellEx\PropertySheetHandlers\BriefcasePage]
    @="{85BBD920-42A0-1069-A2E4-08002B30309D}"
    [HKEY_CLASSES_ROOT\Folder\ShellEx\PropertySheetHandlers\Offline Files]
    @="{7EFA68C6-086B-43e1-A2D2-55A113531240}"
    [-HKEY_CLASSES_ROOT\Folder\ShellNew]
    [HKEY_CLASSES_ROOT\Folder\ShellNew]
    "Directory"=""
    "IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
      74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
      00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,33,00,\
      00,00
    "ItemName"="@shell32.dll,-30396"
    "MenuText"="@shell32.dll,-30317"
    "NonLFNFileSpec"="@shell32.dll,-30319"
    [HKEY_CLASSES_ROOT\Folder\ShellNew\Config]
    "AllDrives"=""
    "IsFolder"=""
    "NoExtension"=""
    ==================
    Once done, right-click the REG file and choose Merge. Alternately, you can open the Registry Editor and then using the
    Import option from the File menu, to merge the REG file contents.
    Let me know if you need any further help.
    Best regards
    Michael Shao
    TechNet Community Support

  • Can not see cFP-2220 after creating an exe file

    I am using a cFP-2220 with LabView 2011. I can see the cFP-2220 with Max, the program I created runs in my PC but the data from the cFP-2220 it is slow to up date.
    I access the cFP-2220 thru the network terminal and a net card in my PC.
    I have created an EXE file to run in the PC for that test stand as a stand along program. The program runs but it does not see the cFP-2220 or any of the data been collected. The test stand PC does have MAX install. When I run MAX in the stand PC it sees the cFP-2220 and can read the data from the modules the PC is wire to the cFP-2220 thru a net card.

    Sorry for the delay to respond... I do have installed the minimun files that are available  Field Piont 6.0.10 and LabView RT 11 is part of them.
    I also using share variables. The program VI runs fine in my PC but when I create the exe file and deploy on the test stand it asks fot the location of the FPLV,dll and the NI_TGT.dll and it can not read or write to any of the DAQmx vi's.
    I accidently remove one my FP-SG-140 from the list of inputs, I did put it back but I damage how the share variables weere working I am getting and error -1950679023 and it does not see any of my inputs.
    I have another question how do I down load the variables to the cFP-2220 that is another erros that shows up when I installed other files into the cFP.

  • How to create two different implementation class for a Control

    Hi,
    I am a newbie to beehieve. I want to know that is it possible to create two different 'Impl' classes for a Control. If yes then how do we instantiate them ? How can we chain them (something like calling one 'Impl' from the other one? Thanks in Advance!!!
    Regards,
    Abhishek

    You are sure you are in the right forum?
    This is the JDeveloper and ADF forum...
    Timo

  • Can I create an exe with report gen addon using office 2000 and run it on a PC with XP?

    I have create an executable using the report generation toolkit on a PC that has Office 2000. When I load the executable on a PC with office XP, It will not launch excel. Should the exe be compatible with either version of office? What do I need to do to make it work on both versions?

    Hi Budman,
    You should have created the executable in the way as is described here.
    On your target machine you have to use the _wordsub.llb resp. _excelsub.llb which belongs to the MS Office version of that machine. The different versions are on the installation CD of the toolkit.
    If you have these files in the support directory you do not need to create different exes for different MS Office versions.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Is there a way to create a reminder from a date that appears in an email?

    Is there a way to create a reminder from a date that appears in an email that was sent to me? I know that when a date is entered into an email I can create an event on my calendar for it, but is there a way I can have it be a reminder instead?
    Thank you

    Here is a method for extracting a still from iMovie 09.
    Are you working in iMovie and realize that certain frames in the movie would be perfect as photographs? Here is how to extract them...
    *To get a still frame from an Event*, right-click on the frame and select "Add Still Frame to Project". The still will be added to the end of the current project. Right click on the still frame in the project and select "Reveal in Finder". You will see a jpeg file that is highlighted. Drag this jpeg file in the finder to the iPhoto icon on your dock.
    *If you want a still from a project*, rather than an event, the process is similar, except you right-click on the frame and select "Add Freeze Frame", and it adds the freeze frame at the end of the clip rather than at the end of the project. Right-click/reveal in Finder, drag JPEG to iPhoto icon in dock.
    *If you are not using iPhoto*, and just want to save to your desktop, click Reveal in Finder as above, then COPY, then PASTE to desktop.
    Hint: If you do not want to clutter up your iMovie Project with stills at the end that you would have to go back and delete, then create a separate iMovie Project just for your stills, and follow the instructions for capturing stills from an Event.
    Note: If you do not have a right mouse button, then control-click will work instead of right-click.

  • Create an association in the folder options control panel.. pop up dialogue

    Installed on a win XP OS:
    Oracle Database 10g Release 2 (10.2.0.1)
    Oracle Database 10g Express Edition (Universal)
    Oracle Database 10g Express Edition (Western European)
    I keep getting this pop up dialogue box whenever I click go to Database Homepage.
    "This program does not have a file attached with it to perform this action. Create an association in the folder options control panel."
    I'm planning to learn Oracle and SQL*Plus so I'm not sure what version I need for basic usage. I only need the SQL command line and probably an application that can create database or tables easily.
    Any suggestion will be appreciated. Thank you.

    Thank you for replying Hans,
    I tried to type http://localhost:8080/apex into my browser, the result is:
    Unable to connect
    Firefox can't establish a connection to the server at localhost:8080.
    * The site could be temporarily unavailable or too busy. Try again in a few
    moments.
    * If you are unable to load any pages, check your computer's network
    connection.
    * If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.
    The SQL command line is working, but just going to the Database Home Page would result to that pop up dialogue box. Any idea why this is happening? Thanks.

  • Problem creating an association in the Default Programs control panel

    I have AOL mail.  I have typed a letter in WordPad that I want to send in an e-mail. I am receiving this message....There is no e-mail program associated to perform the requested action. Please install an e-mail program or, if one is
    already installed, create an association in the Default Programs control panel....I have a very basic knowledge of computers, so please consider this when answering my question....I do not have any idea what to do.

    Hi,
    So we are not using office outlook to send e-mail here?
    Regarding AOL mail issue, we'd better ask them here:
    AOL community support
    http://help.aol.com/help/microsites/searchEntry.do?tab=cs&searchString=how+to+send+text+to+aol+mail&radios=true&searchTitle=
    For how to create an association in the Default Programs control panel, we could take a look in the thread below:
    How do I create an association in
    the Default Programs control panel of Windows 7?
    Best regards
    Michael Shao
    TechNet Community Support

  • Create an association in the Default Programs control panel

    I have set an application (.exe) in the right click menu by REGEDIT-shell , and when I click on it this message appear : This file does not have a program associated with it for performing this action . Please install a  program or,if one is already
    installed,create an association in the Default Programs control panel , so how can I run it succeffully??

    Hi,
    What's your meaning by REGEDIT-shell? executable application belongs to Windows application doesn't need any other default programs open it. 
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default programs control panel

    I just installed Window 7 professional in place of Windows 7 Ultimate RC to which I subscribed. I was not pleased to do a clean install as opposed to an upgrade and was not informed about it.
    When I reinstalled Office 2007, my outlook does not work, although exchange on the web works. I get the following error message:
    There is no email program associated to perform the requested action. Please install an email program or, if one is already installed, create an association in the Default programs control panel 

    Louis,
    This issue may occur if the Outlook registry key is corrupted. When other programs try to use the Outlook Simple MAPI interface, they cannot retrieve the required information from the registry.
    You must first remove the corrupted Outlook registry key, and then perform a Detect and Repair operation to have Outlook rebuild the key. To do this, follow these steps:
    Click Start, and then click Run.
    In the Open box, type regedit, and then press ENTER.
    In Registry Editor, locate the following subkey in the registry: HKEY_LOCAL_MACHINE\Software\Clients\Mail\Microsoft Outlook
    Select the subkey, and then press DELETE.
    Click Yes.
    Quit Registry Editor.
    Start Outlook.
    On the Help menu, click Office Diagnostics.
    Follow the instructions on the screen to complete the repair.
    Important: Above section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
    322756  (http://support.microsoft.com/kb/322756/ ) How to back up and restore the registry in Windows.
    Hope above information helps.
    Pooja Katiyar

  • When running setup, I get"This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel.

    whe I try to install Firefox 4.0.1, I get a Red X message. ""This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel. Is there a fix?

    I Did that. When I try to install, I get the same message. I have come to believe this is a windows 7 or IE 9 problem. I also have active X problems that I can not resolve. I can not open Gmail also

  • How to create an exe in labview 6.1

    I'm having a main vi which in turn has many subvis.I want to create an exe for that application.

    You need the Application builder for this. The application builder can be purchased seperately from National Instruments. It is included only in the Prefessional version (contrary to my logic, it is not includedin the "full" version).
    If you already have the Application builder, the procedure should be listed in the manual.
    Shane
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

Maybe you are looking for

  • Can we get data from business views  in CR 2008/XI?

    Hi All, Can we get data from business views  in CR 2008/XI? If its possible, pls let us know how to get connect with Business View in both of these versions and what is the tool that we have to use to create Business Views. Thank you, Krishna Pingali

  • Global attribute wierdness

    I am running across some unexplainable behavior with Global attributes. I have a simple field form and a update workflow. When I check out the user view, it correctly populates all my form fields with the current values. I'm using a simple "userView.

  • Laserjet 500 color consuming color toner printing black and white text

    How can I prevent the consumption of color toner when printing black/white text documents (pdf in Adobe Acrobat)??? I just finished printing about 2200 2-sided pages in Adobe Acrobat pdf files, all black/white text, on my 500dn.  The color toner appe

  • Both itunes and quicktime just stopped running

    Just recently, my itunes just stopped working. At first it was perfectly fine, then it couldn't read anything from my ipod, then it just wouldn't start up. I kept receiving a message "Itunes cannot run because it has detected a problem with your audi

  • Pods are open but not visible????

    I have opened the project and moved the pods (Project Manager, Project Set Up, etc) around but seemed to have moved them to far up and now they are not visible on the screen.  I have tried closing the project and re-opneing it... hoping the pods woul