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

Similar Messages

  • How can I run a a class file on the Apache server?

    Hi Guys and Gurus,
    I am seeking some favor all of experienced gurus, i.e.
    How can I run a a class file on the Apache server?
    Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
    Please advise...
    VJ

    cross posted
    http://forum.java.sun.com/thread.jsp?thread=299137&forum=31&message=1184025

  • How can I run a SQL script file...

    How can I run a SQL script file from a location on my computer without providing the whole path?
    Is there some way I can set a "Working folder" in SQL Plus??
    Thanks!
    Tom

    You can create an environment variable called "SQLPATH" which is a list of directories that SQL*Plus will search for your .SQL
    scripts.
    I would like to use another directory than the oracle/bin...
    How can I do this ??
    Hello,
    U can do this by this way:
    Save odm_script.sql file to the default Oracle
    directory i.e. Oracle-Home/bin and Run following command
    through SQL Plus.
    SQL>@Script_Name
    I hope this will resolve ur problem.
    Regards,
    Omer Saeed Khan.

  • URGENT PLEASE:How can I run a a class file on the Apache server?

    Hi Guys and Gurus,
    I am seeking some favor all of experienced gurus, i.e.
    How can I run a a class file on the Apache server? Can I run through an Applet?
    How can I set Environment variables in Windows2000 Professional Environment?
    Actually, I want to extract some records from a MySQL Database running on Apache Server. I wrote a program just to select the columns and show them. It is now a Class file, Now how can I run this class file from the Server???
    The code is here
    import java.sql.*;
    public class RecordShow {
    public static void main(String args[]) {
    String url = "jdbc:mysql://localhost/myhost";
    Connection con;
    String query = "select mytable.column," +
    "from mytable " +
    "where mytable.column = 1";
    Statement stmt;
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    con = DriverManager.getConnection(url,
    "myuser", "mypassword");
    stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery(query);
    ResultSetMetaData rsmd = rs.getMetaData();
    int numberOfColumns = rsmd.getColumnCount();
    int rowCount = 1;
    while (rs.next()) {
    System.out.println("Row " + rowCount + ": ");
    for (int i = 1; i <= numberOfColumns; i++) {
    System.out.print(" Column " + i + ": ");
    System.out.println(rs.getString(i));
    System.out.println("");
    rowCount++;
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.print("SQLException: ");
    System.err.println(ex.getMessage());
    Please advise... THANKS
    VJ

    Ehm, I wasn't referring to you at all... read up,
    there's a comment by jschell saying that CGI might be
    easier/better for his purposes.
    Yep.
    I know PHP/Perl/whatever might be easier for some
    purposes, but only if you happen to know them and want
    to/are able to use them. Ok. But you aren't the one asking the question are you. And the person who asked the question seems to have absolutely no familiarity with Apache or applets.
    So whatever they do they are going to have to learn a lot.
    And that does indeed suggest that in all likelyhood they have not investigated the alternatives.
    And for the vast majority of internet applications, especially with smaller projects (obvious this person is not working with a large team), using perl, or something besides java, is going to be the best business solution. It is simpler, and more secure (probably due to the fact that it is simpler.)
    Since this is a Java forum, I
    answer under the assumption that people have made a
    choice one way or another to use a Java solution to
    their problem, so I try to solve it in Java first, and
    only when that fails (very seldom) do I turn to other
    solutions.You approach problems by arbritrarily deciding to try to solve it in java first and only if you fail do you then look to other solutions?
    My first step is to try to figure out which of the various avenues is going to cost less. (And a secondary, but non-trivial concern, is then to convince the customer that just because they have heard of a buzz word like 'enterprise bean' that it doesn't mean that is a cost effective solution.) We must come from different worlds.

  • How can i run a java class file from shell?

    Hi all,
    I've a .class file named "File" that contains Main method, it is in the package "File2".
    How can I run it by shell command?
    PS: "java -cp . file" doesn't work it launch->
    Exception in thread "main" java.lang.NoClassDefFoundError: File2/File (wrong name: File2/File)
    Thanks in advance.

    Just to understand: is File2 ar jar archive or not? If it is a jar archive, have you tried open File2.jar? If File2 is a directory within the current directory, have you tried java -cp . File2/File? I just tested with a set of classes and it works... Let me be precise:
    * Let us imagine you are working in a directory whole path is PathToDir/
    * in this directory you have the classes put in a directory called File2
    * in order to launch File.class then you would have to invoke :
    cd PathToDir/ (just to be sure)
    java -cp . File2/File
    *if you were to do the following then you would have the problem you describe
    cd PathToDir/File2/
    java -cp . File

  • 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

  • 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

  • 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

  • Can OSX run a Unix executable file?

    There is a new way of viewing and assembling multi part files. It is called .daa (direct access archive0. It is like the old .rar archive. The only application I could find is Power ISO which is only available for windows and UNIX. I have the UNIX fille which get info describes as a UNIX executable file. What now?
    Bob

    Sounds like bad news. The application was for Linux. Here is the web site
    http://netforbeginners.about.com/gi/dynamic/offsite.htm?zi=1/XJ&sdn=netforbeginn ers&cdn=compute&tm=36&f=10&su=p284.7.420.ip_&tt=12&bt=1&bts=0&zu=http%3A//www.po weriso.com/download.htm.
    Thanks Bob

  • How can I run a labview 7.2 vi in labview 8.2

    We have several versions of labview running different test and control functions in our facility. There are labview 7.2 VIs in a production setting I wish to reproduce in the test lab. Can I convert them to run on 8.2 or do I have to recreate them in 8.2. I tried to open one in 8.2 and got multiple SubVI's that were not in my program library.. most dealing with AI manipulation.

    And make sure you have backup copies of your 7.x code. Once you load and save in 8.2, it is a lot of work to get them back to 7.x.
    Note I used 7.x because I am unaware of LabVIEW version 7.2 even existing. 7.1.1 was the last release prior to 8.0
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • How can i run an excel(PC) file with macros on numbers

    I am new to mac OS. I am trying to run an excel file that was created for windows and has macros on either numbers or or ms excel for MAC and it does not work. Help?

    You cannot.  You shold purchase MSExcel for Mac (after you confirm that is also runs macros, there was a period of time where it didn't so I am not sure).
    Numbers will not run macros and it the wrong tool for your case.  It is possible to create similar behavior if you are willing to port the Excel macros to Applescript.

  • How can i run .app executable  file

    Hi,
    While i was searching for my topic on google code, i found one project and i download that.
    But its "MyProject.app" with yellow cplored xcode sumbol and i can not run this file.
    Does any one know that how can i run this type of file. i want to run this project.
    And another question. I want to create executable file from my project like exe on windows. Is there any way to create this type of file????
    Thanks.

    vavdiyaharesh wrote:
    Hey,
    When i double click on .app file it quit and show me message like "The application project140 quit unexpectedly"........."
    So is there any problem in .app file?
    On your machine sure sounds like it.
    How can i create exe file and how can i pass -0 to compiler ..iu don;t see any option in xcode for that.....
    giove me solution...
    I think you'd be better off taking some training, or at least working through some of Apple's tutorials.
    http://developer.apple.com/documentation/developertools/conceptual/XcodeQuickTou r/qtintro/chapter_1_section1.html
    Thanks.
    You're welcome.

  • 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

  • How can I run a Local PC executable file from Enterprise Portal?

    I want to run local PC executable files from inside the portal. To be more specific I want to be able to open the Outlook and some powerbuilder executable applications.
    How can I do it?

    If you absolutely want to do it, you can use vbscript for it (though there are a lot of security contstraints)
    See Re: Displaying office programs

  • Can an Labview Executable file run automatica​lly upon the boot up of a CPU?

    I wanted to use a PC/104 to run a LABView.exe file.  So I have two quetions can a Labview .exe program be written so that it dosent need the start buttn pressed to activate it, it just runs upon execution.  And the second is that once the PC is booted can it be configured so that the .exe automatically starts?

    Hi,
    Here is a KnowledgeBase article that I think will be helpful to you as well. Have a great day!
    Amanda Howard
    Americas Services and Support Recruiting Manager
    National Instruments

Maybe you are looking for