Open an executable from Labview

Hello,
I'm developing a vi which needs to run an exe.I have an exe(eg:check.exe)
created through some other tool(not an exe created by Labview)stored in my drive(eg, C:\check.exe).
Is it possible to run this check.exe from the Labview ?
Please help me to figure this out.
Thanks in advance.
Regards,
Nalin

Hi,
Just a quick example for your reference
Regards,
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
IFK_SYS_System Exec Example.vi ‏54 KB

Similar Messages

  • What is the easiest way to open an application from Labview?

    I need to open an application from labview and depending on a user's selection, load one out of a group of files for the application that is opened. I need to know what is the best or easiest way to open an application and load a file that is used by the application based on a selection.

    Here is the response that I got from Cognex when I asked them about how to do this. Do you understand what they are talking about?
    In order to do something like this you will probably want to look into the Display Control/SDK for In-Sight. The Display Control gets installed along with In-Sight Explorer and includes a control that can be used in an environment like Labview to communicate with In-Sight sensors while the SDK is an enhanced version of the Display Control that gives you more control and functionality. I am not very familiar with the Labview environment so I will give some code snippets in VB.Net and hopefully you can adjust them as necessary. Specifically I see 3 possible avenues to do this:
     1) Using the Display Control you have access to many of the dialog boxes that are used in In-Sight Explorer including the Load Job dialog box. You can spawn this dialog box through a line of code similar to cvsInSightDisplay1.Edit.OpenJob.Execute(). I am not certain if the Labview environment will be able to spawn and display this dialog though. 2) With the addition of the SDK (additional purchase) you can directly access sensor properties including the job. There is a method called LoadJobFile to load jobs from on the sensor and LoadJobFileLocally to load jobs from the host machine. A typical line of code might be cvsInSightDisplay1.InSight.File.LoadJobFile("myjob1.job").3) If Labview cannot handle the dialogs and the SDK is not an option for you then you may still be able to do this using Native Mode commands. Native Mode commands are sent through a socket on the telnet port (typically port 23). Keep in mind that you will need to handle the username/password prompt and response when you first open the socket before issuing any Native Mode commands. The command to load a job file from the sensor would be the Load File command which would be a string similar to "LF myjob1.job". The Native Mode commands are documented in the In-Sight Explorer help file. 

  • Opening HTML window from LabVIEW

    Please,help. How can I open HTML window from LabVIEW?

    Hi A Kirsanov,
    I posted this to bmihura, but it's probably more applicable to you.
    Hope it helps
    Charlie Rodway
    Test Design Engineer
    Rolls-Royce Controls and Data Services Ltd
    Attachments:
    WebBrowser.vi ‏21 KB

  • Can't open an Executable From Click Button

    Hi, Everyone!
    I've broken a learning module into several small project
    files to match the client's standards. I've set up click buttons
    within each file to open each of the published movies for the
    module. Everything works as expected.
    Now I need to create a standalone course using the same
    files. I've published each file as a Standalone executable. I've
    modified the open action on the click buttons to "Open URL or File"
    and selected the appropriate .exe file as the target. I've
    republished the files with the new click action. When I open an
    executable and click a button to open another executable, I get an
    error message stating that the page cannot be displayed.
    What am I doing wrong? Can anyone help?
    Thanks,
    Bob Browne

    Hi Bob
    For starters, did you try simply exporting all related files
    as .EXE files and test that way before making any changes? If so,
    what were your results? I've seen before where once Captivate was
    successfully linking to another movie, simply changing from .SWF to
    .EXE format just worked.
    Just a thought... Rick

  • Can I run a third party executable from LabView?

    I have a third party image sensor executable. Is it possible to start this executable from a LabView VI? I know that you can run a dll from LabView. I was wondering if you can do the same with a standard .exe file.

    Yes, you can use the "System Exec.vi", located in different spots depending on which version you're using.
    It acts as a command line interface - essentially the same as if you run CMD.
    Search for it in the help if you can't find it in your palette.

  • Opening TestStand Ref from LabView sometimes fails

    I'm having an intermitten problem when opening a TestStand reference from LabView.  The error explaination just says, "LabVIEW:  (Hex 0x80004005) Unspecified error."  Attached is a little vi that can reproduce the problem when set to run continuously. 
    Any idea on how to fix this?  Thanks a lot.
    Note that because of compatibility requirements I have to use TestStand 2.0 with LabView 7.1.
    Attachments:
    TS_Ex.vi ‏24 KB

    Attached is a screen shot of the error message.  This is one of at least 2 error messages.  I will get the other one when I can get time on the equipment.  Right now, I would like to get the error log (mentioned in the screen shot), but I can't find it.  Where should it be?
    Unfortunately, the equipment is being shared and I haven't received time to debug it more.  But this is what I have seen. 
    Trying to Highlight Execution with breakpoints seemed to point the vi closing the reference to TestStand as the source of the error message.  Using the Simplified TestStand Operator Interface vi that came with TestStand, and some fake tests, we did not have this error.  Only when we use our customized OI with dynamic test sequence generation do we get the error.  This error doesn't occur with LabView 6.1.  So I think it may be another incompatibility between LV 7.1 and TS 2.0.
    Thanks for your help.
    Attachments:
    Exit-Crash-1.doc ‏24 KB

  • How to edit an opened spreadsheet entry from LabVIEW

    I would like to provide a GUI in LabVIEW for editing a spreadsheet (which uses custom addIns) which I open from LabVIEW. Is it possible? Any help or example is appreciated.
    Thanks in advance.

    Found a VI in the examples. If anyone wants to do this in future , here is the name of the sub VI:
    Set cell Value With Range.vi in Excel Macro Sample.vi
    Other suggestions/examples welcome, though.

  • Opening a pdf from LabVIEW

    How do I launch Acrobat Reader with a pdf file from Labview? I've tried DDE with Acroview, Control and OpenDoc but I get an error.
    thanks,
    Andrew.

    I always like it when things are in the obvious place ;-)
    Cheers,
    Andrew.

  • Calling executables from LabView

    I would like to know how to call an executable program from within my LabView program.

    use the
    System Exec.vi
    you find it under the menu "Communication"

  • How do I distribute an executable from Labview 8.6

    I have Labview 8.6, Professional Development version. I want to know when I create an EXE file and then want to run it from a computer that does NOT have Labview installed, what support files will I need? What directory will I find them in on the computer with Labview installed? And what directory will I need to put them in on the computer that does not have Labview on it?

    Ben321 wrote:
    How do I make an installer package? Do I have to make one with external software like InstallShield? Or does labview do this when you make the EXE file to start with? Or does labview have a separate feature to do this? Please explain?
    You create an installer in a similar way you create an application. It's all built into the LabVIEW project.
    Details
    LabVIEW Champion . Do more with less code and in less time .

  • LabView 2012 hangs when opening a file from LabView 8.5

    I have a program originally built in LabView 8.5. I am attempting to migrate it to a new machine running LabView 2012. I can open the program for the first time and make the adjustments needed to clear a few errors having to do with updated VI's and controls. I can then run the VI but after this I close out of LabView and when I attempt to reopen the file LabView hangs on the splash screen while loading the VI.
    Any help would be appriciated. Thank you.
    -Sam

    Please post your original VI and the converted one so we can take a look.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to build executable from labview for R-series board

    Hi all,
    I have a PC with Win XP 32 and a PCI-7852R board.  I have labview installed on it and have done all my development on that machine.  Now that I'm done, I'd like to build more of the systems but don't want to have to install labview on every one.  Plus, I'd like to be able to take labview off this machine so that I can start working on the next project on another machine.
    So is there a way to build a distributable package of host and FPGA code on one machine and install it on target machines without having labview on them?  Ideally I'd like to be able to build the package on a machine that doesn't have the R series board - instead just have a simulated board.  But that doesn't seem to be an option in NI MAX.
    thanks
    Solved!
    Go to Solution.

    Hi Manick,
    I mean that it would be best to create a new thread on the forum.  I've attached a screenshot to show what I mean.  From there, you can enter a unique title, and have a unique description for your case.  That way, we can support you better, and other users of the forum can search for the same behavior that you're seeing.
    Regards,
    Che T.
    Applications Engineer
    National Instruments
    Attachments:
    new_post.png ‏70 KB

  • Can I open a excel file from labview

    I have a program who write temperature in a excel file and i want to open this file from labview .

    This depends slightly on the amount of data you have stored within Excel.
    You can use the "Labview Functions>>FileIO>>Read from Spreadsheet file.vi" which effectively reads all lines from a text file and converts it into a numeric array.
    Alternatively, if your data structure in Excel is more complex than this, you can use ActiveX calls to Excel to retrieve it.
    Use an "ActiveX>>Automation Refnum" control and select the Excel server class. This will then enable you to access properties and methods of Excel to retrieve data from specific cells and pages.
    The attached example should help.
    Dan
    Attachments:
    Excel_Automation.vi ‏60 KB

  • Open application from labview

    How is possible open a file from labview?

    You can use the Open File VI in the Advanced File Functions Menu. But
    if what your trying to do is to open an Application, then you will
    have to make use of the ActiveX possibilities in LabVIEW. If you need
    more specific information in how to do this, I'd recommend you to give
    more details on what you want to do exactly.
    Cheers
    Mamian

  • Retrieving teststand step type from labview

    Hi
    I am looking for help/advice about being able to read the type of step that has just been executed from labview. I am current using "Runstate.Step.StepType" and saving the result to a local variable that is being read from labview. The issue I have is the function does not return meaningful data. The function always returns "StepType, IID = {39B81800-2FE4-11D3-AFAC-006097B79EF5}" regardless of the type of step.
    Does anyone know of another command that will return the type of step i.e. Numeric, multi Numeric, string or Boolean.
    Many Thanks
    Dave

    See if this helps: http://zone.ni.com/devzone/cda/epd/p/id/2738
    It uses TypeOf() function and then stores the step type in local varaible.
    CLD,CTD

