How do I run a labview executable from C++

I have an application written in C++ that runs some VIs in the Labview Development Environment. I'm using Labview 6.02 and VisualC++ and the runtime engine is installed. What I want to do is not use the LDE and just call the LV executable from C++. I found some documentation but what I tried is not working for me. What I am looking for is a good example of C++ code that runs a LV executable.
The help would be appreciated.

> I have an application written in C++ that runs some VIs in the Labview
> Development Environment. I'm using Labview 6.02 and VisualC++ and the
> runtime engine is installed. What I want to do is not use the LDE and
> just call the LV executable from C++. I found some documentation but
> what I tried is not working for me. What I am looking for is a good
> example of C++ code that runs a LV executable.
> The help would be appreciated.
>
One possibility is to think of the LV executable the same as an
executable built with any other development tool. Invoke it using the
command function that launches via the command line or a fork command.
Another possibility is to make a DLL instead of an EXE.
Finally, you have the option of using the VI Server through a
ctiveX.
This will work better if you have only one of the executables or the LV
editing environment on a particular PC.
Greg McKaskle

Similar Messages

  • How can I run a labview executable file inside a VI

    How can i add and run a labview executable file inside the vi and grab the output of the executable file to be used in the vi?
    mytestautomation.com
    ...unleashed the power, explore and share ideas on power supply testing
    nissanskyline.org
    ...your alternative nissan skyline information site

    Hi cmdrb,
    to run an executable you use SystemExec function.
    To get the output of your (LabVIEW-made) executable you need to program some data transfer means: you may use network functions or file functions. In both cases your "LabVIEW executable" needs to provide that options…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can I call a LabVIEW executable from within another LabVIEW executable?

    I have a customer requirement for two LabVIEW executables. Based on their current setup, they need to run executable "A" or "B", both of which are under independent revision control. I have created a third "selection" executable that allows the operator to choose between one of the two, but I am receiving errors when I attempt to call a LabVIEW executable from within a LabVIEW executable using either the "System exec" VI or the "Run Application" VI. If I call a non-LabVIEW executable (such as Windows Explorer) everything works fine.

    > I have a customer requirement for two LabVIEW executables. Based on
    > their current setup, they need to run executable "A" or "B", both of
    > which are under independent revision control. I have created a third
    > "selection" executable that allows the operator to choose between one
    > of the two, but I am receiving errors when I attempt to call a LabVIEW
    > executable from within a LabVIEW executable using either the "System
    > exec" VI or the "Run Application" VI. If I call a non-LabVIEW
    > executable (such as Windows Explorer) everything works fine.
    As with the other poster, I suspect a path problem. You might try the
    path out in a shell window, and if it works, copy the complete absolute
    path to LV to see if that works. LV is basically passing the comma
    nd to
    the OS and doesn't even know what is in it, so you should be able to get
    it to work.
    The other poster commented on subpanels, which is a good suggestion, but
    without going to LV7, an EXE can have open more than one VI. You can
    use the VI Server and the Run method to fire up another top-level VI.
    The decision is whether you want both to be in unique processes.
    Greg McKaskle

  • Running A LabVIEW executable in Windows 7

    Can I run a Labview executable created with Labview 8.6(32-bit) in windows 7 or Vista. If this can be done then how to do it? I've tried copy the lvrt.dll(run-time engine) into the system 32 folder, but  it doesn't solved my problem. For info, My Labview exe file also consist the fuzzy logic toolkit.
    Hope someone will help me. Thanks. 
    Lojius. 
    Solved!
    Go to Solution.

    hi lojius,
      For that you need to install labview 8.6 run time engine which is freely downloadable....Please find it at the link
    http://joule.ni.com/nidu/cds/view/p/id/1101/lang/en
    thanks and regards,
    srikrishnaNF
    Message Edited by srikrishnaNF on 03-23-2010 05:46 AM

  • Is it possible to call a VI that is inside a LabVIEW executable from a TestStand sequence?

    I have created a custom TestStand operator interface and have modified the default sequential process model to display a UUT information dialog that prompts for more information than just the UUT serial number.  This UUT information dialog is a LabVIEW VI.  To distribute the operator interface, I build it into an executable.  As part of the build process, I make a copy of the UUT information dialog VI (which is part of my operator interface project) and place it in the same folder as the executable.  I have then configured the sequential process model to call the dialog VI from this location.  It would be really nice if I could embed the UUT information dialog VI inside the operator interface executable so that I could distribute just an executable instead of an executable and separate VIs.  Is this possible?  In other words, is it possible to call a VI that is inside a LabVIEW executable from a TestStand sequence just like a standard LabVIEW VI call?

    Ryan,
    The dialog that you've created isn't being directly called by the OI at all and shouldn't need to be included in the same directory as the OI for distribution. Since you are modifying the PreUUT of the default process model, you will give the path to the VI in that step, create a deployment and then manually copy the VI to the directory referenced in the step. The VI is considered a support file for the process model and is not related to the OI at all.
    Test Engineer - CTA

  • How can I run a BW Function from EXCEL-IN-PLACE (BPS)??? Please give any ex

    How can I run a BW Function from EXCEL-IN-PLACE (BPS)using VBA??? Please give any example.
    I would like to run my function module ZMY from EXCEL-IN-PLACE using VBA and get a result.

    if you are using excel in place in the web application environment I doubt you can, you've never really had any macro functionalty there.
    If you are in the gui environemnt (Planning folders) it will depend on how you want to invoke the module...

  • How do i run a Labview file through a windows phone?

    Hello there
    How do i run a Labview file through a windows phone or a tablet? is it possible
    is there any phone specifications required? or steps?
    Thanks alot  

    Blokk wrote:
    na1992 wrote:
    hahaha my baad
    i mean if i have done my labview file on laptop and i want it to connect my file to a microcontroler using usb or any serial connection, i want a way that my labview file will run if i store it on a phone. 
     i searhced about exe  format but i didnt find enough info
    Sorry, but you should define more precisely what is your goal:
    " i searhced about exe  format but i didnt find enough info"
    If you build an exe using Labview, that exe will not run on iOS, or Android, if this is what you ask...
    Nor Windows Phone or Windows RT. A LabVIEW exe is compiled and linked for x86 or AMD64 architecture with Win32 API architecture and will only run on Windows for x86 or x64 systems.
    Windows Phone and Windows RT are despite the similarity in the name technically completely different platforms to the normal Desktop Windows system, just as different as MacOS X or iOS.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How do I run a user account from an external HD?

    How do I run a user account from an external HD? I will be away from my desktop iMac and want to use our MacBook Pro overseas for two months with my iMac user account copied to an external drive.

    1. WARNING: This procedure is for advanced users only. Some third-party software may not work as expected, or may not work at all, if the home folder is moved.
    2. Back up all data.
    3. Copy your home folder to the desired location, which must be on a volume of type "Mac OS Extended (Journaled)" with file ownership enabled, as shown in the Finder Info dialog. Encryption is optional. The volume must be on a local storage device, not on the network, and it must be mounted automatically at startup — before any user logs in. A disk image will not work.
    The name of your home folder is your short user name. Do not rename it. Do not copy the "Users" folder.
    5. Select
     ▹ System Preferences ▹ Users & Groups
    Click the lock icon and authenticate. Right-click or control-click your name in the account list, and select Advanced options from the popup menu. In the sheet that opens, change the location of the home directory. Log out and log back in.
    6. Test. If you have problems, reverse the above steps. If you got this far, you should have no trouble doing that. If everything works as you expect, delete the original home folder.

  • How do i run a Repair Disk from ARD

    how do i run a Repair Disk from ARD

    have you considered a netboot image and or a safeboot?
    With a netboot image you could try repairing the drive remotely. (the down side is this requires a mac os x server to do)
    A SafeBoot can be remotely triggered,  and it include automatic disk check and repair. (the downside is depending on how the computer is connected to the network, it may not re-connect to the network when safeboot complete and boots into 'safe mode'. ) I find if the computer is connected to the network by a built-in ethernet adapter, I can usually still access the computer in safe mode
    Before running a disk repair or permissions repair, it's a good idea to make sure the computer is backed up.
    Also, in the case that a NetBoot, Disk Repair, or SafeBoot fails, you would probable want to be able to physically walk over to the computer.
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck explains that SafeBoot includes Automatic Verify and Repair of Disk.
    Mac OS X: Starting up in Safe Mode explains how to use the terminal to configure a computer to SafeBoot into SafeMode. It also explains how to turn off SafeBoot after booting into SafeMode.
    cheers!

  • How do you run another Java file from a master Java file?

    We're making a game in Java at school, and we need to know how we can run a Java file from another one - like inside the master Java file, we need to have a command to run game.java (something like that). Thanks!

    We're making a game in Java at school, and we need to know how we can run a Java file from another one - like inside the master Java file, we need to have a command to run game.java (something like that). Thanks!One doesn't "run a Java file", and there's no conventional definition of "master Java file". If you want to call the main() method of another class, just make sure the class is in your classpath and call the method. If you want to start up a separate JVM with that class as a process, use Runtime.exec() or similar method.
    ~

  • Is it possible to run a Labview executable on a Windows 8 Phone?

    If I create an executable from Labview,will it be possible to run it on a Windows 8 phone?
    Solved!
    Go to Solution.

    No, as Mike already said.
    The reason being that a LabVIEW executable contains binary code that is compiled for the x86 CPU architecture and accesses the Win32 API. Windows Phone typically runs on ARM or RISC CPUs and did only provide a very limited Win32 subset in the past. With the new Windows RT technology it actually moved even further away from Win32 compatibility as it's entire architecture is based on the .Net technology.
    So even if you happen to get an Intel Atom based Windows Phone device which would be x86 compatible it couldn't work, since a LabVIEW executable is a Win32 portable executable format not a .Net bytecode image.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can I run an external program from a PLSQL procedure?

    Is there a package to run an external program from PLSQL? or is there another way to do that?
    thanks.

    here there is an example about how a PL/SQL procedure can
    work with an external C program.
    http://download-east.oracle.com/docs/cd/A87860_01/doc/appdev.817/a76936/dbms_pi2.htm#1003384
    Apart from that you have Java Stored Procedures option
    to carry out your task.
    Java Stored Procedures Developer's Guide Contents / Search / Index / PDF
    http://download-east.oracle.com/docs/cd/B10501_01/java.920/a96659.pdf
    Joel P�rez

  • How do I run a full process from SSIS ???

    Hi all
    I run BPC 5.1 SP3, and I need to automate a series of jobs, but the system is giving me problems and I hope someone can help out.
    I need to automate a full optimize and then a full process of our AppSets.
    I know that in SP3, the Appsets are taken offline for the full optimize and are then left offline, so in-between I run the "SystemAvailableTask" to set the Appsets back online.
    Additionally, all dependencies are removed from the FACT table for the optimized AppSets, which are only rebuilt by performing the full process afterwards.
    Anyway, the problem I have is that the optimize is running quite happily from SSIS, as is the SystemAvailableTask.
    Up to this point in the job, everything works as intended, so I now have a fully optimized Appset, which is available for users to access.
    However, the Full Process job then fails.
    I have run the Full Process as a standalone job from SSIS and it takes 2m36s to run, but fails to rebuild any dependencies.
    When I ran it from the SAP Admin program, it took 9m57s to run and rebuilt everything correctly.
    I am currently only offered 1 option in the SSIS package, which is to run a Full or an Incremental process, so I select Full.
    However, on the right-hand side, there are various other options available (such as bApplicationProcess, PROCESSMODE (set to "3"), PROCESSOPTION (set to "1"))
    Should I be changing any of the settings on the right to make the job run properly, or should I be doing it differently.
    Obviously, I need to make this work from SSIS, as I can't schedule a full process any other way, so I would be extremely grateful for any help that you can offer.
    Thanks
    Craig
    Edited by: Craig Aucott on Aug 25, 2009 10:21 AM

    The easiest way to do this is to write a Tuxedo server (i.e., using only
    ATMI and no CORBA stuff) that does the following:
    1.) In tpsvrinit(), the last thing that it should do is a tpacall to the
    service contained in this server (and nowhere else) with the TPNOREPLY
    flag.
    2.) In the method that implements the service, do your database work, sleep
    for a little while, do another tpacall to itself with the TPNOREPLY flag,
    and return.
    Hope this helps,
    Robert
    Ram Ramesh wrote:
    Hello folks:
    How can I run a background process that runs under WLE's control.
    What I am looking for is a way to have a process that runs in an
    infinite loop and polls the database to see if there is any background
    work that needs to be done. But I still want the process to be managed
    by WLE for fault tolerance.
    Thanks,
    Ram Ramesh
    [email protected]

  • Calling labview executable from teststand

    I have a labview VI that I build into an exe, and I'd like to call it from my teststand sequence in the setup - other test steps need to use its capabilities in the remainder of the sequence (main).  If it were just a VI, then no problem, the inputs would be visible to me, and I could pass them in.  Since it's an executable, though, my step is of type "Call Executable", but I don't see anywhere that it allows me to pass in the inputs it needs.  Thoughts?
    Solved!
    Go to Solution.

    What version of TestStand are you using?  With TestStand 4.0 for the 'Call Executable' step there is a line called
    Argument Expression:
    Enter your parameters to pass into your LabVIEW executable.  You will have to know which ones to pass in and in what order. I believe you can seperate the arguments by spaces.  In my attachment, I pass in one parameter to a LabVIEW executable.
    Remember, though you have to set the Build properties in LabVIEW to allow it to Pass command parameters to the application.
    Thanks,
    PH
    Attachments:
    Call Executable.JPG ‏48 KB

  • How can I run a LabVIEW app as a service in 8.2

    I have need to run a LabVIEW created Executable as a Service using LabVIEW 8.2. I have heard 8.2 can host it but I cannot find any docs on this. Any help would be appreciated. SvcAny was not an option that worked.

    I would suggest trying to add the exe to the services under Control Panel >> Administrative Tools >> Services.  This should cause the exe to launch as a service.
    Brian R.
    District Sales Manager
    Washington DC
    National Instruments

Maybe you are looking for

  • How do I change the order of the profiles in profile manager?

    I have several profiles and I know that I can use profile manager to delete the profile without deleting the files, then add the profile back, but it is a very clunky way to change the order they are in. Is there any quicker way to change the order o

  • Maximum file size for Adobe air for Androind and iOS compiled apps

    Hi All I am working on a project which has a few videos which I need to bundle into my mobile app for an Ipad app I am creating using Adobe Air for iOS. My question is simple is there a maximum file size limit on apps compiled using Adobe air for iOS

  • IChat w/ Linksys WRT54G- insufficient bandwidth error

    Hi, I am having trouble doing a video chat with iChat AV 3.1.5. Everytime I try to connect to a friend (using the same version of iChat) I get an error stating there is insufficient bandwidth. I have a cable modem connected over a linksys router and

  • What do I do when it fails to update 7.1

    What do I do when I have tried to update to 7.1 and it has failed.  Have tried three times with no luck

  • Dead Pixel Lines Across My iMac G5

    Hello. PLEASE HELP I don't know how to attach pictures here to show you what this looks like, but its about 12 inches across of non conforming pixels. One near the top of the screen middle, then two more lower middle half about the same in length. Th