Develop a command-line application using LabVIEW

Hi,
         Is it possible to generate a command line(CLI) executable using LabVIEW? This CLI exe will be called with certain command line arguments by another application (written in Visual Basic). The LabVIEW Run time engine can be installed separately on the host PC.
Thanks for your help
Siddharth 
Solved!
Go to Solution.

There is an example that ships with LabVIEW that shows how to read the command line arguements from an application. THe name of the VI is CommandLine.vi. It is extremely basic though. The power of command line arguements really comes from how you define and parse them. I recommend allowing your command line arguements to be order independent and that they require a label. For comand lines I prefer to use a single letter for the label. Full words are nice but then your command line gets very long. For the applications that we write we allow both the '/' (DOS/Windows style) and the '-' (Unix/Linux style) to designate a command line label.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Custom splash screen only shows up when command line is used...

    Hi,
    Everything in my Java web start application works perfectly but, the custom splash screen only shows up when command line is used ("C:\Program Files (x86)\Java\jre7\bin>javaws -verbose http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp"), if I use the shortcut on the desktop or in the start menu, the Java 7 splash screen shows up (tested under Windows Vista and Seven). Does someone have any clues?
    Thanks...
    My jnlp file :
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="6.0+" href="AcSent.jnlp">
      <information>
        <title>AcSent : Commande de repas</title>
        <description>AcSent - Commande de repas</description>
        <vendor>AcSent</vendor>
        <homepage href="http://www.xxx.eu" />
        <icon href="acSentIconBiseau.png" />
        <icon href="splashAcSentRC.png" kind="splash" />
        <shortcut online="true">
          <desktop />
          <menu submenu="AcSent" />
        </shortcut>
      </information>
      <security>
        <all-permissions />
      </security>
      <resources>
        <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" max-heap-size="128m" />
        <jar href="AcSentJnlpProgressIndicator.jar" download="progress" />
        <jar href="AcSentJnlp.jar" main="true" version="1.0" />
        <property name="jnlp.packEnabled" value="true" />
        <property name="jnlp.versionEnabled" value="true" />
      </resources>
      <application-desc name="AcSent" main-class="eu.acsent.jnlp.AcSentApplication"
           progress-class="eu.acsent.jnlp.progressindicator.CustomProgress"> 
      </application-desc>
    </jnlp>

    Hi again,
    I made some researches :
    - The link in the generated shorcuts ("C:\Windows\SysWOW64\javaws.exe -localfile -J-Djnlp.application.href=http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp "C:\Users\Arnaud\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\46\69c1e9ee-1f252d1a") is not the same as the one I use in the command line ("C:\Program Files (x86)\Java\jre7\bin>javaws -verbose http://www.xxx.eu/AcSentVivresCrus/AcSentJnlp/AcSent.jnlp"). Is there a way in the the JNLP file to tell how to generate shortcuts (not the icon, etc., but command line options)?
    - This sample (https://blogs.oracle.com/thejavatutorials/entry/changing_the_java_web_start) displays the splash screen when I click on the the generated shortcuts (I use Windows 7). I have copied the ButtonDemo jar file and the JNLP file on my IIS web server (Windows 2008 Server), this time the splash screen does not show up when I click the generated shortcuts but always shows up when I use the command line. Can someone tell me if it is a trouble with IIS ?
    Thanks again...

  • How are Windows Server Backup and Command Line Tools used in vCSHB installation?

    How are Windows Server Backup and Command Line Tools used during the installation of vCSHB?  Is it required in all types of deployments (PtoV, VtoV, PtoP)? Is it used to create the files that are put in the file share for the second node to use during vCSHB installation or is it only used during a vCSHB clone operation of a Physical to Physical deployment?  Are these tools not used in some deployments?

    You need Windows Server Backup installed on source and destination, and during the installation of vCSHB the installer will invoke the wbadmin (Windows Server Backup Utility) and will backup configuration and application data (application data is optimal but can decrease the sync time after installation of secondary node). On the secondary node you will need only run the vCSHB installer and everything will be restored.
    Check this blog entry for some more info about some problems in P2P deployment: http://www.vcoportal.de/2013/12/vmware-vcenter-server-heartbeat-restore-on-a-second-node-a-journey/

  • Telnet Server or Command Line Applications

    Hi,
    Bit of a random question to ask seeing as no one has asked it before...but...
    Is there a TELNET SERVER or command line application around for the N series phones? I'm keen on doing some console work with my N82 to explore the symbian interface more.
    Any ideas?
    Owned: Nokia 3510i, Nokia 3120, Nokia 6230i, Nokia 6233, Nokia N73, Nokia N82.
    Current: Nokia N900!

    24-Mar-2008 02:25 PM
    psychomania wrote:
    This has been posted a few times recently for other models and I think someone posted a link to a useful app that works.
    Are you sure of this, Psycho?
    I've seen links to telnet and ssh CLIENTS for S60 here, not for servers.
    Message Edited by grschinon on 24-Mar-2008 02:38 PM
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • Command line applications

    Hi,
    does anybody know how to create a class that represents a command line application that would use a previously created class's methods and variables?
    Jamie

    Is this what you're after?
    You can compile these 2 together as is with InUser.java - though better to compile the class In.java seperately then you will be able to use it elsewhereimport java.io.*;
    // Note: this class has NO "main()" so it cannot work alone
    class In{
       private static InputStreamReader isr = new InputStreamReader(System.in);
       private static BufferedReader in = new BufferedReader(isr);
       public static void prompt(String s) {
          System.out.print(s);
          System.out.flush();
       public static String getString(){
          String str = null;
          try {
             str = in.readLine();
          catch (IOException e){
             System.out.println("Error: In.Read() "+e.getMessage());
             System.exit(0);
       return str;
       public static int getInt(){
          int ii = 0;
             try {
             ii = Integer.parseInt(in.readLine() );
          catch (NumberFormatException nfe){
             System.out.println("Error: the number is not convertable to an int");
          catch (IOException e){
             System.out.println("Error: In.Read() "+e.getMessage());
             System.exit(0);
       return ii;
       public static double getDouble(){
          double dd = 0D;
             try {
                dd = Double.parseDouble(in.readLine() );
             catch (NumberFormatException nfe){
                System.out.println("Error: the number is not convertable to a double");
             catch (IOException e){
                System.out.println("Error: In.Read() "+e.getMessage());
                System.exit(0);
       return dd;
    // And the user with file with a main signature:
    public class InUser{
       public static void main(String[]args){
          System.out.println("\nExample 'In.java' with Readln:");
          In.prompt("Please enter your name: ");
          String name = In.getString();
          System.out.println("Welcome "+name); 
          In.prompt("Please enter a whole number: ");  
          int ii = In.getInt();
          System.out.println("The number squared is "+(ii*ii)); 
          In.prompt("Please enter a fraction number: ");  
          double dd = In.getDouble();
          System.out.println("The numbers square root is " +Math.sqrt(dd));    
    }

  • To run a report from command line, when using jdbc-odbc bridge

    Hi,
    How to run a report from command line, when using jdbc-odbc bridge?
    Usually with tns, we do by "rwrun module=<> userid=<user>/<passwd>@tns".
    with odbc, we do by "rwrun module=<> userid=<user>/<passwd>@odbc:DSN"
    Please specify, what is command line arguments for jdbc-odbc bridge driver?
    Environment : Oracle 9i Report Builder on WinNT
    Database : Sybase
    Regards,
    Ramanan

    Hello Ramanan,
    Report Builder : connect JDBC Query in Report Builder is to through Connection Dialog in JDBC Query Editor. User can use a Sign on parameter (can use, default : P_JDBCPDS or can create new) to connect to JDBC Data Source. Connection once made will be mentioned and will be reused through out Reports Builder.
    JDBC PDS allows user to connect one or more same or different kind of databases.
    While running report through runtime or Server, user can pass the sign on parameter(connection string) value, like any other user parameter.
    Syntax for connection string : <username>/<password>@databaseURL . The syntax of database part of connection string depend on the type of JDBC Driver used to connect to Data Source while designing the JDBC Query. databaseURL refer to the location of the database and its format depend on the JDBCPDS river selected in design time while creating the JDBC Query.
    rwrun eg :
    rwrun report=jdbc_odbc.rdf destype=file desname=output.html desformat=html P_JDBCPDS=scott/tiger@database
    Server eg :
    http://server.com:8888/servlet/RWServlet?server=MyReportServer+report=jdbc_odbc.rdf+destype=cache+desformat=html+P_JDBCPDS=scott/tiger@database
    http :
    Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more information.
    With Regards
    Reports Team

  • How do shutdown the weblogic server from the command line prompt using web logic 8.1

    I%u2019m currently using weblogic 6.1, but I will upgrade to weblogic 8.1. In weblogic 6.1, the following statements will shutdown the weblogic instance from the command line:
    java weblogic.Admin -url t3://hostname:port -username system -password abc SHUTDOWN
    How do I shutdown the weblogic server from the command line prompt using web logic 8.1.
    Any help will be greatly appreciated.
    Maria

    Maria <[email protected]> wrote:
    How do I shutdown the weblogic server from the
    command line prompt using weblogic 8.1?Greetings Maria! Use this document, located here:
    http://edocs.bea.com/wls/docs81/admin_ref/cli.html#1131733
    Hope this helps...
    Brian J. Mitchell
    Systems Administrator, TRX
    email: [email protected]
    office: +1 404 327 7238
    mobile: +1 678 283 6530

  • KeyListener for a command line application

    Hi, I'm currently writing a small command line application aimed at interacting with a database. I would like to implement features such as an automatic completion of the names with the TAB key. My problem is that the objects that sends KeyEvent are AWT components, and they do that when they have the focus. So I was wondering if any of you had already done such a thing. Until now, I tried lots of things, but there is no way I can catch a KeyEvent within the command line...
    Souk

    Write your own input routine that internally reads a character at a time instead of a complete line or string and test the character for tab etc. and take the appropriate action. This also means you will have to/can implement editing keys.
    If there is a Java class that has an dictionary to compare input with I do not know, because the last time I wrote a tool without gui was in 1985.
    Regards
    SH

  • Can the command line application be extended?

    I would like to add command like keys etc..Is this possible?

    Correct me if I am wrong, from what I understand, beanShell is a scripting language which interprets the Java language. Yes, I could connect to coherence cache and run any commands I want. However, that won't include the commands which are already prefined in the tangosol command line, would it?
    If I am wrong, I would appreciate if you could show me an example of beanShell and the command line application.

  • Close HyperTerminal Application using LabVIEW

    I have a client who wants LabVIEW to close the HyperTerminal Application automatically is it has the serial port open.
    Detecting that the serial port is already in use is simple.  I already have a popup that tells the operator to close any communication application because the port is already in use; however, they want it done automatically.
    HyperTerminal does not have ActiveX support and they will not go to the more professional version which does.
    A long time ago, I had read a thread where it was possible to close (or open?) and application that did not have ActiveX support.  I was hoping to use this similar approach..  Opening the app is simpler, but closing it is a different story.  You need some sort of reference to that application to tell Windows which one to close.  The OS in Win-XP.
    Suggestions are welcomed.
    R
    Solved!
    Go to Solution.

    http://www.howtogeek.com/howto/windows/kill-processes-from-the-windows-command-line/ 
    OR
    Taskkill  (command line as well)  http://technet.microsoft.com/en-us/library/bb491009.aspx
    taskkill /IM hyperterm.exe
    will kill all hyperterm windows open, BUT it will ask you if you want to close any open sessions, which I think you don't want. 
    taskkill /F /IM hyperterm.exe
    does the trick (without chewing up the com port, I just tried)

  • Can I use the NI DAQmxbase C functions to develop a Smart Device application using a NI USB or NI ENET 9234 C module with Visual Studio for an iMX31 (ARM 11) embedded computer running Win CE 5.0 or 6.0?

    I have an embedded application running on a iMX31 (ARM 11) that does fairly high performance analog input (24 bit, 50K samples/second).  I use Microsoft Visual Studio 2005 C/C++ for the develoment environment and have currently built versions of the application for Win CE 5.0 and 6.0 without Labview or NI hardware.  I have used the NI 9234 with great success on several Labview applications in the past and I'd like to use the 9234 on this embedded application with VS2005 C/C++. The NI documentation hints that I should be able to do this (maybe I'm overly optimistic) and I'm wondering if anyone else has?   I've tried the Evaluation versions of Labview Mobile and Labview Touch panel to build a C application using the NI DAQmx base C function inside Visual Studio without success.  I can compile and link the ContAcq IntClk LV example project for an x86 platform using NIDAQmx but not for a ARM platform using NIDAQmxbase.lib.  I get the same linker error   error LNK2019: unresolved external symbol referred to in Knowledge Base Document ID 4HAEE7QQ  even though I've set up (or think I've set up ) VS2005 as the KB article indicates.
    If anyone has used the C functions and NIDAQmxbase library inside a VS2005 Smart Device project, I'd greatly appreciate your comments.
    Thanks 

    Hello Gene,
    I have been checking into this for you and have found out that what you are trying to do cannot be done.  At least not in the current manner you are hoping for.  The internal architecture of DAQmx Base requires the cross-compiling capability of the LabVIEW Mobile Module. While a stand-alone compiler can compile DAQmx Base calls for desktop processors, it cannot compile DAQmx Base calls for ARM.
    If your application requirements exclude the LabVIEW toolchain, then the remaining option is the USB Driver Development Kit which is avaliable here, but you will have to contact your local field sales representative to discuss support
    options as standard phone and e-mail support are not available for the
    NI Measurement Hardware DDK. 
    NI Measurement Hardware Driver Development Kit
    http://digital.ni.com/express.nsf/bycode/exyv4w?opendocument&lang=en&node=seminar_US
    ColeR
    Field Engineer

  • Command Line Application Usage

    Can I use the command line app (coherence.cmd) to query values in an out of process cache? If so how would I go about that?

    Hi Karim,
    Let's assume you have a distributed cache named "Test1" on the cache servers. You can start the command line app on a cache client (localstorage=false) and join the same named cache that is running on the cache servers by typing the following command at the prompt:
    cache Test1
    From the prompt you can type the following command to display cache entries in this particular cache:
    list
    A list of available commands can be found by typing "help" at the prompt or here on the website here.
    I hope this helps.
    Best regards,
    Gary
    Tangosol, Inc.

  • On line applications using XI

    Hi
    Anybody designed online applications using SAP EP and SAP XI. If you anybody did I would like to know if the performance was good.
    I know how to make things work. That is not the problem. Also let me know if there are any good examples of SAP doing something like this.
    Regards
    Mike

    I've done a scenario of online electronic invoice emission (from r/3 to federal revenue webservice, synchronous). It had several steps, including BPM, and the whole process time was actually quite good.
    Regards,
    Henrique.

  • PHP include path for command line applications

    I'm packaging my first contribution to the AUR: a package for Boris, a tiny REPL for PHP.
    The issue I'm finding is that it includes a file relative to where the bin is and it somewhat conflicts with Arch's recommendation for using /usr/lib/pkgname for shared files. You can see the offending line here: https://github.com/d11wtq/boris/blob/ma … n/boris#L6
    I fixed it with sed, but I'm not happy with the solution I wrote. I hoped for PHP shared libraries to have a $PATH such as Python packages, but it seems like it doesn't (by default). See my pkgbuild here: http://sprunge.us/TYgj

    I do it using the registry.  Here is a post where I have a AutoIt EXE scan for what versions of the runtime engine are installed.  And then it runs an EXE that is compatible with the run-time engine or development environment installed.
    http://lavag.org/topic/17803-run-exe-based-on-installed-run-time/
    But you can also do it from a VI.  Attached is a VI that will find the Run-Time versions installed and development with path to the EXE/DLL.
    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.
    Attachments:
    LabVIEW Versions Installed Registry.vi ‏37 KB

  • Command line export, using citrix

    Running the following script to export a workbook to csv file.
    dis51usr.exe /connect xxx/xxx@SID /apps_user /apps_responsibility "XXX GL Inquiry" /opendb "GL_Headers" /sheet 1 /export csv "C:\Discoverer_ScheduledWorkbooks\gl_headers.csv" /batch /logfile NUL
    The command works fine when directly logged on to the citrix box as user xxx. When run as a scheduled task, in the background, the settings for max number of rows is being ignored and only 10,000 rows are being retrieved/exported. The scheduled task is set to run as user xxx and is running, just the export is stopping at 10,000 rows. The user xxx is set in the Query Governor to not have a row limit (the box is not checked)
    I suspect this has to do with the user not being directly logged on and the incorrect registry settings/preferences being used.
    Any ideas? suggestions?

    Hi
    In order to get Discoverer Desktop to work on Citrix someone, presumably your administrator, has to do the initial install. That initial installed would have been done on a Microsoft Server of some sort. This is where the default registry settings are.
    From this point on, whenever a user clicks on the Discoverer icon they don't run their own version of Discoverer but a copy of the Discoverer from the Citrix server. As a launch point the registry settings from the server are used as the launch point but overwritten with the user's personalized settings if and only if you are using named accounts, not anonymous accounts, and the user is a local administrator. However, it is very unlikely that many end users, if any, will have been given permission to be a local administrator and so they have to reply on the administrator having set the correct registry settings on the server.
    Your administrator needs to physically go to the server and log on. Then, as I mentioned in a previous posting, they need to place the server into change mode. This is done at the DOS level. With the server in change mode whatever registry settings that need to be applied should be applied. This can be done using a REG file as mentioned in a previous posting. Next, the administrator needs to make the server execute those changes so that they become permanent and for everyone not just for the server. It is vitally important that the server is in change mode for the briefest amount of time and that only changes which are needed for everyone should be applied.
    With all of this done you should see the settings working for a user. Your Citrix administrator should know all about the above steps because he / she will have had to make similar changes and set ups for other applications. Beyond helping with the Discoverer settings, because this is an Oracle forum I can't post answers that are purely Citrix in nature. If you need help with the inner workings of Citrix you'll have to take that up in a Citrix forum.
    As an FYI, getting Discoverer to work in a Citrix Metaframe environment can be tricky and needs planning and thought and some expertise at the admin level. In addition, as you may well be aware, running Discoverer in a Citrix environment is unsupported by Oracle and as such there is limited help available. You also need to purchase as many Desktop licenses as the number of users who will be using Discoverer. Many companies fall foul of this and end up under licensed but those that do it right and get the administration set ups correct are able to run Discoverer effortlessly.
    Best wishes
    Michael

Maybe you are looking for

  • Unable to find a data source in RSA5 which can be seen in RSA3.

    Hi there, I am unable to find the business content data sources in RSA5, but I can find the same data sources in RSA3 (extract checker). I need these data sources to be replicated to BW and take it up further. Any light on the above issue will be of

  • Mac Mini Server Hangs, Gets Sluggish

    New 2012 Mac Mini Server (2Gig i7 with 8GB memory). Server App is off, and I'm using it as a standalone unit. Running iTunes on an external Thunderbolt RAID. Running Safari with several tabs open. The iMac generally gets irratic within an hour or so:

  • Conditional where, or PL/SQL block as source for an interactive report?

    I have this situation: The main screen of my application shows a list of documents. For now, there has to be a quick "security" built in, so administrators can see all documents, but other users can only see the documents they created (login of creat

  • How to Transport VC Content from NetWeaver 7.0 to NetWeaver 7.4

    Hi I am following the wiki: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c084eeac-b97a-2c10-e8b0-a27b5608b5d2?overridelayout=true http://wiki.scn.sap.com/wiki/display/BOBJ/BI4+-+NW+Java+WAS+7.3+EP+and+BI4+portal+applications?ori

  • OSB input payload with characters ' '  ' ' fails service invoke

    Hi, In OSB I am calling a USM service to search the contents. Created a Business Service out of USM Search WSDL and then a proxy service which calls the business service. When I am trying to test the service through SOAP UI with the below payload I g