Maybe you are looking for

  • Creation of new product hierarchy and products in SAP CRM.

    Dear all, please help with resolving of following issue: In CRM system base hierarchies were replicated from R/3 system with materials. Current requirement is to create new materials in CRM directly (as standalone scenario). As far as I understand, I

  • Imac/imovie/Lacie-file vault seems to be deleted. Am I screwed?

    Hello all,     I was editing a movie in iMac, but when I went to finalize the project, it told me I didn't have enough memory. I checked and re-checked and I could not find what was using it up. My movie/photos etc totaled a litte over 100 gigs out o

  • Xcelsius not linking to Excel document

    When attempting to link in cells from my Excel document.  I get nothing in return.  For example:  If I was to try to link a single value box to a cell in my Excel document I wouldu2026 1.     Create a single value box 2.     Click u201Clink to Cell:u

  • Why no manual?

    It's a major and inexplicable omission not to have a manual for downloading like every other Adobe product. The so-called online manual is nothing but a bunch of tutorials; very nice, but useless when trying to read up on a particular feature.

  • Dry loop DSL without 1 yr contract

    I was wondering if fry loop DSL is available without 1 yr contract. I checked dry loop is available in my area. The weird thing is when I called customer service this lady called Bela from retention department said it is avilable only with 2 yr contr