Embedded Labview exe in a LabView program

Is it possible to integrate an exisiting LabView *.exe file in another LabView vi or LabView project?
The existing LabView *.exe does output some measurement data on the front panel, but I would need this data written e.g. to an Excel sheet. So I thought it must be possible to embed the LabView *.exe file into another LabView vi, that reads data from the *.exe file and writes the data into a data file.
I don't have access to the original LabView program, before it was converted to an *.exe file and I don't know the settings used to built the *.exe.
Toodles,
Optimike

Without testing I'm not sure if it is working.
Maybe you should be able to open an application reference to the application. You should add the entries for VI Server in the configuration file to listen on a specific port. In LV 8.6.1 you can open the application with this port. With this reference you can try to open a VI reference for the VI from which you want the data. Use Get CTRL Value to read the data from the control.
The application must be running before you can do this. For the final solution you must make any error handling on errors by the Open Application Reference primitive.
The thing I'm not sure about is if this will work across different versions of LV.
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

Similar Messages

  • LabVIEW Program not running if i lock my PC (using an EXE made from LabVIEW)

    Hi everyone 
    I observed some odd behavior when I was running my program on a PC. I prepared an EXE for a LabVIEW program, this am running on another PC. Purpose of the program is to read a text file and follow the command given in that text document, we are accessing parallel port, calling third party EXEs in this. It is not running when I minimize the window or lock the PC. Do we have any property in VI properties for this?
     Please help me in this.
    Thanks
    Anil

    Hi Anil,
    Minimizing the application or locking Windows should not stop the executable from running. Can you reproduce this behavior on the development PC?  Also try to create an executable with a simple VI that counts the number of iteration and check for this behavior ?
    Tunde.

  • I have Labview 5.0 and I can't run a program it gives me a runrime error C++ relating to the Labview exe file. Do you know where to start to fix this?

    I've had this version for quite a long time and haven't had any problems with it. When I start Labview normally it seems to work fine I can look at individual Vi's and such but when I go to start a Vi program or even the tutorial it gives me a "Runtime error message C++ 
    C:\Program File\National Instruments\LabView\LabView.exe  abnmormal program termination." I'm not sure if it is a computer problem DAQ card (PCI 6023E) problem or a software glich. If you have any ideas of where to start tracking this down please let me know ASAP. It is a work stoppage situation.
    Thanks for your consideration
    Maurice Massey
    UES,Inc

    Have you tried doing a repair or reinstalling?

  • Runtime Error: abnormal shutdown of c:\program files\...\labview.exe

    Okay.  I've just upgraded to labview 8.0 last week and have been using it without error until the program hung when I opened it one day.  To remedy the situation and after waiting a while, I "ctrl+alt+del"ed it and forcebly closed the application.  From then on, the main lab view program will not function.  I get a runtime error saying that the program (c:\program files\...\labview.exe) was shutdown adnormally and to consult with the software manufacturer. Other NI applications function without error (ie: Measurement and Automation Explorer, Previous versions of labview, etc).
    I tried to reinstall the upgrade to no avail.  Leason learned:  ctrl+alt+del is evil.  If you have any ideas, I would greatly appreciate any input and I will relay the results.  Thanks in advance. 

    Hi Wiztrek,
    This does indeed sound like an odd error/situation. We'll do our best to get it sorted out for you though! A few questions for you:
    1. What kind of computer is this? Laptop, server, desktop, etc?
    2. What OS? Service Pack (if applicable)?
    3. When does it happen? You mentioned the splash screen -- is that as far as it gets?
    Something you could try (and this is a shot in the dark) is to rename or delete the LabVIEW.ini file (it's in the same directory as LabVIEW.exe). If that doesn't work, I think a reinstall is best to try to fix it. Remove LabVIEW 8.0 from your computer via Add/Remove Programs. Then completely delete the "LabVIEW 8.0" folder from "Program Files/National Instruments" on your harddrive.  
    When you run the installer again (after rebooting of course), make note of any errors you receive (if any). Try following the steps outlined in this KnowledgeBase -- we might get something useful out of the install log:
    How Do I Generate an Error Log File for a Software Installation?
    I hope this helps shed some light on the issue - let us know what you find out!
    Charlie S.
    Visit ni.com/gettingstarted for step-by-step help in setting up your system

  • How to send a command from a vc++.exe to LABVIEW.exe in order to control the button on the LABVIEW.exe

    Hello, everyone. Using VC++, I have gotten the handle of a *.exe(built by Labview), but I cannot get the button handle. I want to get the button handle and post the message to control the button. How can I do that? When I use the SPY++, the *.exe(built by Labview) have not any child windows which is very different from the *.exe(built by VC++). In SPY++, what is the LVDChild class? How can I send the message to control the button on *.exe(built by Labview)???
    That is  to send a command from a vc++.exe to LABVIEW.exe in order to control the button on the LABVIEW.exe. How can I get it ?
    Thank you!

    hummingbird wrote:
    Thank you! But I dont kown how to use vi server to raise a value signalling event. Can we put vi server into the vc program? Can you give me some more information or some examples, hehe!
    hummingbird
    Checkout the LabVIEW ActiveX server interface in the User Manual in Chapter 20, Windows Connectivity and the VI Server Reference in Chapter 17, Programmatically Controlling VIs.
    There is a sample for Visual Basic under examples/comm/VBtoLV.frm, which should be quite simple to translate to Visual C as long as you can figure out the basics of ActiveX programming in VC (I have never done anything with ActiveX in VC). For those basics I would recommend some text book or MSDN.
    Rolf Kalbermatter 
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Is there a way I can save switch settings so when I reopen a Labview exe it remembers how I set my switches?

    We are using Labview to create a exe file. However when a user reopens the exe all the user settings in the labview exe are lost. These settings are mostly switches either turned on or off. I would like to find a way so that once the switches are set each time you reopen the exe file the switches are as you left them set.
    I am very new to Labview so any help would be very much appreciated.

    I think your best bet is go to the File I/O>Configuration File VIs and create an .ini file. When you program starts, it would read the file and set the controls using local variables. Then, prior to exiting, get the control values and write them to the file. You could even read and write different files - allowing for a whole lot of different configurations to be saved. In the shipping examples, go to Fundamentals>File Input and Output>Read Configuration Settings File.vi and Write Configuration Settings File.vi to get a basic idea of how the functions are used.

  • How to link a exe file in labview

    hlo
    I am using labview 7, is it possible to link a .exe file to labview,
    i am using a stepper motor controller i have their software to control & set & change settings etc.. & that is a exe file which is a dos based programme, is it possible to link that exe to labview, & i should open & run that programe (motor controller) from labview.
    thanks
    sasi

    Try to launch it with "system exec.vi." This function can execute command line commands and should be able to launch any executable.
    aartjan

  • Running exe files in labview (or alternatives)

    I am currently trying to make LabVIEW communicate with a DT3155 frame grabber. It reads exe files programmed in c. I initially wanted to call the dll libraries of the frame grabber and rewrite the code into sub-VI's, but then realized it would be much too big for me to make. Is there any way to call on exe files in LabVIEW, so that I can run a program whenever I wanted to perform a function? And if not, what other options can I consider utilizing? Sorry if this question is too basic, I'm just starting to learn LabVIEW. Thanks in advance for any help you guys can offer to me. ~Josh

    To run an EXE, you can use the System Exec function on the communications palette. You can pass command line parameters to the EXE. The tricky part is usually getting the EXE to pass data back to LabVIEW. I did a Google search for DT3155 and LabVIEW and found a couple places that sell LabVIEW drivers. This is the option that I would go with. One of them is at http://www.alliancevision.com/net/lv_driv_frmgb.htm.

  • Labview.exe error is generating

    It is giving me labview.exe has generated error message, when I am trying to generate, data log file with time stamp, to find last run of my program. I have attached the vi here.
    Message Edited by Support on 04-13-2006 10:46 AM
    Attachments:
    get_last_run.vi ‏69 KB

    I'm assuming that the VI you posted is running as a subVI in your main and that you are getting the path somewhere else. If that's the case, then you should know that the path to a folder is different when you build a executable. For example, if you use something like Current VI's Path, in the development environment, it might be something like c:\folder\example.vi. In an executable, the path would be c:\folder\application.exe\example.vi. You need to do an extra strip path in an executable. You can use the Application property called Application.Type to determine whether or not you are working with an exe or development system to decide whether or not to do an extra strip path. There have been numerous postings on this exact same topic and if you need example code, you can search the forum.
    p.s. It's not a good idea to post your phone number and email address in a public forum unless you enjoy spam and unsolicited phone calls. It's also a bit unreasonable to expect the users of this forum (most of whom do not work for NI) to respond directly to you.
    Message Edited by Dennis Knutson on 04-13-2006 09:22 AM

  • How to run labview exe with command line

    I would like to launch a labview exe with a command line.
    I would like to get advice how to launch the Labview exe with giving values to the control parameters?
    You can view the example where x,y are the controls
    Solved!
    Go to Solution.
    Attachments:
    exe.png ‏65 KB

    There is a much more detailed guide here, which I reference below:
    1. First you will enable it in the settings:
    1. Open the properties for the application's build specification
    2. Navigate to the Advanced category
    3. Check the Pass all command line arguments to application box
    To pass the command line arguments to the application and access them in your code follow the same steps as for LabVIEW 7.x.
    2. Then you will use two hypens (--) to pass command line arguments to the VI. 
    When you launch LabVIEW or a stand-alone executable from the command line, you can pass user-defined arguments to the application. User-defined arguments start after two hyphens (– –) surrounded by spaces in the command line. For example, the following command line entry will launch LabVIEW 7.1 and open test.vi from the root of C:\ and pass 2 arguments, 1000 and sine:
    "C:\Program Files\National Instruments\LabVIEW 7.1\LabVIEW.exe" "C:\test.vi" –– 1000 sine
    You can also pass a command line argument directly to an EXE without launching LabVIEW, as long as the machine has the appropriate Run-Time Engine and necessary drivers.  For example, if test.vi was built into an executable, it could be called as follows:
    "<build directory>\test.exe" –– 1000 sine
    3. Lastly, you will use a property node to wire them to your controls:
    LabVIEW passes the arguments from the command line to the block diagram of the VI or EXE you launch. You can reference the arguments in the block diagram by using the Application:Command Line Arguments selection in a property node, as shown below.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If someone helped you out, please select their post as the solution and/or give them Kudos!

  • Occasional error message saying "Labview.exe has stopped working"

    Hi,
    I am using Labview 8.0 on a Windows Vista operating system to communicate with lab instruments through GPIB. Occasionally, when one of my programs finishes running, an error message appears saying "Labview.exe has stopped working". The error window gives me the option to close the program or debug. After clicking debug, Windows cannot find the source of the error and the all labview applications get closed. Any ideas? Thanks.

    The code that I have been having an issue with is attached. The main program is called "Frequency Sweep Real Time2". The other two attachments are subVI's used within the main program. I am a young programmer and I have never had any official training with Labview so sorry if my Labview programming is unconventional or just plain bad. Thanks to whoever looks this over.
    -Ryan
    Attachments:
    Frequency Sweep Real Time2.vi ‏443 KB
    Read multiple values.vi ‏26 KB
    Save_data2.vi ‏22 KB

  • Labview exe with HTML reports

    Hi,
    I am building an exe of a program that use some simple VIs to generate an HTML report (so I didn't need Report Generation Toolkit);
    in the build I found a lot of VIs included in 3 directories: NI_HTML, NI_Reports, NI_StandardReport....are all of them necessary??
    Is there any way to avoid this? Shoudn't the RunTime engine include them?
    I am using Labview 2009
    thanks
    CLD - Labview Certified Developer
    Solved!
    Go to Solution.

       Although I've used the Report Generation Toolkit for some projects, I have avoided using it for those deployed as executables ever since the LVOOP transition caused the distribution to blow up.  I'm looking for an html solution again for an executable.  Is anyone aware of a third-party html LV tool that can create simple reports and doesn't require the Report Generation LVOOP bloat in a distribution?
    Thanks,
       DaveT
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

  • LabVIEW exe. with 2 USB Daq devices

    Hello All,
    I am trying to build a LabVIEW exe. with two USB 6210 data aquistion modules plugged into a USB hub installed inside a 19" rack. I used the DAQ Assistant to generate the LabVIEW code for the aquisition and it works fine. However, when I disconnect the USB cable from the development machine and reconnect later, my I/O are mapped to the wrong modules. Is there a way to map my channel names to the actual module, maybe in MAX, and just include the Max configuration file in my exe? Can I use the DAQ assistant,  or do I configure the physical channel names and create my own tasks in MAX and not use the DAQ Assistant?
    Any help would be appreciated.
    Thanks

    Hi Botman,
    Unfortunately you are in a unique situation in that you have 2 of the same type device that are removed from the system and reconnected to the system at the same time.  However, it is probably not guaranteed that one device will be detected before another consistently.  Given your situation I would recommend that you set up your application to programmatically discover the devices in your system.  There is an example program here that demonstrates how to do this.  In your case I think detecting by serial number would be ideal.  All you would need to do is include the LLB file in your project to ensure that all of the necessary VIs are included.
    Keep in mind that this will require some modification of your code.  You will need to use the lower-level DAQmx functions rather than the DAQ Assistant (which basically serves as a wrapper around the lower-level functions).  In the end, adding the VI from the example program above and using lower-level DAQmx functions will make your code more robust because distributing the executable to another system (or even using it on the development system) will not require the user to interface with MAX at all.  Let me know if you have any other questions.
    Regards,
    Andrew W
    National Instruments

  • How do I troubleshoot installation/distribution of a LabVIEW .exe which processes data using Matlab when it works on some computers but not others?

    I've been given the unenviable task of troubleshooting and installing/distributing software written by a former co-worker. I've modified the LabVIEW code and built an .exe file. I've successfully installed the Labview .exe file on several computers, but it won't work on some others. What's more baffling is that I installed it successfully on one computer, uninstalled it, and tried reinstalling it with no success. In fact, it's a new error (Dr. Watson for Windows NT application error). It doesn't help that I have different versions of LabVIEW and Matlab on the target computers. Some have LabVIEW 5.1, some
    have 5.0, and some don't have it at all. Some have Matlab 5.2, some have 5.3 (R11) and some have 6.0 (R12). It's also not clear to me where the Matlab m files should be located. I'm not sure if it's a LabVIEW Runtime Engine problem, or if it's a Matlab problem. I've also wondered how LabVIEW and Matlab talk to each other. When LabVIEW calls Matlab, it seems that Matlab is running in the background. In other words, clicking on the Matlab Command Window and typing "whos" or any other command/variable doesn't work.

    Jay del Rosario wrote:
    >
    > How do I troubleshoot installation/distribution of a LabVIEW .exe
    > which processes data using Matlab when it works on some computers but
    > not others?
    Poke around zone.ni.com and
    http://digital.natinst.com/public.nsf/$$Search/ .
    Good luck, Mark

  • How do I make a labview exe to run like a windows on-screen keyboard

    Hi,
    I am trying to run two labview exe simultaneously. Work of exe 1 is to control some hardware and work of exe 2 is to wait for user event, once user press a button in exe 2 it has to exit the exe 1 and restart it.
    Problem here is exe 1 uses the whole screen to run(1024*768), when I click any button in exe 1 the exe 2 goes backwards so I am not able to use the exe 2.
    Thanks,
    Vignesh

    Don't make them modal window...!!
    Edited: hyperlink added to the text.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

Maybe you are looking for

  • Backspace safari nightmare

    On my iPad 2-3G, when I am in Safari, on a google blogg page, I want to leave a comment. If I make a mistake, use backspace and then the keyboard (virtual keyboard) breaks. Nothing else works. I Have to close safari and reopen and pray I don't make m

  • UTF-8 character encoding not working in Firefox

    I have a jPlayer playlist that works fine in all browsers except Firefox. The issue is with non-standard characters, i.e. characters with accents or asian characters. I have set up a demo playlist so that you can see [http://monthlymixup.com/mixups/j

  • Helping getting ipod out of recovery mode

    i was updating my ipod touch to iOS 4.3 and it said there was an error at the end, and now my ipod is in recovery mode. itunes is telling me to restore it. i dont want to loose my data because if i restore i will loose everything. is there a way to s

  • Service PO , invoice tab control indicator

    Hi, I am facing a problen in PO with item cat D. while creating a PO, system check for the check box " service based Inv ver" is checked or not (invoice tab). this check box check is mandatory and if this is not done the the system does allow to save

  • Passing array of values from front panel to menu

    I am working with a group programming a multichannel current stimulation device and we are currently having trouble setting up the run time menu. The burning question that we have is trying to figure out how to pass an array of values from the front