Line tool command that returns a value

Is it possible to compile a VI to work as a tool of command line that accepts arguments and returns a value? I need to create commands that will be run from a shell script and return values that will be used in the script in order to evaluate the results. If possible, the type and the range of values can be returned? I've seen a few posts on the masking of the façade, but none on the return a value to the shell of the appellant.

Andrey,

Thanks for your help. The only thing missing from your response to me was that I use c#. In this case, you simply have to add code to manage a DLL unmanaged like this:

using System.Runtime.InteropServices;

public class Win32

{

[DllImport ("Drive Letter: \\path to dll\\DLL Name.Dll")]

public static extern double Testing();

}

After you have added this code to import the DLL in a class of your choice, you can call the function to run the LabVIEW VI library.

Best regards

Timothy

Tags: NI Software

Similar Questions

  • Do stuff to PL/SQl that returns the value and redirect to modal page by setting this value

    Hello

    a button click Page1 I would perform a PL/SQL procedure that returns a value in P1_ITEMVAL and then redirect to a page 2 (modal page) and the value of an item on this page with the value previously returned. To do the same thing with a normal page is quite easy:

    Button action is present, then process of PL/SQL that returns the value in the P1_ITEMVAL element and, finally, a branch at page 2 that sets P2_ITEMVAL with P1_ITEMVAL. I really have no idea how to do the same thing when the target is a modal page.

    I created a unit test on https://apex.oracle.com/pls/apex (application 1554 - redir_to_modal)

    Workspace: tests

    USER: supporter

    PWD: supporter1234

    Any help would be much appreciated.

    Kind regards

    Pavel

    Pavel

    If you prepare a URL using the value calculated in the PLSQL of DA part you can then use a subsequent stage of javascript to set the location of the window.

    This will jump to the top of the page of the modal dialog box

    : P1_URL: = apex_util.prepare_url)

    ' f ? p ='|| : APP_ID - Application id

    |': 2' - Page id

    ||': ' || : APP_SESSION - Session id

    ||':'                      -- Request

    ||':NO'                    -- Debug

    : ': ' - Clear Cache

    : ': ' - Settings

    ||' P2_ITEMVAL'

    : ': ' - Parameter values

    || (: P1_ITEMVAL);

    then in the action of javascript

    Window.Location.Replace ($v ('P1_URL'));

    Hope this is of some use

    Concerning

    Kelvin

  • Plugin to point that returns multiple values

    When you create an APEX element that can return multiple values, such as a checkbox, APEX uses the settings of varchar2 p_v01 - p_v200 instead of the p_t01 table settings - p_t200.

    I would like to create a plugin item type that can return multiple values in the same way, so that the session recorded for the item state contains a delimited string of values.  I realize, I could achieve with Javascript and a hidden item, but I really want to a non-Javascript solution.  Is this possible?  If this isn't the case, it would be a nice improvement!

    Hi Tony,.

    Take a look at the level of the parameter p_is_multi_value of the APEX_PLUGIN. GET_INPUT_NAME_FOR_PAGE_ITEM api (http://docs.oracle.com/cd/E37097_01/doc.42/e35127/apex_plugin.htm#AEAPI1254). If you set it to TRUE, you will get one of the p_v01 - p_v200 table settings. It's the same what our box element type calls.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

  • How to set a value that returns the value zero to O

    Hello, I have a xml field that returns null... I want 0 to replace the null value... How do in implementing in shape... pls let me know

    Use
    If set to NULL, it replaces with 0, VAL else displayed.

  • How to use a method described in a customer VO interface that returns a value

    ADF 11 g

    Hello

    I created a method on a view object that returns a Boolean value.
    I exposed the method of the interface to the customer of the view object
    I paste the method in my view through page links page.

    How to call the method of a bean and get the return value?

    Concerning
    Paul

    Paul,

    I do not have the parameter passed to the method, I spent just the binding of method name in the method getOperationBinding. If you want to pass parameter, you can do either via the operationBinding or using NamedData bean in pagedef

    Jean Lou

  • Need help to create a search form that returns all values on this line

    Hello

    I have a pdf document that lists every zip code unique to the USA and for each line, it has five columns of information for each zip.  Using the integrated search, when the user key a zip code, the cursor jumps to that page and highlights only the postal code, making it difficult to read the other five columns.

    Not sure if this is possible, but it would be the ideal solution:

    Enter the postal Code: [search] _ <-user key a zip code if found, return all columns in the same row in the report below

    Group:                    ___________

    Description of the Group: _

    Mkt Area                 ____________

    City                         ____________

    State                      ___

    This can be done (in the PDF file), but it requires a script to measure.

    The worksheet data should be converted to a crude and attached text to the PDF file, and then the script could read and fill in the fields on this basis.

    If you are interested in hiring someone to develop this script for you, feel free to contact me privately at try6767 at gmail.com

  • Is there a hitTest that returns one value other than Boolean?

    For instance, what happens if I got an object, obj1 say and I did not just want to say, ' Hey, is touch obj1 obj2. But I wanted to say, ' is there any object touching obj1? Is what object this? "If there are many objects and you want to know what object is touching 1 without asking questions about every single possible object on the stage... is it possible?

    "If there are many objects and you just want to know which object is touching object 1 without asking questions about every single possible object on the stage... is that possible?"

    No, it is not possible without loop through all the objects that are of interest (of course you can break loop execution once the first shot is encountered to shorten the time). In fact, the reason why it is not possible is there is no way to predict all the objects on the stage. In addition, what happens if you want to exclude certain objects detected as hits?

  • How to expose a function that returns a XML as a Web Service?

    ---------------------------------------------------------------------------------
    Oracle Database 11 g Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    "CORE 11.2.0.3.0 Production."
    AMT for 64-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    ---------------------------------------------------------------------------------

    After reviewing the documentation of oracle on the generation of xml data in the database, I managed to select normal tables and return a result xml exactly as I want:
    -- My types
    create or replace 
    TYPE CHILD_T AS OBJECT ("@ID" VARCHAR2(20), "@NAME" VARCHAR2(20));
    
    create or replace 
    TYPE CHILDREN_T AS TABLE OF CHILD_T;
    
    create or replace 
    TYPE PARENT_T AS OBJECT ("@ID" VARCHAR2(20), CHILDREN CHILDREN_T );
    
    -- The actual select
    SELECT XMLFOREST (
                PARENT_T(d.id,
                CAST ( MULTISET (SELECT c.id, c.name
                                 FROM child c
                                 WHERE c.parent_id = p.id) AS CHILDREN_T )
                ) AS "Parent"
            ) 
    FROM parent p;
    That gets me this:
    <Parent ID="1">
        <CHILDREN>
            <CHILD_T ID="1" NAME="xxxxx" />
            <CHILD_T ID="2" NAME="yyyyy" />
            <CHILD_T ID="3" NAME="zzzzz" />
        </CHILDREN>
    </Parent>
    It's perfect, but how to expose this result as a Web Service like this link?
     http://localhost:8080/orawsv/MY_USER/GET_CHILDREN?wsdl
    I tried this function:
    FUNCTION GET_CHILDREN (
        PARENT_ID IN VARCHAR2
    ) RETURN CLOB
    AS
        L_RESULT CLOB;
    BEGIN
        SELECT to_clob(XMLFOREST (
                PARENT_T (p.id,
                CAST ( MULTISET (SELECT c.id, c.name
                                 FROM child c
                                 WHERE c.parentId = p.id) AS CHILDREN_T )
                ) AS "ParentObj"
          )) AS MY_XML INTO L_RESULT
        FROM parent p
        WHERE p.i = PARENT_ID;
    
        RETURN (L_RESULT);
    END GET_CHILDREN;
    But when I access although .NET Compact Framework, I get this: "'Element' is an invalid XmlNodeType.

    As you can see, I just need a simple way to transport information between a Windows CE handheld computer and our database. Use functions that return simple values.
    Do I have to return the data as xml?
    What return value I should use? Varchar2 throws a buffer error output.

    ---------
    It is my first post here, also my first contact with OracleDB, and Web Services.

    Hello

    Welcome to Oracle and XML DB!

    After reviewing the documentation of oracle on the generation of xml data in the database, I managed to select normal tables and return a result xml exactly as I want:

    Have you also read about the SQL/XML functions?
    You don't have to create objects of type SQL to generate XML data.

    Using only XMLElement, XMLAgg, XMLAttributes, etc., you should be able to generate any kind of structure complex relational data and with total control over the names (which you don't have with the types of objects).
    Your example can be rewritten to:

    SELECT XMLElement("Parent",
             XMLAttributes(p.id as "Id")
           , XMLElement("Children",
               (
                 SELECT XMLAgg(
                          XMLElement("Child",
                            XMLAttributes(
                              c.id as "Id"
                            , c.name as "Name"
                            )
                          )
                        )
                 FROM child c
                 WHERE c.parent_id = p.id
               )
             )
           )
    FROM parent p
    WHERE p.id = :parent_id ;
    

    It's perfect, but how to expose this result as a Web Service like this link?
    [...]
    Do I have to return the data as xml?

    Yes.
    Define the return as XMLType data type:

    FUNCTION GET_CHILDREN (
        PARENT_ID IN VARCHAR2
    )
    RETURN XMLTYPE
    AS
        L_RESULT XMLTYPE;
    BEGIN
    
      SELECT XMLElement("Parent",
               XMLAttributes(p.id as "Id")
             , XMLElement("Children",
                 (
                   SELECT XMLAgg(
                            XMLElement("Child",
                              XMLAttributes(
                                c.id as "Id"
                              , c.name as "Name"
                              )
                            )
                          )
                   FROM child c
                   WHERE c.parent_id = p.id
                 )
               )
             )
      INTO L_RESULT
      FROM parent p
      WHERE p.id = PARENT_ID ;
    
      RETURN (L_RESULT);
    
    END GET_CHILDREN;
    
  • How can I remove the pop up next to my iMac? "to continue the 'java' command line tool, that you must install the JDK

    I can't seem to make the tour of the following pop up: "to use the"java"command line tool, you must install JDK.  I downloaded Java for many times, but the pop-up Guard reappear.  Is there any solution to get rid of this pop up, it makes me crazy?  Help, please!

    What java you have download and install.  To install is TIME legacy java 6 Apple for OS X, which can be downloaded here: Download Java for OS X 2015-001

  • I get a message: to use the 'java' command line tool, you must install a JDK.  I tried 10 times to install without success.  Help, please.

    I get a message: to use the 'java' command line tool, you must install a JDK.  I tried 10 times to install without success.  Help, please.

    You probably have some of the older than the needs/desires software legacy Java installed.

    Please see these sons of community message:

    After the installation of El Capitan, I get the message: to use the 'java' command line tool, you must install a JDK

    Just found this last Java does not work with El Capitan

    This is the Apple link to the legacy version of Java 6.

    Download Java for OS X 2015-001

    First of all, I would like to try to identify what application generated the next message and update (delete) this request as the case may be. If you need to run Java then, as the Apple Support page says it's certainly preferable that your installation of Java entirely up-to-date with the Oracle's Java course. If you can get without Java, you should install it not - like the Flash, it should not be installed unless you have no choice.

  • WinRAR command line tools do not check an executable Windows Server 2012

    Hi all

    I have developed a VI in LabVIEW 8.6 using WinRAR command line tools (passed in the Exec.vi system) to archive data that takes place on 5 different computers on a network and stores on a server .rar files.  Executable file of the VI works perfectly on my computer (WinXP) development.  The data from each of the 5 machines are archived and .rar files are stored on the server.  However, when I move the executable on the server where the .rar files will be stored and run the executable file, the command window flashes on the screen as if WinRAR commands are running, but no data is archived on the server.  No errors are passed out of the Exec.vi of the system.  The server's operating system is Windows Server 2012 and I placed the Rar and UnRAR .exe in the folder system32 on the server.  The server firewall is disabled, and he is able to explore at the location of the data to arhived.  The server is logged in as a domain administrator account.

    Here is an example of one of the commands in command line that I spend in the Exec.vi system:

    cmd /c rar a - m5 \\selsacn11\viscom\selsvis01\15\07\20.rar \\selsvis01\Rep0\Archiv\15\07\20

    When I manually type this command in the command line on the server, the data is stored properly.  The problem occurs when I run the executable on the server.

    I tried to work around the problem by creating a batch of files containing the command above, then using the Exec.vi system to call this batch file.  Yet once, when I manually run the batch file, it works correctly, but when Exec.vi system in a LabVIEW executable file runs the command on the server file, I get the same result as described above - no data are archived on the server.  This batch file works on my development computer and on my laptop to the company.

    My only thought is that there is a problem with the access rights.  So far, the executable works fine on an older server (Windows Server 2003), the development computer (Win XP) and my laptop (Win7) company, but the executable archive not the data on the Server 2012 server or on another computer running WIndows 7.  I have all these machines connected under the same domain administrator account, but COMPUTER networks are certainly above my head, so I wanted to check here if anyone has seen this problem with WinRAR or the Exec.vi system.

    Thanks for any info!

    Success!

    Darin, I took your suggestions and after some more fighting with him, I have an error Code 2 on the Exec.vi system.  This led me in search of the forums where I fell on the following:

    http://forums.NI.com/T5/LabVIEW/problem-using-quot-MSG-quot-command-with-quot-system-exec-VI/m-p/153...

    Of course, all the machines that had been able to run the executable file are 32-bit.  All the machines that could not run the executable are a 64 bit system.  I placed the Rar.exe in the C:\Windows\SysWOW64 folder on the server and it works exactly as expected today.

    I fought with this for weeks, so I'm a little disappointed that it was something so simple, but I'm very happy to have finally work!

    Thank you all very much for the help!

  • The developer command-line tool Setup error

    Hello

    I had a hard time trying to install the tool developer for the AEMM, since that it was released yesterday.

    Here is what I get after the execution of the installation in root mode command line:

    Anyone who managed to install the tool?

    NGP ERR! Darwin 15.3.0

    NGP ERR! argv ' / usr/local/bin/node "" / usr/local/bin/NGP "'install'"-g"'aemm.

    NGP ERR! node v5.8.0

    NGP ERR! NGP v3.8.3

    NGP ERR! path /usr/local/lib/node_modules/aemm/bin/aemm.js

    NGP ERR! code ENOENT

    NGP ERR! errno - 2

    NGP ERR! syscall chmod

    NGP ERR! ENOENT ENOENT: no file or directory, chmod ' / usr/local/lib/node_modules/aemm/bin/aemm.js'

    NGP ERR! ENOENT ENOENT: no file or directory, chmod ' / usr/local/lib/node_modules/aemm/bin/aemm.js'

    NGP ERR! ENOENT This probably isn't a problem with the NPM itself

    NGP ERR! ENOENT and is linked to the NPM is not able to find a file.

    The command line tool is still under review and will be available soon. We'll let you know when it is available.

  • How Windows Server backup and command-line tools are used in the installation of vCSHB?

    How the Windows Server backup and command-line tools are used during the installation of vCSHB?  It takes in all types of deployments (PtoV, VtoV, PtoP)? It is used to create files that are put in file sharing for the second node to use during the installation of vCSHB or is it only used during a clone of vCSHB of a physical to physical deployment operation?  These tools are not used in some deployments?

    You need backup Windows Server installed on the source and destination, and during the installation of vCSHB the installer will call the wbadmin (Windows Server Backup Utility) and will save the configuration and application data (application data is optimal, but can reduce the synchronization time after the installation of the secondary node). On the secondary node you will should only run the vCSHB Installer and everything will be restored.

    Check this blog entry for some info on P2P deployment issues: http://www.vcoportal.de/2013/12/vmware-vcenter-server-heartbeat-restore-on-a-second-node-a-journey/

  • Extensions Manager command-line tool will not install extension for Photoshop CC 2015

    I use Photoshop CC 2015.0.1 on a MacOS 10.9.5

    I try to install the extension FlatIcon found here: http://www.flaticon.com/download-plugin#

    Using the information I found here: https://helpx.adobe.com/extension-manager/using/command-line.html

    I downloaded, unpacked and installed the Extension Manager command line tool: http://www.adobeexchange.com/ExManCmd_mac.zip

    (I found the link to this file here: https://www.adobeexchange.com/resources/28)

    I opened the Terminal and entered in the following:. / ExManCmd - install "Users/angyb/flaticon-CC-2.5.5.zxp".

    And he received in response:

    dyld: library not loaded: @rpath/LibExManCoreLib.dylib

    Referenced from: /Users/angyb/./ExManCmd

    Reason: image not found

    Trace/BPT trap: 5

    Other that to wait for the author of the extension release a Photoshop CC 2015 compatible Installer, do you have advice on what I need to do to properly install this extension?

    Thank you.

    I just found this today that allowed me to install a plug-in for Photoshop CC 2015:

    Site - Installer Zxp

    Install it, run it, and then drag your file zxp the indicated place. Voila! Extensions to work Photoshop CC 2015!

  • Problem with Xcode command-line tool

    Hello

    Last week I upgraded my macbook pro with the latest OS X Capitan and 7.3 of Xcode.

    I also installed the command line for Xcode Tools.

    But there is a problem because the "command-line tools" in Xcode do not work, for example, I am getting following error:

    MyMacBookPro-5: ~ make amitc$ xcrun

    xcodebuild: error: SDK '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer /SDKs/MacOSX10.10.sdk' is not found.

    xcrun: error: cannot find the utility 'make', not a tool of development or on the WAY.

    Does anyone know any solution to this problem?

    (I don't understand why he's trying of MacOSX10.10.sdk, while it must search for MacOSX10.11.sdk).

    With our thanks,

    Amit.

    You agree with the terms and conditions of the license?

    sudo xcodebuild-license

Maybe you are looking for