Input output parameters

Hi, I don't know if this message should be posted in the Test Stand or LabView forum.
I
need to call a LabView VI from within TestStand which will update a
station global upon exitting. How do I specify input parameters into my
VI and return parameters out?
I'm sure there must be documentaion somewhwre on how to do this and it must be fairly straight forward but I can't seem to be able to find it or figure it out.
Solved!
Go to Solution.

Dennis Knutson wrote:
There is documentation on this. Included with TestStand is the manual 'Using LabVIEW with TestStand'. It's even a printed manual though an electronic copy is also included. Try using Help>Guide to Documentation.
When you add a LabVIEW step, In the step settings window, you will see something like the image below once you have picked the VI. To assign TestStand variables to the VI's inputs or outputs, click on the 'f(x) button and browse to your TestStand variable. For inputs, make sure you unselect the 'Default' box.
Hi Dennis, thanks for your response. I do have quite a bit of Test
Stand experience so calling a VI isn't an issue for me. However, I have
very limited experience with LabView and am not sure how to specify
input and return parameters to and from a VI i built. I've attached a
screen shot of my current VI. I would like to pass in a refernece to an
error container and return the platform selected from the combobox.
Attachments:
get_platform.PNG ‏52 KB

Similar Messages

  • Function module to list out a report's input/output parameters

    Hi experts,
    I'd like to know if there is a function module which can list out all the input and output parameters (variables, tables, etc.) by giving the report name as input.
    If not, please suggest a way to find out the input/output parameters.
    Regards,
    Ancy

    Well, they're not input/output parameters, and really you shouldn't refer to them as such.  A variable is simple what it says - a variable.  You could, I suppose, refer to data sources.  But then, the report could be getting data from a set of function modules.
    So my assumption is correct, you are talking about a where-used list.
    >Check out tables like CROSS. To find other useful tables, put an SQL trace on, do the where used, and see what tables are hit.
    matt

  • GP callable object (Visual Composer FLASH)u2013 update input/output parameters

    Dear Sirs,
    I have a callable object which is based on a Visual Composer Flash iview. In this iview I have two input parameters and two output parameters, and these can been seen in the callable object.
    However, if I add another input or output parameter deploy the model  and change and active the callable object the new changes are not picked up.
    Has anyone else encountered the same problem?
    best regards,
    Jørgen

    Hello Nick,
    You gave me the answer I did not want :=), however I think you are right.
    This is not a very good solution by SAP and I think I will open an OSS to get a final answer from SAP on they are going to solve this.
    You can not delete all the callable objects in a process whenever you need a new parameter.
    mvh
    Jørgen

  • How to execute function takes user defined type parameters as input &output

    Hi All,
    I want to execute a function which takes user defined type as input & output parameters. But i don't know how to execute that function in pl/sql statements.
    CREATE TYPE T_INPUT AS OBJECT
    USER          VARCHAR2(255),
    APPLICATION     VARCHAR2(255),
    REFERENCE          VARCHAR2(30)
    ) NOT FINAL;
    CREATE TYPE T_ID UNDER T_INPUT
    E_ID                    VARCHAR2 (50),
    CODE                    VARCHAR2 (3),
    SERVICE                    VARCHAR2 (10),
    C_TYPE                    VARCHAR2 (1)
    ) NOT FINAL;
    CREATE TYPE T_OUTPUT AS OBJECT
         R_STATUS               NUMBER(10),
         E_DESC_LANG_1          VARCHAR2(1000),
         E_DESC_LANG_2          VARCHAR2(1000),
         A_REFERENCE          VARCHAR2(30)
    ) NOT FINAL;
    CREATE TYPE T_INFO UNDER T_OUTPUT
    E_INFO XMLTYPE
    CREATE FUNCTION Get_Dtls
    I_DETAILS IN T_ID,
    O_DETAILS OUT T_INFO
    RETURN NUMBER AS
    END;
    Here
    1. T_ID is an input parameter which is a combination of T_ID + T_INPUT,
    2. T_INFO is an output parameter which is a combination of T_INFO + T_OUTPUT.
    Here i'll assign the T_ID values.
    --- T_INPUT values
    USER          = "admin";
    APPLICATION     = "test";
    REFERENCE     = "null";
    ---- T_ID values
    E_ID               = "1234";
    CODE               = "TTT";
    SERVICE               = "NEW";
    C_TYPE = "P";
    Now i want to execute Get_Dtls function with T_ID,T_INFO parameters in pl/sql statements.
    I want to catch the E_INFO value from T_INFO type.
    How can i Do this ?
    Pls Help. Thanxs in advance.
    Anil.

    I am very new to this. New to Oracle, PL/SQL, OO programming or testing?
    set serveroutput on
    declare
      tst_obj ctype;
    begin
      tst_obj := pkg.proc(11);
      dbms_output.put_line('id='||tst_obj.id||'::code='||tst_obj.code||'::usage='||tst_obj.usage);
    end;
    /Generally I disapprove of the use of DBMS_OUTPUT (for just about anything) but it is sufficient to demonstrate the basic principle.
    Really you should start using proper testing practices, ideally with an automated test harness like QUTE.
    Cheers, APC
    Blog : http://radiofreetooting.blogspot.com/

  • Global,intilization,input ,output parametrs to be assigned

    hi guys these is layout of my form to be added to existing smart form and fields to be added are below ,now can what should be added in global,intilization,input ,output parameters to be and in the  interface section and how should i create layout
    1     Whs BOL     VBAK-VBELN     Field is mapped from order header
    2     Order No     VBAK-VBELN     Field is mapped from order header
    3     Customer PO     VBKD-BSTKD     Field is mapped from order header
    4     Ship To     KUWEV-KUNNR     "This is field is mapped from order header to delivery header
    Ship to need to populate the fields below"
         Ship to Name          
         Ship to Address          
         Ship to City, State, Postal Code          
    5     Material No     LIPS-MATNR     Field is mapped from delivery item level
    5a     Legacy Item #     MARA-ZZQNUM     Field is mapped from material master
    6     Description     LIPS-ARKTX     Field is mapped from delivery item level
    7     Ship Qty     LIPSD-PIKMG     Field is mapped from delivery item level
    8     Unit of Measure (UOM)     LIPSD-VRKMP     Field is mapped from delivery item level
    9     Pallets     VEKP-EXIDV     Count of VEKP-EXIDV for LIPS-MFRGR
    LAYOUT
    Whs. BOL:                Customer PO:                    
    Order No:                                   
    Ship to:                                    
    Material No     Description     Ship Qty     UoM          Pallets          
    010018500013850003     16OZ 1/12 LPT ICED TEA PEACH       216     CS          2.00          
    904560                                   
    010018500013850005     16OZ 6/2 LPT ICED TEA RASP       108     CS          1.00          
    904561                                   
    010018500013850006     16OZ 6/2 LPT ICED TEA SNL       324     CS          3.00          
    904562                                   
    010018500013850007     16OZ CAN 1/12 MTN DEW AMP       118     CS          1.00          
    904563                                   
         POINTS WILL BE AWARDED TO ALL ANSWERS

    Hi,
    In form interface u have to define the fields or tables which all are u passing from the program.
    In the glabal definitions  you can define your types for internal tables or other purposes in 'TYPES' tab, then declare the global datas your internal tables, work areas etc.
    write ur select statement and othe codings there in initializations, define subroutines in form routines,
    then, u cna use loops , command lines for additional purpose in each pages.

  • Self as an input/output argument

    Hi,
    does anyone know if self is a valid argument to a method that defines its
    parameter as input/output?
    The reason I ask is that I am trying to move an application from 2.0.F.2 to
    3.0.C.0, and the TOOL compiler gives me an error that it can't find a
    method with a signature of "x" and it has methods with signatures of "x",
    "y" and "z". The only clue I have is that the compiler advises: "Check that
    any values passed to output or input output parameters are values that can
    be changed like variables or attributes."
    I might add that I personally would not be using self as an argument to
    input output parameters because of my C++ heritage. Passing "this" to a
    member function that might change the value of "this" is not a great idea!
    However, this is the code that I have to work on, warts and all, so any
    help is gratefully received.
    TIA
    Nick.
    Nick James [email protected]
    612/404-4277 or
    Consultant 414/814-3170
    BORN Information Services Group
    Volvo, Video, Velcro - I came, I saw, I stuck around.

    Just out of curiosity,
    What are some other such read-only attributes that are coming with
    R3? That way, those of us still coding in R2 will know to avoid using
    those as output parameters, and thus avoid having our code broken
    when we move to R3.
    Thanks!
    Elias.
    Claremont Technology Group, Inc.
    111 W. Liberty St., Cols, OH 43215
    (614) 628-4891
    [email protected]
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    To: jamesn @ ns.born.com (Nick James) @ internet
    cc: forte-users @ Sagesoln.com @ internet (bcc: Elias Fayyad/Central
    Region/Claremont)
    From: dnelson @ forte.com (Don Nelson) @ INTERNET@WORLDCOM
    Date: 05/27/97 12:48:18 PM CDT
    Subject: Re: self as an input/output argument
    Nick,
    R3 does not allow you to change the value of self. It is now considered a
    read-only variable. Read-only variables may not be passed to methods using
    output parameters. R2 used to, but then the C++ compiler would, of course,
    choke on it.
    It was a convenient way to make the compiler fail if you needed to,
    though....
    Don
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

  • Email End-Point Input/Output missing

    I'm trying to configure an email endpoint but I am unable to configure the input/output parameters.  I found the below thread which sounds exactly like my problmem except the solution does not work.  If I go to AdminUI, I do not see how to change it from variable to literal.  Any other ideas?
    http://forums.adobe.com/message/2629358#2629358
    btw, I'm using LC 9.0 SP2.

    Hi
    The issue referred to in your link was actually resolved in SP1 for 9.0.
    Since you are using SP2, you should not be required to change anything in adminui.
    Did you mark your variable as "input"?
    If you do this, then you should see and Inputs/Outputs tab on the email startpoint.
    If you then add %SUBJECT% in your Input data filter, this should not require you to do anything else.
    Once deployed, if you then look in the adminui, this input should appear as Variable not literal.
    Diana

  • How to allow multiple output parameters in a user-defined service operation???

    I have creating a self-defined service operation “LDAPAddUser” to connect to LDAP server to create user accounts. I want to get 2 output parameters after executing the operation. One is the result (Boolean data type) and one is the error message (String data type). However, since Java only support one return value in a method, it seems that only one output parameter can be returned. May I have the suggestion so that multiple parameters can be supported in this case? Here is the extracted code
    In Java program,
    public Boolean addUser(String url, String aName)
    In file "component.xml",
         <operation name="addUser" method="addUser" orchestrateable="true" anonymous-access="true">
      <hint>Add a new user</hint>
         <input-parameter name="url" type="java.lang.String" required="true" title="LDAP URL">
         </input-parameter>
              <input-parameter name="aName" type="java.lang.String" required="true" title="Admin Login Name">
         </input-parameter>
              <output-parameter name="Result" title="Result" type="java.lang.Boolean">
              </output-parameter>
    Besides the boolean return value, I want to get another return value (string data type). Any suggestion ?

    I've returned multiple values to LiveCycle by using a complex object as an intermediatory.
    For example if I need to return two strings (firstName and lastName), I'll first build a single class (name) with two string attributes (private String firstName; private String LastName) and add getters and setters to my "name" class for each.  My service class method will return an object of type "name".
    for example  public name mymethod(String GUID, String username, String password).......
    Then in the component.xml you can return the two strings as long as you use the binding type "Bean":
    <output-parameter name="firstName" title="First Name" binding-type="Bean" property="firstName">
                        </output-parameter>
    <output-parameter name="lastName" title="Last Name" binding-type="Bean" property="lastName">
                         </output-parameter>

  • ST22 Short Dump DATASET_WRITE_ERROR Error text: "Input/output error" Error

    Dear All,
    Please kindly help. I have the following error. Is it possibility due to disk full?
    DATASET_WRITE_ERROR
    An error occurred when writing to the file
    "/capps/AP0/edi/CCM/565500_001105200_00126_20080715_042803.tmp".
    Error text: "Input/output error"
    Error code: 5
    Many thanks in advance,
    Yan

    Hi,
    Check the return code of the OPEN DATASET. May be autorizations for writing might not be there.
    If the file is written partially it would be due to memory problem.
    Also check the OPEN DATASET Parameters if they are correct.
    Hope this helps.

  • How to call a (catalog) stored procedure directly in a xsodata file with in/output parameters

    I am new to XS but i managed to enable a table through xsodata:
    service namespace "sap.hana.democontent.epm" { 
      "AA465342"."TMP_HENK" as "TMP_HENK"; 
    But now i am looking for code that can call a stored procedure that has 2 input- and 3 output parameters.... who can help me out with this?

    Hi Vivek, thanks for the quick response!
    I already found that blog, but it does not completely answer my question. i am struggling to get my content procedure working. call the R (catalog) stored procedure:
    the code
    /********* Begin Procedure Script ************/
    BEGIN
        call "AA465342"."MO_PP_SENTIMENT"(SP_IN,SP_OUT) with overview;
    END;
    /********* End Procedure Script ************/
    where it goes wrong:
    : Only table variable is allowed in input parameter in a nested call
    I have defined SP_IN and SP_OUT....
    Can someone give me a clue what i have to change?

  • Should Output parameters always be declare at the beginning of the Stored Procedure?

    Should Output parameters always be declare at the beginning of the Stored Procedure?

    Usually input parameters listed first followed by output parameters. This is just a custom, not a requirement.
    Blog: How to architect stored procedure parameters?
    BOL: http://msdn.microsoft.com/en-us/library/ms187926.aspx
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Output Parameters - BLS Transaction

    Hi,
    i set an input and output parameter in BLS transaction. Output parameter mapped with write_file.success. i call this transaction via xacute query. i am sending input parameters successfully. the file created. but i want to know at front end via writefile_success. how to call this output parameter via applet? i tried document.<my applet>.getQueryObject().getParam(1). but it shows no object like this. how to do it?
    -senthil

    Hi Senthil,
    If you need a output parameter of a bls from front end.You need to create and Xacute query for that transaction and in the html add the query as a iCommand applet and after executing the applet,Use the line below  to get output parameters of the BLS.
    document.iCommandAppletName.getValue(COLNUMBER,ROWNUMBER)
    Regards,
    Ravi Kumar

  • Output parameters for sqlj stored procs ?

    is it possible to store a sqlj proc in DB which can be translated to a pl/sql procs with OUTPUT parameters ?
    how is it possible ?
    if not, how can i bypass this problem ?
    thanks for answers..
    [email protected]

    When you write a Java stored procedure that is called with OUT or IN OUT parameteres from the PL/SQL signature, then the OUT or IN OUT arguments must have an array signature in Java.
    For example, if you want to pass a Java int IN OUT from a Java method, then the method accepts an int[]. The first element (at index 0) holds the input value, and the same element must be set for the returned output value.
    Is this what you were wondering about?

  • Output parameters always return null when ExecuteNonQuery - No RefCursor

    I am trying to call a procedure through ODP that passes in one input parameter and returns two (non-RefCursor) VARCHAR2 output parameters. I am calling the procedure using ExecuteNonQuery(); however, my parameters always return null. When I run the procedure outside of ODP, such as with SQLPlus or SQL Navigator, the output parameters are populated correctly. For some reason, there appears to be a disconnect inside of ODP. Is there a way to resolve this?
    Anyone have this problem?
    Here is the basic code:
    ===========================================================
    //     External call of the class below
    DBNonCursorParameterTest Tester = new DBNonCursorParameterTest();
    ===========================================================
    //     The class and constructor that calls the procedure and prints the results.
    public class DBNonCursorParameterTest
         public DBNonCursorParameterTest()
              //     The test procedure I used is a procedure that takes a recordID (Int32) and then returns a
              //     general Name (Varchar2) and a Legal Name (Varchar2) from one table with those three fields.
              string strProcName                    = "MyTestProc;
              OracleConnection conn               = new OracleConnection(DBConnection.ConnectionString);
              OracleCommand cmd                    = new OracleCommand(strProcName,conn);
              cmd.CommandType                         = CommandType.StoredProcedure;
                   //     Create the input parameter and the output cursor parameter to retrieve data; assign a value to the input parameter;
              //     then create the parameter collection and add the parameters.
              OracleParameter pBPID               = new OracleParameter("p_bpid",               OracleDbType.Int32,          ParameterDirection.Input);
              OracleParameter pBPName               = new OracleParameter("p_Name",               OracleDbType.Varchar2,     ParameterDirection.Output);
              OracleParameter pBPLegalName     = new OracleParameter("p_LegalName",     OracleDbType.Varchar2,     ParameterDirection.Output);
              pBPID.Value = 1;
              //     Open connection and run stored procedure.
              try
                   conn.Open();
                   cmd.Parameters.Add(pBPID);
                   cmd.Parameters.Add(pBPName);
                   cmd.Parameters.Add(pBPLegalName);
                   cmd.ExecuteNonQuery();
                   Console.Write("\n" + cmd.CommandText + "\n\n");
                   //for (int i = 0; i < cmd.Parameters.Count; i++)
                   // Console.WriteLine("Parameter: " + cmd.Parameters.ParameterName + " Direction = "     + cmd.Parameters[i].Direction.ToString());
                   // Console.WriteLine("Parameter: " + cmd.Parameters[i].ParameterName + " Status = "          + cmd.Parameters[i].Status.ToString());
                   // Console.WriteLine("Parameter: " + cmd.Parameters[i].ParameterName + " Value = "          + cmd.Parameters[i].Value.ToString() + "\n");
                   foreach (OracleParameter orap in cmd.Parameters)
                        Console.WriteLine("Parameter: " + orap.ParameterName + " Direction = "     + orap.Direction.ToString() + " Value = " + orap.Value.ToString());
                        Console.WriteLine("Parameter: " + orap.ParameterName + " Status = "          + orap.Status.ToString());
                        Console.WriteLine("Parameter: " + orap.ParameterName + " Value = "          + orap.Value.ToString() + "\n");
                   //     End Test code.
              catch (Exception ex)
                   throw new Exception("ExecuteQuery() failed: " + ex.Message);
              finally
                   this.Close();
         public void Close()
              if (conn.State != ConnectionState.Closed)
                   conn.Close();
    =========================================================
    Other things to note:
    I have no problems with returning RefCursors; they work fine. I just don't want to use RefCursors when they are not efficient, and I want to have the ability to return output parameters when I only want to return single values and/or a value from an insert/update/delete.
    Thanks for any help you can provide.

    Hello,
    Here's a short test using multiple out parameters and a stored procedure. Does this work as expected in your environment?
    Database:
    /* simple procedure to return multiple out parameters */
    create or replace procedure out_test (p_text in varchar2,
                                          p_upper out varchar2,
                                          p_initcap out varchar2)
    as
    begin
      select upper(p_text) into p_upper from dual;
      select initcap(p_text) into p_initcap from dual;
    end;
    /C# source:
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace Miscellaneous
      class Program
        static void Main(string[] args)
          // change connection string as appropriate
          const string constr = "User Id=orademo; " +
                                "Password=oracle; " +
                                "Data Source=orademo; " +
                                "Enlist=false; " +
                                "Pooling=false";
          // the stored procedure to execute
          const string sql = "out_test";
          // simple input parameter for the stored procedure
          string text = "hello!";
          // create and open connection
          OracleConnection con = new OracleConnection(constr);
          con.Open();
          // create and setup connection object
          OracleCommand cmd = con.CreateCommand();
          cmd.CommandText = sql;
          cmd.CommandType = CommandType.StoredProcedure;
          // the input paramater
          OracleParameter p_text = new OracleParameter("p_text",
                                                       OracleDbType.Varchar2,
                                                       text.Length,
                                                       text,
                                                       ParameterDirection.Input);
          // first output parameter
          OracleParameter p_upper = new OracleParameter("p_upper",
                                                        OracleDbType.Varchar2,
                                                        text.Length,
                                                        null,
                                                        ParameterDirection.Output);
          // second output parameter
          OracleParameter p_initcap = new OracleParameter("p_initcap",
                                                          OracleDbType.Varchar2,
                                                          text.Length,
                                                          null,
                                                          ParameterDirection.Output);
          // add parameters to collection
          cmd.Parameters.Add(p_text);
          cmd.Parameters.Add(p_upper);
          cmd.Parameters.Add(p_initcap);
          // execute the stored procedure
          cmd.ExecuteNonQuery();
          // write results to console
          Console.WriteLine("   p_text = {0}", text);
          Console.WriteLine("  p_upper = {0}", p_upper.Value.ToString());
          Console.WriteLine("p_initcap = {0}", p_initcap.Value.ToString());
          Console.WriteLine();
          // keep console from closing when run in debug mode from IDE
          Console.WriteLine("ENTER to continue...");
          Console.ReadLine();
    }Output:
       p_text = hello!
      p_upper = HELLO!
    p_initcap = Hello!
    ENTER to continue...- Mark

  • Callable object Output parameters does not show up if I use VC

    I have a VC view. Finally the output of a form is fed as input to a stored procedure data service. The stored procedure data mode has 2 output ports:
    OUTPUT
    RESULT
    The value of the result of the stored procedure is present only in the RESULT port.
    When I make a Callable object pointing to the Portal iView of thois VC view, I do not get the output parameter that comes in RESULT in the Output Parameters of the Callable object
    Any help ?

    Hi,
    Hope the below link will help you:
    [Modeling Visual Composer iViews for Guided Procedures|http://help.sap.com/saphelp_nw04s/helpdata/en/44/429bbd709914bce10000000a155369/content.htm]
    [Defining Output Parameters and Result States|http://help.sap.com/saphelp_nw04s/helpdata/en/44/429f01709914bce10000000a155369/content.htm]

Maybe you are looking for