To invoke an application exe built using Labview from python.

I am trying to invoke an application exe built using Labview from python.
I am able to invoke labview vi, send and receive data. But if I change the vi to exe, it doesn’t work.

This is more of Python. I can suggest you another way, if you can do those changes to your existing code.
This is what I do: If I have to communicate between 2 different platforms I use "File" as a communication medium (Simple method). So if you want to pass data to the LabVIEW code from python, write the data to the file from Python and read the data in LabVIEW and vice versa. I generally use *.ini files for this purpose.
The best solution is the one you find it by yourself

Similar Messages

  • Receive an error when closing my program built using LabVIEW applicatio​n builder

    When I close my program built using LabVIEW application builder I receive an application error,"The instruction at "0x77fcb1ad" referenced memory at "0x023a0010". The memory could not be "read". Click OK to terminate the program"
    I have no idea why this is happening.

    This is most likely due to a reference or similar left open. You will experience this if you leave an image undisposed in IMAQ as well.
    Check all of your references and be sure you are cleaning everything up.

  • How to open a file by double clicking in an RUNNING exe built by LabVIEW

    I am developing an applicationg using LabVIEW. But found some difficulties.
    This is an editor, and I link this app to a certain file format.
    So I hope when I double click this file, My exe will load it. This could be done by read application command line.
    But if my exe is runing already, I double click the file, I could not get the latest command line information.
    When the exe is running, How doule click the file to send some sort of info the this exe so the exe could open a new one.
    How to do this in LabIVEW?
    Solved!
    Go to Solution.

    Hi,
    You have to make the Vi reentrant so that it does not share the same memory location:
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • Creating Properties and Methods for an exe built in LabVIEW

    Hi all,
    How do we create properties and methods for an executable built in LabVIEW.
    I know when building an exe, the "Enable ActiveX server" option in advanced has to be enabled.
    But after that how do we create Properties and methods for the activeX component.
    Your help is greatly appreciated.
    Regards,
    Muthuraman S
    Regards,
    Muthuraman

    You cannot build your own COM specific properties and methods for the ActiveX interface in LabVIEW, the only thing exposed are the normal VI server properties and methods.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How do you make third party application window backmost using labview

    Hi Guys
    I know i can do whatever i want on labview windows.i can make third party application window frontmost.
    But How to make third party applicaiton window backmost using labview.
    Thanks

    Hi wenjie1wang,
    I have attached an example that uses the "Call Library Function Node" that accesses the "user32.dll" file that is responsible for manipulating with the windows such as minimising it. 
    After opening the VI you have to enter the name of the window you want to minimise, you can hard code that as a constant. Also on the front panel the control "nCmdShow" can be changed to dictate the action you want to do with the window. 
    Furthermore, please look at the Microsoft Developers Network to find more useful ways to use the property node in your project.
    http://msdn.microsoft.com/en-US/
    Let me know if this works.
    Regards
    Art
    Applications Engineer
    National Instruments
    Attachments:
    Minimise Window in Win7.vi ‏14 KB

  • Does a stand-alone EXE built with Labview 8.2 return a return code?

    My application is an executable that was built from a VI in Labview 8.2. I'm expecting a return code of this stand-alone executable after the execution, however couldn't find a way to control the return code of the application.
    Does a stand-alone executable built with Labview 8.2 return a return code? If yes, how is this code controllable?

    Hi Tdot!
    Thank you for contacting National Instruments.  It looks like your question is something that many others have run into.  This topic is discussed here, and looks to be answered along with a couple of suggestions.  I hope this helps!  Let me know if there is anything else I can clarify.  Have a great day!
    Jason W.
    National Instruments
    Applications Engineer

  • How to create an exe file using labview and arduino?

    I bought Arduino Mega 2560. I have installed Arduino IDE 1.7.3. I am using Windows 7 64bit version and Labview 2012. I started working after the compilation of LIFA_Base File with Arduino IDE and with labview.
    My application is: I have connected my arduino to my PC via USB for read input/output pins. I have to read all the time an analogue input from arduino and I have to draw the graphical representation of the input. I would like to know if I can create an exe file of this application. I would like to use the created exe file to another PC without labview installation. 
    Please help me to resolve the problem.
    Regards

    Yup you sure can.  With Application Builder, that is bundled with several LabVIEW packages you can make an EXE, and then make an installer that can include the LabVIEW Run-Time engine (free) and you'll also need the VISA run-time for talking to serial devices like your Arduino.
    Then you should be able to run that installer on any normal Windows PC and without the development environment be able to run your program.
    Note that currently Student, and Home versions of LabVIEW do not have the application builder since it is intended for learning, and hobbyist, not for distributions.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • When i run exe built in Labview 7.1 the memory usage goes on increasing

    Dear Sir/Madam
    I have built an application in LabView 7.1. When i run this application and view the memory usage in Task manager, i find that the memory usage goes on increasing.
    Please help.
    With Regards
    Ravindra Kumbhar

    Hi, Ravindra,
    It looks that you have memory leak in your application.
    There are lot of possible reasons for memory leaks - opened in cycle and not closed references, continuosly growing arrays, memory allocation in own DLLs, etc.
    Normally you should have the same behaviour in development environment as well (memory of LabVIEW.exe incresed continuously).
    You should check the code, which executed repeatable (while/for loops) for allocated, but not closed resources. What you can do is following - remove (or isolate) parts of you code, executed in cycles, then check is leak present or not. So, step by step you will found the place where leak occurred.
    best regards,
    Andrey. 

  • Error in Calling a dll built in labview from Matlab standalone

    hello,
    The problem I encountered is in the use of the math interface toolkit. I
    created a dll which performs data fitting using a labview vi which i converted into a dll using the
    math interface toolkit.
    This dll is then called from a standalone matlab program. It works fine in the computer where I
    create the matlab standalone program and labview dll. Howerver when i export to another
    computer the matlab part runs fine but an error is reported when it tries to
    call the labview created dll.
    "One or more output arguments not assigned during call Parfit.dll"
    The files related to this problem in the math interface toolkit (the labview vi, the corresponding dll and the matlab .m and .fig files and the standalone exe are in the attachment and named MathITproblem.zip
    The matlab run time engine(for matlab 7) and labview runtime engine(ver 7.1) must be installed for this matlab file to run. the run time engines are downloadable from the web.
    Does any one know the source of this error or encountered it before?
    thanks
    Attachments:
    MathITproblem.zip ‏1263 KB

    Hi Srinivas,
    Just another note, I noticed that the Math Interface Toolkit version (MIT) 1.0 is not compatible with LabVIEW 7.1. You’ll need version 1.0.1. of the MIT toolkit in order for it to work with LabVIEW 7.1.
    The LabVIEW 7.0 lvanlys.dll is also attached. I had to rename it with a .txt extension, so you’ll want to delete the extension.
    Kileen
    Attachments:
    lvanlys.dll.txt ‏516 KB

  • Open an extern application (exe-file or dll) from a new button in SAP B1

    Hi,
    i want to start an extern Application with a new button in SAP Business One. The exter application should started with two parameters. It can be handled with an exe-file or with a dll. I dont know what its better....
    My question is, how can i open the extern application with two parameters from a button in SAP Business One. Can someone give me codeexample?
    thanks in future and best regards,
    Steffen

    Hi Steffen,
    Adapted from Re: Start Addon From another addon
    Dim startInfo As System.Diagnostics.ProcessStartInfo
    Dim pStart As New System.Diagnostics.Process
    startInfo = New System.Diagnostics.ProcessStartInfo("C:Program FilesSAPSAP Business OneSAP Business One.exe", "arguments")
    pStart.StartInfo = startInfo
    pStart.Start()
    Hope this helps,
    Ian

  • Comunicating to a GPIB port using labview from a pc.

    I want to interface with an oscilliscope Through its GPIB port using my pc. Is there a code out there that has this capability already? What is the easiest method to do this.

    If you had mentioned the make and model number of your scope, I could have given you a definite answer, but since you didn't you're going to have to do a little searching yourself. First go to the Instrument Driver Network. There you will find several links. You should probably browse the ones under the Learn topic first to get an idea of what an instrument driver is. Then you can go to the Search link and try and find a driver for your particular scope. If you find one and assuming that your NI GPIB card is configured, you should be all set. If there is no driver, you'll have to do some programming yourself. You can use the Instrument I/O Assistant on the Instrument I/O palette (LV 7 or higher)
    or follow the links under Develop on the IDN page.

  • Creating a NT service using LabVIEW

    Hi,
    last week I followed the instructions from the NI tutorial " Creating
    a Windows NT Service Using LabVIEW" from http://zone.ni.com/devzone/cda/tut/p/id/3185.
    It worked, I was happy.
    Today I tried again and something strange happens: When i start the
    new created service it does not start as a service but as an
    application with it's Frontpanel open!
    So what did I do?
    1.) Created a very simple TestService.vi
    Just a while loop with 1s Timer inside and counting up a shift
    register, nothing more.
    2.) Create Application TestService.exe (No special actions required in
    AppBuilder, right?)
    3.) Testing Application: FP shows up, ok
    4.) Copy TestService.exe, srvany.exe and instsrv.exe to d:\TestService
    5.) Open a command prompt, typed:
    instsrv TestService d:\TestService\srvany.exe
    "CreateService SUCCESS" appears, Service was installed, I can see
    it in the Services applet
    6.) Changed "LogInAs" from Admin to local System (DataExchange
    Allowed)
    7.) Added new Key in the Registry for the new service and there added
    a
    new String "Application", set it's value to "D:\TestService
    \TestService.exe"
    8.) i can start the Service manually and it can be started at system
    startup.
    But when the service i started the frontpanel opens and I see
    TestService in the Taskbar!
    What am I doing wrong?!
    I already read the tutorial almost for the 10th time now in search of
    things I forgot. Any ideas would be great.
    I'm using LV8.2 ProfDevSys with AppBuilder
    Thank You,
    Stefan

    Ok, when i search here for "windows service" i read that NI has a tutorial page (http://zone.ni.com/devzone/cda/tut/p/id/3185). So i read it to learn how to make a service, but in the step "Creating the client" it said:
    Run your CookieService.exe application. The front
    panel appears because you have not actually changed the application
    into a service, yet. (it's OK)
    Create the cookiefile.txt file in the
    same directory as the CookieService.exe file. Add a few lines of
    message text to the file and save it. (it's OK)
    Run the GetCookieClient VI a few times. It displays a random text line from cookiefile.txt each time you run it. (LabVIEW sends an error code, saying that the VI isn't in memory)
    Quit the CookieService.exe application by closing the front panel with the Close button.

  • Do you use LabVIEW but not apply for the beta?

    Greetings,
    Do you make use of some portion of the LabVIEW platform but never sign up for a LabVIEW beta?  Please post here and let me know:
    What portions of the platform do you use? (LabVIEW only, RT, FPGA, DSC, etc.)
    Why do you not apply to be included in a beta?
    I'm not promising that anything will change as a result of your answer but...who knows?
    Regards,
    Robert

    Thoric wrote:
    I've used LabVIEW from V5, and also support a large number of applications so I've had a go at most of the toolkits (FPGA, RT, PDA)
    At work there's absolutely no opportunity to play around with BETA versions, there's too much risk involved given it's not a verified release. I'd play around with it at home, but I mainly use Linux (SUSE) and to be honest I have better things to do. As much as I love LabVIEW, my kids come first 
    Amen to that,
    I try to participate in al LabVIEW Betas. But I mostly do it to see if the new version fixed some of the reported bugs that have given grief in the earlier versions. Although I do not have much time to spend on beta testing but I do try.
    Joe.
    "NOTHING IS EVER EASY"

  • Cross-component: Call method of using component from within used component?

    Hi,
    I began diving into cross-component programming.
    Meanwhile after having digged into some scenarios some questions came up to my mind that I am not able to answer myself. I would appreciate your help here!
    Say we have to components.  Comp A uses Comp B (hence, B is a component usage in A)
    1) How to make them communicate not on a data level (via context binding) but on a process level, thus...
    a) can I call A's method from within B? How is the approach on a general level? - as B can be used from totally different components (like A, A1, A2 ...)
    b) perhaps the only way to do this is by firing events? If so, how can I react in A when an event in B (marked as interface event) gets fired? As it seems they do not get registered within A directly...
    I guess the question seems to be a bit tricky. Nevertheless, I think there will be plenty of you out there who used to asked them the same questions before and came up with an approach. Would be nice to hear from you.
    Best wishes,
    Marc @sap1

    Hi,
    thanks for your reply!
    Indeed, I think the nature of WDA would be just to somehow map the context from the used component to the other back and forth.
    Nevertheless, what if I would like to invoke a method of the using component from inside the used component.
    One sample for this requirement could be e.g.:
    Component B offers a tree item and a send/verify button.
    Component A uses B and has some restraints regarding what the selection should look like.
    The user taps the button in B (at runtime in the view container of A), the context gets updated in A and B and in Component A the verifyWithOwnConstraints() method gets called (through B).
    Thanks again,
    Marc

  • Using labview version 8 can application.exe be created for linux platform?

    hi
    Good morning..
    I have been creating GUI for windows platform using Labview version 8.
    Is it possible to create application.exe for linux platform...are there any settings that could be changed to make it work on linux platform ? or it will directly work when installer is installed in linux platform...
    waiting in anticipation...
    Thanx  ....
    Regards
    yogan

    You must setup a machine with Linux and install LabVIEW for Linux on this machine.
    If you haven't used any Windows technics you can copy the VIs from the Windows machine to the Linux machine, open LabVIEW on the Linux machine and create the application.
    There is no setting on any platform of LabVIEW to generate applications and/or installers for other platforms.
    Message Edited by waldemar.hersacher on 08-05-2008 08:22 AM
    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

Maybe you are looking for

  • How can i set up different libraries on one PC for myself, daughter, and wife if we all have our own accounts?

    I currently have a wife and daughter that use ipods and I just bought an iphone.  Is it possible to have three seperate music libraries on one PC if we all have seperate itunes accounts? and if so how do I accomplish this?  I tried setting up differe

  • Check-out originals from Content Server to File server?

    Hello Experts, We have urgent requirement to check-out huge number of originals from the Content server and send to an application server (ftp server). The input data that we can use to fetch the originals are  PHOIO nunber or LOIO or Original File n

  • What's my G5 worth?

    Any guesses to how much my system is worth in the UK - £GBP ? Power Mac G5 1.8 Ghz DP PCI-X Ram: 6.5 GB HD: 2x 160GB Video: ATi Radeon X850 XT 256MB DDR3 (Mac G5 edition) DL DVD 4x USB Internal card. Leopard DVD Boxed Cheers.

  • I am unable to open my Aperture library after my computer crash!!

    I get the following error meassage after my computer crashed and now unable to open Aperture library. Do not have any of my photos backed up as yet!!! "There was an error opening the database for the library "/Volumes/My Passport for Mac/Aperture Lib

  • K9a2 platinum motherboard, trouble with mouse/updating bios.

    Hello all, I have a MSI K9A2 Platinum mb, using vista 64 bit. I wanted to flash my bios, Pretty sure I have 1.4, wanted to try 1.8, or 1.9. When I go to download center will ask me where I want to download from, I click on U.S nothing happens, even t