Call VI in EXE but have it execute in Developmen​t Environmen​t not Run Time Engine

I am working on building a palette editor for distribution of a reusable code library for my company (I know the VIPM does this very well already).  I have the code complete and am trying to create an executable that I can distribute that will call the code I wrote to update/create the palette .mnu files for the reuse library, which lives on the company network.  I am using the Palette Editing VI's and it seems as though they cannot be built into an executable.  So I wrote some code to dynamically call my palette modification code (I call it the Reuse Library Manager).  When my executable calls the Reuse Library Manager dynamically I get a broken run arrow on the Reuse Library Manager front panel and the following reasons for the broken arrow:
It seems to me that the reason the Reuse Library Manager works when called in the development environment and not when called dynamically is because the dynamic call uses the run time engine for execution.  This made me think of how in the VIPM it opens LabVIEW while it installs packages.  If anyone knows, does the VIPM open LabVIEW in order to run the Palette Editing VI's or is it for another reason?  If it is this reason how can I force the dynamically called VI's to run in the development environment by opening LabVIEW programmatically from an executable that is running in the run time engine?
Let me know where clarification is needed.
Message Edited by jmcbee on 04-28-2009 10:00 AM
CLA, CLED, CTD,CPI, LabVIEW Champion
Platinum Alliance Partner
Senior Engineer
Using LV 2013, 2012
Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Attachments:
Reuse.PNG ‏14 KB

Hi jmcbee,
      In spite of years of using LV and building a resuable library of code, I've done very little with customizing the standard paletts, however,
Many times when deploying a new distributable I've seen a dialog like what you posted.  In most cases the problem was solved by rebuilding distributable to include the missing VIs.  In one case I added the VI-lib to the target-platform and made-sure VI-lib was in distributable's VI search-path.
There are two ways I know of to build distributables which include the VI-lib code,
1) Include all VI-lib VIs when building the distributable
 - In LV 8x, uncheck "Exclude Files from VI lib" project-property.
 - In LV 7.1 it's possible but I don't remember how! (probably a post on it around here.)
 - This can add an enormous number of un-needed VIs (see this post.) 
2) Re-write the VIs so that they are no-longer identified with VI-lib and get included "naturally".
 - Open each VI diagram, select-all, paste in new/untitled diagram.  In your case naming will be tricky, but it's doable.
 - This is a great advantage in 8x as it allows LLBs to be built with File\Save As\Create Hierarchy.
In addition, here's a tool to call following "Open VI Reference" (if it returns an error.)  This VI open all broken children making it much easier to identify specific missing parts (typically VI-lib.)
Luck/
Cheers!
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Attachments:
Util.VI.OpenBroken.vi ‏57 KB

