Develop an application from command line using LabVIEW

Hello

Is it possible to generate an executable command line (CLI) uses LabVIEW? This CLI exe is called with some arguments in command line 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

The only way I found is to create command-line 'wrapper', where the DLL based on LabVIEW is called. So you can not only pass parameters to the command line application, but also the return values of CLI app.

Check this thread: tool command line that returns a value

Andrey.

Tags: NI Software

Similar Questions

  • Call a visual basic executable file with arguments command line using LABView

    Hi all

    I try to call a visual basic executable file with a command line using LABView 2014 argument. What I'm trying to accomplish executes an executable file that communicates with a device via a COM port. So, I would open the .exe with a command line argument to communicate via com 3 using the SYSTEM Exec VI. It seems that the command prompt window flashes and closes and then nothing happens. Not a lot of discussions about this on the forum. Any help would be greatly appreciated. Thank you.

    With some programs, instead of passing in the string:

    Somefile.exe

    Instead, you can use:

    cmd /c "C:\Full Path\to the EXE\Somefile.exe"

    Can you tell us what exactly you are trying to run?

  • I need to increase the memory available to an application from command line (DOS window)

    At the cmd prompt, I perform the mem command and get the following. I have 3gig of ram but the mem says I have 0 contiguous extended memory available? Is there a way to access this memeory?

    memory 655360 bytes total conventional
    655360 bytes available in MS-DOS mode
    578240 largest executable program size

    1048576 bytes total contiguous extended memory
    0 bytes available contiguous extended memory
    941056 bytes available XMS memory
    MS-DOS resident in high memory area

    This solution does not work, thanks for the reply but. I found that Vista locks going to the Command.pif running cmd from Windows users, so even if you terminate the process cmd it active again. I also found a mistake in one of the sons were he mentions emm396.exe as a way to check the emm on Vista memory. My Home Premium installation isn't emm386.exe.

    Anyway once again don't thanks for the help no wonder that many stores do not use Vista. There are a number of development tools that run from command line.

  • portablize an application from command line

    I want to use vmware to portablize this application
    This application includes:
    1. an exe file
    2.a batch file
    the batch file uses the command line to run the exe file
    How can I portablize this project?
    I made a simple pre and post scan but the vmware does not capture anything on the execution of the batch file, but just the exe file
    My problem is mainly to set up the file "Package.ini.
    Help, please...

    for example, the batch file contains:


    the echo of my text

    the entered value 1 =
    Set /P INPUT1 = % = %

    If INPUT1% equ 215%

    a.exe

    the batch file captures the entry and if 215 is entered, it starts a.exe

    Please change the first lines of package.ini as below (do not add to the bottom of the package.ini)

    [a.exe]
    Source=%SystemSystem%\COMMAND.com
    CommandLine=%SystemSystem%\COMMAND.COM/c h.bat
    ReadOnlyData = Package.ro.tvr
    Project WorkingDirectory=%drive_C%\My

    Make sure that the h.bat file is available under %drive_C%\My project folder.

    If this isn't the case, copy the file manually and rebuild the package.

  • Launch application from command line

    ImageMagick is a graphics reportoire command line application. I wish I could control this (launch windows command line scripts) within Director.

    Is this possible?

    Thank you

    Free ShellXtra looks like Valentine's day a good fit for you:

    http://staff.dasdeck.de/Valentin/Xtras/shell/

  • syntax of command line using windows 7 to find/select something in a new Explorer window

    in a syntax of command line using windows 7 I would d a Search Explorer to find all the *.jpg and the command line syntax is cheating on me.
    C:\Windows\explorer.exe/n, / e, e:\photos brings the folder but fine:
    C:\Windows\explorer.exe/n, / e, e:\photos /name: *.jpg is not the choice I want - it starts an assignment of the Explorer in 'my documents '.
    I do not need a full AQS syntax guide, only how to make the choice to work. Maybe the /name: is not the right word, is it / selection or/find or something else?
    Thank you
    Rick J.

    Hi Rick,

    Thank you for reaching out to the Microsoft Community.

    According to the description, it seems that you want to use the syntax of command line on Windows 7 computer.

    I suggest to see the steps from the following link and check.

    Advanced query syntax to search for files in Windows 7

    http://blogs.technet.com/b/alanlemarquand/archive/2010/08/13/using_2d00_advanced_2d00_query_2d00_syntax_2d00_to_2d00_find_2d00_files_2d00_in_2d00_windows_2d00_7.aspx

    For more assistance, you can post your request in the Technet forums.

    http://social.technet.Microsoft.com/forums/en/category/w7itpro

    If you have any questions on Windows, feel free to let us know. It is our pleasure to be of service.

  • The application's command line arguments get the path to the file in windows Explorer

    Hello

    I am trying to open a file with my labview application .exe, so I thought that windows was sending the file path double clicked in Explorer solutions in the form of argument, but all I get is the name of my exe file.

    Does anyone know how to set up windows or the application to get the double click path from the Explorer, which has the file extension has already been associated with my exe?

    Thank you!

    I'm not sure I understand, but I think you want your Labview program to open another file, as a file of perimeter?

    Have three basic choices.

    Hardcode the path with file name in your program http://zone.ni.com/reference/en-XX/help/371361K-01/glang/path_constant/

    Use the file open vi and for the user to select the file to open http://zone.ni.com/reference/en-XX/help/371361J-01/glang/file_dialog/

    Write your program to accept a http://digital.ni.com/public.nsf/allkb/17C3AD70493CE0208625666A00763364 command line argument

  • The file of the bar - descriptor.xml (and make the application of command line)

    I made a game with air and it is online for sale on Android and iOS. It is somewhat popular and I thought to put up on Blackberry for quite awhile now and with the Port of soon-to-start-A-Thon, this seems to be a great time to finally make it.

    BlackBerry is not very common that here where I live in Sweden, however it still looks like an interesting with a potential platform if I want to get the trip. Unfortunately I don't own a camera myself so I'll use the Simulator. With some graphic problems with the simulator when running in mode BB10DevAlpha (icons does not appear right) and the Simulator is very slow when running in mode BB10DevAlphaSafe (chart appears on the right, but it seems that updating them requires more CPU my computer are available).

    The game is built using nothing other than Adobe Flash Professional CS6 and a bunch of command line tools to build the package and sign. I've only got an old computer with Windows XP now since the death of my main PC, all at the time and since the Port-A-Thon is just a few days I do with what I got.

    Firstly I understand that only AIR 3.1 is supported by Blackberry 10, so I use the old AIR SDK 3.1 to create a SWF (flash) file.

    What I really need to do should be used in the exported SWF file of the game, then use the command line tools provided by RIM to build the package, right?

    Except that I did not count on bar - descriptor.xml to be so difficult to understand.

    I was brought to the documentation here: https://developer.blackberry.com/air/documentation/bb10/bar-descriptor_config_file.html

    It says Adobe AIR at the top, the platform selected is Blackberry 10 and the title says "bar-descriptor configuration file", so it must be in the right place!

    I start by trying the 'bar-descriptor configuration example file"on this page:

    ===========================================================



      
          None
          fake
      

     
      
       Name of the author
     
      
       gXXXxXXx ##XxXxXxxxXxXX #xxx
     
      
       Core.Games
     
      
       Icon.PNG
     
      
       HelloWorld - splash.png
     
      
       read_geolocation
       use_camera
     
      
       1

    ===========================================================

    Of course during the test I replaced a few things in the example above with the correct filenames for images etc, I just copied the example of right - off this time to you guys show what I mean.

    Firstly, I extract "blackberry-tablets-sdk - 3.0.0" in a folder on the disc, then I make sure as a full path to the "bin" in the SDK folder inside the path on the OS environment variable.

    Then I read on "Applications of Test using the command line": https://developer.blackberry.com/air/documentation/bb10/testing_your_application_cmd_ms_2010851_11.h...

    Now I run:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf myappnameicon86.png bg splashscreen1024.png - device 192.168.8.128

    Note that "bg" is a folder with 500 images that must be accessible from the app. I hope that I can just add the folder like this and not type a path to each image file...

    What I get (in lib\adt.jar via the bat file):

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Okay, so the example did not straight on the box.

    Now, I've read all paragraphs in the first URL I linked above ("the bar-descriptor configuration file"). I start my own XML file and make sure to include everything that is marked as "necessary". That's what I'm left with:

    ===========================================================



        MyCompany
        
            
            com.mydomain.myappname
            My App name
            3.0.0
            
                splashscreen1024.PNG
            

            1.5.0
        

        run_native
        
            application
            
                bb.action.VIEW
                application/octet-stream
            

        

    ===========================================================

    I have no idea of what concerns the block whole call target, but it took, so he must be there.

    Now I launch (notice that myappnameicon86.png is gone since no icon is mentioned in the above XML code, it is not mandatory):

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf bg splashscreen1024.png - device 192.168.8.128

    Yet once, I get:

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Frustrated I get autour on the forums for answers, because the official documentation is nowhere getting me.

    I'm left with this:

    ===========================================================


    http://ns.Adobe.com/air/application/3.1">
        com.mydomain.myappname
        1.5.0
        
        My App name
        
        My App name
        
        
            myappname.swf
            standard
            fake
            true
            true
            landscape
            GPU
            fake
        

        
            myappnameicon36.PNG
            myappnameicon48.PNG
            myappnameicon72.PNG
        

        fake
        fake
        
            qnx.fuse.ui.skins.QNXDevice
            qnx.fuse.ui.skins.QNXNetwork
            qnx.fuse.ui.skins.QNXSensors

            qnx.fuse.ui.skins.QNXSkins
        

    ===========================================================

    Looks like the XML code that I use when I build for Android.

    First of all it doesn't have the tag root of qnx, but also nothing of the icons are of the required size (86 x 86). The tag required splashscreens and invoke target is also absent, to name a few. No idea of what the entire block of 'extensions' really do.

    Surely, this does not work:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf QNXDevice.ane QNXNetwork.ane QNXSensors.ane QNXSkins.ane myappnameicon36.png myappnameicon48.png myappnameicon72.png bg-device 192.168.8.128

    Success in building the package BAR to my infinite surprise!

    He even managed to install on the Simulator. An icon for the game. However when it auto-couru the app went into landscape, thought for a second and then crashed (or you leave?) without a message.

    Perhaps because the required qnx tag was missing in the XML?
    Perhaps because images in the bg file could not be loaded?
    Perhaps because he had no permission to keep screen from dimming?

    I have no idea. I tried to add XML to qnx at the address previous to the bar - descriptor.xml, I thought that maybe he needed both the qnx block for when you run the application and the application block for when packaging. But now, he has complained of something like XML is not not clean ("' fatal error: markup in the document following the root element must be well-formed." ").

    So he came to it, I have to ask for help if I ever make the deadline of the Port-A-Thon.

    (1) how am I supposed to write the bar - descriptor.xml?
    (2) what command line starting by "blackberry - airpackager.bat" is OK to use?
    (3) all I have to do is build the SWF using Adobe Flash Professional CS6 and then pack it using the Blackberry SDK, right?

    First of all, there are two xml files that you need.

    One is called the manifesto, is to AIR and is called yourappname- app.xml. It is identical to the ones you use for Android and IOS, though some elements will be ignored. It's one you need to switch on the command line, and is probably causing the 'Namespace' missing error message. A file manifest a minimum is:

    
    http://ns.adobe.com/air/application/3.1">
    
        com.example.appname
        My Fabulous Game
        1.0.0
    
        FileNameOfYourSwfWithoutExtension
        YourCompanyName
        
            [This value will be overwritten by Flash Builder in the output app.xml]
            true
            false
            none
            cpu
            false
        
    
    

    Replace the text in red with your own stuff.

    The second xml file is called to the bar of descriptor. It is for App World and the installation process and is called bar - descriptor.xml. It contains information about signing code, icon, permissions etc. A simple bar - descriptor.xml is:

    
    
       
          none
          true
          landscape
          false
          cpu
       
    
       
       your-name-on-certificate
       your-id-on-certificate
    
       core.games
    
       
       1
    
       
       
          icon86x86.png
       
       splash-landscape.png
    
       
       2.1.0.1314
    
       
       access_shared
       access_internet
       play_audio
       set_audio_volume
    
    

    Make sure that you at least change the red dots.

  • Windows of different sizes from command line

    Hello

    I'm running Firefox and - width - height of command line options. The problem I have is that these settings are ignored if a Firefox window is already open. In this case, all of the following windows are open with the size of the first (original) window. It does not matter what I type for width and height. These parameters are used only for the first window, when Firefox is actually started.

    I've mitigated it wrong before with javascript used in web pages to resize the window to the document load event. Now I have to upgrade to the latest version and resizeTo does not work on windows that are not open via window.open.

    What are the options I have to open multiple windows of Firefox with different sizes? They all use the same profile.

    We use a very specific environment, closed and controlled with a web server and not internet access. There was no need for update of Firefox 4. Now, we want to upgrade, but this change in functionality prevents us from the upgrade. Because the computers of our customers are on CentOS 5, we would be upgrading to Firefox 17 which is part of the standard CentOS 5 distribution.

    I wrote a bash script that made a list of the windows, firefox lance made a list once again. It then searches the differences in the lists of before and after opening firefox. In the end, the script uses wmctrl to change the size of the window which were found also recently opened. There is a small chance that some other window might appear while the opening of firefox and it will be be reduced too. However, in our case, this probability is very low and it is not worth.

    Here is the script which takes 3 parameters: width, height, URL.

    #!/bin/bash
    
    diff(){
      awk 'BEGIN{RS=ORS=" "}
           {NR==FNR?a[$0]++:a[$0]--}
           END{for(k in a)if(a[k])print k}' <(echo -n "${!1}") <(echo -n "${!2}")
    }
    
    window_count=$(wmctrl -l | wc -l)
    
    windows=()
    
    wmctrl -l > output
    
    exec 0<output 
    
    while read id type machine name
    
    do
    
      windows=("${windows[@]}" "$id")
    
    done
    
    # width and height in this call are ignored if some other firefox window is already open
    
    /usr/bin/firefox -P profile -width $1 -height $2 -new-window $3 &
    
    new_window_count=$window_count
    
    while [ "$window_count" -eq "$new_window_count" ]
    
    do
    
      #echo waiting...
    
      sleep 1
    
      new_window_count=$(wmctrl -l | wc -l)
    
    done
    
    new_windows=()
    
    wmctrl -l > output
    
    exec 0<output "$id")="" "${differences[@]}"="" $i="" -e="" -i="" -r="" 0,-1,-1,$1,$2="" <="" differences="($(diff" do="" done="" for="" i="" id="" in="" machine="" name="" new_windows="("${new_windows[@]}"" new_windows[@]))="" pre="" read="" type="" while="" windows[@]="" wmctrl="">
    
    done
    
    I had to do some tweaking in the script to fool the HTML editor. Some formatting of text is performed, that is not source friendly. That is why the script might look formatted strangely.
    
    </output>
  • Request signatures (sign your App) from command line

    Is there a way to "request for signatures" from the command line?

    I'm doing my deployment during development much easier and without having to enter my password of signature.

    java-jar "C:\Program research in Motion\BlackBerry JDE 4.6.0\bin\SignatureTool.jar" - a - c - p

    should work just fine.

  • Windows 7 Defrag from command line does not work

    We are running Windows 7 in a virtualized environment. When you run windows defrag hourly use of the command line, it does not work. The order that I will execute as administrator is

    C:\Windows\System32>defrag/c

    Microsoft Disk Defragmenter
    Copyright (c) 2007 Microsoft Corp.

    It displays the above message and leaves back to the command prompt. However if I run the defrag C: command it does not. Defragmentation from the GUI works so as long as both drives (C: and system reserved) are selected and when I click on defragment drives, works very well.

    I am concerned about defrag from the Task Scheduler with the command ' defrag/c' (self programmed to help set up the calendar... from Disk Defragmenter) does not work and the system never gets defragmented automatically.

    This only happens with some of the windows virtual machine 7 we have.

    There are no entries in the event log that point to defragmentation (using the Task Scheduler). Anything can happen on the ideas?

    Hello Sebastian,.

    Thanks for posting your question on the Forum of the Microsoft community.

    The question will be better suited to the audience of it professionals on the TechNet forums.

    I would recommend posting your query in the TechNet Forums.
     
    TechNet Forum
    http://social.technet.Microsoft.com/forums/en-us/home?category=w7itpro

    Thank you

  • How can I print spare part in a PDF file from command line?

    For my organization, we have a lot of .pdf files, each of which contains several .pdf files in their midst as attachments (i.e. a single .pdf file that contains other .pdf files). I know that I can print a .pdf file with the following command via the command prompt.

    "C:\Program Files (x 86) \Adobe\Acrobat ' / n/t 'filetoprint.pdf' '\\printerserver\printername '.

    Although this example shows the PDF in question, it does print all attachments in the file 'filetoprint.pdf '. I've scoured google and these forums, but I did not seem to find a switch or anything that would allow me to do. Does anyone have any suggestions? It must be done by the command line. I'd appreciate any help! Thank you!

    ~ Justin

    After much research, I found the answer. Start with, rather than using a .bat file, I used the wizard of the Action to set up a script. Then, I put the script to process all the files in a given folder. I changed the folder that will contain all the files in .pdf (including attachments) that I wanted to deal with. Then, I wrote the following javascript code:

    var d = this.dataObjects;

    pp var = this.getPrintParams ();

    pp.interactive = pp.constants.interactionLevel.silent;

    pp.printerName = "\\\printerserver\\printer";

    This.Print (pp);

    var oDoc;

    for (var i = 0; i)< d.length;="">
    {

    oDoc = this.openDataObject (d [i] .name);

    oDoc.print (pp);

    }

    Yes, it isn't command line as I originally wanted, but there is still work for what I need to do. It looks like you can trigger an action from a VBA Macro or something, even though at this point, I think it's more trouble that it's worth. in any case, I hope this helps anyone who has the same problem!

  • Can I use a dimension of import command line using table interface?

    Hi guys

    I'm using EPMA to load dimensions by using the interface of the table, but I want to know if it is possible to launch using a command line?

    Concerning

    Yes, use client batch epma, have a read of http://john-goodwin.blogspot.com/2011/11/loading-to-epma-planning-applications.html

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Compare 2 PDF of the file through the command line using the Acrobat SDK

    Hello

    I want to compare 2 by command line of the PDF using the Acrobat SDK, is it possible?

    My needis to create Automation for comparison in .net, c# technology to compare files of 100.

    Could you be it someone at - it one please let me if the Acrobat SDK kit supports integration with .NET and is it possible to call the term comapere.

    OK, Acrobat is not suitable. It is not technically suitable for the server; also no license. It doesn't have a command line, only OLE user interface.

    There are Acrobat PDF library, allowing development in C/C++. But I think that there is no function to compare. You will need to implement one yourself, which is a probably a lot of work. What kind of comparison do you want? If you just want to know if the files have changed at all you can use all the checksums without any API. Or are you looking for any Visual change? Or text change...?

  • VMware Player 6.0.1: Howto from command line, for example, where is vmrun?

    Hello

    I installed VMware Player 6.0.1 on openSUSE 3.1 by using the serial number that I received with Fusion Professional 6.0.2.

    Virtual machines spin if they are started through the user interface, but I would like first of all to them via command line.

    Question: How can I start virtual machines from the command line? I've read that vmrun must do the job but I can't find this command.

    Did a search on my system: no file vmrun lie.

    Any idea where I get vmrun of?

    Thanks for your help,

    Fred

    It is installed separately and is available under the tab drivers & tools of the VMware Player download page.

Maybe you are looking for