Similar Messages

  • Visa Control grayed out when executable used with Run-time Engine

    When I run an executable on a machine with only the Run-time Engine the Visa Control for Com Ports is grayed out. I'm guessing that I am missing a library, but do not know which one.

    You need to install the VISA run-time. If you are just using VISA for serial communication, then there is an option on the app builder (Installer Settings>Advanced) for Serial Port Support. This will add a much smaller version of the VISA run-time engine to the installer you create. If you are using GPIB, etc., you have to install the hardware driver (i.e. NI-GPIB) and the full VISA run-time engine.

  • The Elements 12 Mac disk works fin - I also have a Dell, and the Windows disk will not run at all, sounds like it's grinding, and is almost impossible to remove from the hard drive.  I cannot find any place to tell me who to CALL to ask for a replacement!

    The Elements 12 Mac disk works fine - I also have a Dell, and the Windows disk will not run at all, sounds like it's grinding, and is almost impossible to remove from the hard drive.  I cannot find any place to tell me who to CALL to ask for a replacement!

    Hi Samcat,
    You can use a download instead of the disk as an alternative: Adobe - Download free trial version Adobe Photoshop Elements 12 | Adobe you can license with your serial
    Please test the disk in another windows machine to check if it's caused by the drive or the disk. If you tested with 2 drives please start a support case, i assume Adobe will only provide downloads at this point. They are the same as the trials. If you still need a disk you can burn the trial to a disk as a backup disk. Good luck!

  • Executable not working - Looking for LabVIEW Run-Time Engine

    This has been one of those days.
    I'm trying to create my .exe file to place onto another computer. I've done this before with success. But that was then and this is now.
    I believe I have all the files I need in my LLB, and I believe I did my application distribution correctly and I believe I built the DLL correctly. But when I took the resulting .exe file and placed it on another computer and attempted to run it, it gave me the error message: "Unable to locate LabVIEW Run-Time Engine. Program requires a version 7.1 (or compatible) LabVIEW Run-Time engine. You should have already realized this, you moron."
    Anyone have any idea where I went wrong or what step I might have missed? This has been a crazy, non-stop, massive brain fart of a day and I can't seem to remember what I'm missing here.
    Amateur programmer for over 10 years!

    Hi.
    Whenever you want to use executables or .dll's created with LabVIEW you must make sure that the LabVIEW runtime engine of the SAME version as the LabVIEW version used to create the files, is installed in the target computer.
    There are basically 2 ways to get the run-time engine installed on a computer:
    1. (the one I prefer): Download the correct version of the LabVIEW run-time engine installer from www.ni.com/downloads, or more specifically from
    http://digital.ni.com/softlib.nsf/websearch/369618​104E25B08E86256F54006A4E2F?opendocument&node=13205​0_US
    for the latest one. Once you have the installer for the run-time engine, just install it in the target computer. I prefer this option because the run-time engine is installed independently, so if you then uninstall your program, the run-time engine remains.
    2. Create an installer for your program that includes the run-time engine. To include the run-time engine, when you are creating your application, go to the "installer settings" tab, click on "Advanced" and make sure there is a checkmark on "include LabVIEW run-time engine". This way when you install your program in the target computer, the run-time engine will also be installed.
    Just as a note, any computer with LabVIEW on it, will also have the run-time engine.
    Good luck.
    Alejandro

  • I have trouble in building stand-alone application, "you must intall Labview run-time engine on any computer on which you want to run this application"

    I have installed the LabVIEW 7.0 run time engine and checked all in the advanced setup on the installer setup slide. but I still get such a message saying that the target computer needs to have LabVIEW 7.0 run-time engine. What I want is a real stand-alone application even without having labview ... I used to think that's due to my program contains MATLAB nodes. But this is not true, since even without Matlab, it's still wrong. Please help, thanks!!!

    As was stated elsewhere, you have the option of building the runtime engine into your application when you build it. However, you can also create a "runtime engine application" by simply opening the application builder and doing a build without adding any source code files. The result is a small program (named lvrt.exe) that can run any LabVIEW code--whether or not its built into an executable.
    Such an application can be helpful if you are wanting to install several LV-based applications on the same computer in that it reduces the amount of redundant code on disk. All you have to do is make sure that Windows on the target computer associates the llb and vi file extensions with the runtime engine program.
    It can also be helpful during testing to run test code that isn't built into an executable.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Why is VI not executable using Labview 7.1 Run-Time Engine?

    Hi,
    In our Teststand sequence, we have a Labview Action step which is returning an error: "The VI is not executable", along with the error code: -18002.
    This error occurs on a Production PC using the L.V. 7.1 Run-Time Engine.
    I'm aware of Mass Compiling to ensure all the VI's are the correct version, but this has not resolved the problem.
    The software was installed on the production PC using a Teststand created installer, with the Labview Adapter set
    correctly to the Run-Time Engine, i.e. not trying to open the Labview Developer Server to execute the step at run time.
    Because it's the 1st Labview module to be executed, I added another similar step to run beforehand, i.e. the new simple
    Labview code ran first. This executed correctly, but then the next step caused the error above.
    The small number of associated sub-vi's are on the target PC, and have been mass compiled.
    I've had -18002 errors before, but this is one I cannot cure.
    All suggestions gratefully received.
    Gary.

    Hi Guys,
    Regarding this -18002 error when using the Run Time Engine instead of the Development Environment, what is the VI within the step that is failing (in any of the cases you've mentioned) trying to do? Are they built around any toolkits?
    In my experiments with a simple VI (with just a user dialogue) using the LabVIEW 7.1 RTE in both TestStand 3.1 and 3.5 this morning, I haven't found any issues
    There is a possibility if any of the sub-VIs or toolkits you use contain a Merge Errors.vi, that the Run Time Engine picks up a copy of the VI built for previous versions of the RunTime Engine (due to the order in which the sub-VI directories are scanned), and it cannot convert it.
    There are a few solutions for this, the easiest one looks to be to copy the error.llb\Merge Errors.vi for LabVIEW 7.1 into the same directory as the VI you're calling (so TestStand can pick it up easily).
    Can you let me know if this solution helps at all? If not, would it be possible to post up any of the code or sequence you're having problems with?
    Best wishes,
    Mark
    Applications Engineer
    National Instruments

  • Does labview run time engine 8.6 LVRTE86std​.exe supports DAQ?

    Due to the LONG TIME required to build an installer with exe, and this kind of DAQ issues http://forums.ni.com/ni/board/message?board.id=170​&message.id=324343&query.id=1071542#M324343
    I want to just give the user the Labview run time engine 8.6 LVRTE86std.exe  http://joule.ni.com/nidu/cds/view/p/id/1101/lang/e​n , and ask them to copy paste the exe.
    But does the LVRTE86std.exe contains all the necessary dependency for DAQ? Including the Sound and Vibration dependencies required for DAQ? Is there some document I can look up to see whether LVRTE86std.exe supports DAQ and I dont have to build an installer of my own?
    Solved!
    Go to Solution.

    No, the runtime does not include DAQmx. It does not include any hardware drivers. That is discussed in numerous posts.

  • Calling a VI which uses "system exec.vi" with LabVIEW run-time engine as adapter

    Hi,
    My TestStand sequence calls a VI which includes a call to "system exec.vi". When I try to load it in TestStand and if LabVIEW adapter is set to run-time engine, I get an error message "Unable to load Vi...". If I switch the adapter to "Development system", then it works fine.
    Is there any way to use "system exec.vi" in a VI which is called in TestStand with LabVIEW run-time ?
    Thanks,
    Alex
    Solved!
    Go to Solution.

    Hi Alex,
    In you case, you are getting a -18002 error.
    The reason is explained in the following link:
    -18002 Errors in TestStand
    http://digital.ni.com/public.nsf/allkb/D82FEAF0B4BA293A862575710053E252?OpenDocument
    Please have a look at the 2nd reason. This is your case.
    Hope it helps,
    Regrads
    Julien De Freitas / Applications Engineer / Certified LabVIEW Developer (CLD)
    National Instruments Switzerland

  • Include run time engine exe

    Hi
    I woul d like to know how sould I have to do to include run time engine ni daq driver741 and my application in the same executable file truth  application builder?
    thank you
    Olivier

    olivier66 wrote:
    HI and thank you again
     I
    just want to know if its possible to create the installer for win98
    because aparrently if you clic on the tab advanced in the installer
    properties you can only choose to build it for windows 2000 at least.
    I guess it is not possible so Is there anonther way to do that?
    thanks in advance
    Olivier
    LabVIEW 8 is only supported for Win2000 and XP. If you need Win98 support you need to stay with LabVIEW 7.x.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I have a Novatel U998 Turbo Stick that will not run on Lion because it is designed for 32 bit. HELP

    I have a Novatel U998 Turbo Stick that will not run on Lion. Can Lion be run as 32 bit? If so - how??

    Lion includes a hybrid Kernel, as well 32bit and 64bit core OS. By default it will boot the 64bit part.
    press 3+2  keyboard combo on bootup. This forces 32bit mode for the Kernel ( the apps are still 64bit default ). 6+4 will force 64bit mode.
    The 32bit Kernel can load 32bit drivers ( kernel extensions = *.kext files in /system/library/extensions ).
    The 64bit Kernel will not load any 32bit drivers
    if a Application makes problems in its native 64bit mode, you can force it to run in 32bit compatibility mode by revealing it in Finder, "get-info" on the Apps Icon and checkmark "run in 32bit mode".
    No matter which kernel is booted, 32 or 64 Lion can always execute 32 and 64bit apps.

  • I have a problem with the touchsmart 420pc, after a running time (2 hour approx) is turned off,

    good afternoon, I have a problem with the touchsmart 420pc, after a running time (2 hour approx) is turned off, probably warming, but this rare, is suddenly going slow parapadear and image.
    also sounds like when damaged ballasts for lamps,
    ANYONE know what could be the cuasa and / or what is causing this.
    greetings and thanks in advance

    Hi,
    Please write your TouchSmart model number, which system are you using and country of purchase.
    Resource:
    How Do I Find My Model Number?
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • Labview Executable with VISA functions in Run Time Engine

    Hi Everybody
    I designed a gui to communicate using VISA GPIB. I created an executable for the gui. I also installed LabView Run Time Engine on the desired machine. I recieved couple of errors, for which I copied the files visa32.dll, NIVISV32.dll and serpdrv to the folder with the executable.
    I recieved the following error, ' Initialization of NIVISV32.dll failed. The process interminating abnormally.'
    Are there any drivers I should install in addition to the Run Time Engine? If so, where can I find these drivers?
    Thank you
    Jackie

    I installed NI-VISA with similar version as my development installation, and LV runtime engine. Labview still crashed.
    I noticed certain library functions in full labview that is not present in the NI-VISA + LV run time directory, such as _visa.llb etc.
    Do I need to copy these additional library functions too? Will Run Time Engine read these library functions?

  • Call a VI whith the Run-Time Engine in TestStand

    Hi,
    I'm using TestStand 4.2.1. On the same PC I've installed LabVIEW Run-Time Engine 2009 (9), 2010, ...
    On another PC I developped a series of VI with LabVIEW 2010. My client want VI in the 2009 version, that's why I use a Run-Time Engine.
    I placed an action step, selected my VI and the adapter was not able to load the VI (as viewed in the attachment).
    Before I had selected the right Run-Time Engine (in Configure -> Adapters), and I saved the VI in the 2009 version (instead of 2010).
    What is the problem ?
    Another problem is that in an other VI I use an XML library (the default in LabVIEW), How convert the entire library in the 2009 version ?
    Thanks for your help
    Attachments:
    Erreur VI.png ‏975 KB

    Hi,
    One way to check if vi's are compiled in LV2009 is to select menu item 'View VI Hierarchy' from the top level vi.  Then select 'View>Full VI Path in Label' and 'Always Show Labels'.  Check that none of the VI's are in the LV2010 paths.
    To fix, you may have to create a project (File>New Project from your top level VI - Add the VI to the project when prompted).  Right click on the Build Specifications and create a new 'Source Distribution'.  Check that under 'Additional Exclusions' that VI's in vi.lib, user.lib, and instr.lub are not excluded.  This should package up all of the VI's into a library that will run in the LV2009 RTE.
    Thanks,
    Jim

  • I love firefox 3.08 but when I install any improved versions they will not run on my desktop even when I have disabled all add ons and the firewall, can you help?

    my system is Windows XP Media Center 2005 Hp model
    I use Avast anti virus but have disabled it when loading firefox
    I removed the Mcfee firewall which I thought might have stopped it running
    I disabled all the add ons in case that was the problem
    The internet explorer which I dont use as a browser has loaded up the inbox which ss very hard to remove
    I have tried all the suggestions in the support section without success
    please help as the message on the screen reads that the firefox version 3.08 is no longer secure.

    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!

  • Open Registry Key VI. Error -604. But just under Run Time Engine (RTE) when no admin rights

    Hi,
    When I run my code under RTE I'm getting -604 error saying remote access to registry denied.
    To make it work I have to grant admin rights to the user, and then I can run my code under RTE.
    The problem doesn't exist under Development Environment. The user can have no admin rights to be able access the registry.
    OS: Win7 x32
    Any suggestions?

    Well in the RTE it's an executable so I expect UAC has a look at what the exe tries to do. Also...are you running the development environment on an account with administrator privileges / UAC turned off? (I do development on a PC with local admin rights....and/or when LV installs it requests to always run with elevated privleges).
    I think there is a way to get an application to declare it needs elevated privileges at install/run-time somehow but I never really figured out how to do this.
    (Because to install the software you need admin rights so while installing it can do other things...which is why you can set registry keys in your installer)
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

Maybe you are looking for

  • Help with Lumia 920 Exchange/Outlook sync email be...

    Hello, I am pretty proficient with Windows Phones. Have had a Focus, and Lumia 900. Now have the 920. Love it, except will NOT sync with my work email, which is Outlook/Exchange. Didn't have a problem with the Lumia 900 doing it. And the 920 will syn

  • ISight G5 and Third Party Modems

    I just received my 20" iMac and transferred over all my files smoothly from the Powerbook. One area that is causing me problem is the dial up modem. I won't have access to broadband until 2006 so I was keen to use my old usb modem in the meanwhile. C

  • Why does an error occur everytime I try to download and installation of apps?

    A message pops upp everytime I try to download an app saying: The downloaded files appears to be damaged. Click cancel, wait a few minutes and try again. I've tried doing as the messages says a cupple times, it's not working.

  • N95 Flashing message question

    The message symbol on N95 has just begun to flash. I have cleared all my data including the data in SIM message and it still is flashing and won't let me send or recieve messages. Any ideas....thanks

  • Problem with Help Link in search result screen of PCUI

    Hi,   I am trying to access the pcui applications that came out of box with crm using BAB,everthing is working fine but got a problem with "Help" link in top right (beside personalize link) the search result area of all the PCUI screens. when i click