Accessing TestStand variables from a subVI

I am maintaining some code in a large development that needs to handle new model numbers (frequencies). There is a scantling of TestStand on top of some deeply nested VIs. If the nesting were shallow it would be easy to pass new variables as parameters but as it is I would need to modify many layers of VIs to get the new variable down to where needed.
In short there some way for a deeply nested VI to obtain some file global or station global variables? It looks like the Get Property Value VI may work for this but not sure what to supply to the Sequence Context In terminal. I suspect it is my main sequence file but not sure how to specify it. Get Property Value offers no example.
Thanks,
jvh 

Jeff Bohrer wrote:
I'd recommend sticking with the style recommendation of wiring the context through the connector pane unless you really want a maintainence headache.
I triple that recommendation.  I only recommended the Global as an alternative.  If I had to wire through 10 levels of terminal panes, I would be tempeted to use a global.  But if it is just a few levels deep, use the terminal pane.  Actually, if you are more than a few levels deep, you might reconsider your architecture.
- tbob
Inventor of the WORM Global

Similar Messages

  • How can I access JSP variables from a JavaScript function in a JSP page?

    Respected sir
    How can I access JSP variables from a JavaScript function in a JSP page?
    Thanx

    You may be get some help from the code below.
    <%
        String str="str";
    %>
    <script>
        function accessVar(){
           var varStr='<%=str%>';
           alert(varStr);// here will diplay 'str'
    </script>

  • Accessing public variables from other classes

    Probably a simple questions, but how can I access a variable from another class. My exact situation is as follows.
    A class called WorldCalender has a variable which is defined: public int hour; (the value is given to it elsewhere).
    I want to access this variable and increase it by one in a subroutine in the class Hour. In this class I have put: WorldCalender.hour++; but it doesn't seem to work. How should I do it?

    don't expose the hour variable at all.
    have a method eg addToHourBy( int hrs )
    Probably a simple questions, but how can I access a
    variable from another class. My exact situation is as
    follows.
    A class called WorldCalender has a variable which is
    defined: public int hour; (the value is given to it
    elsewhere).
    I want to access this variable and increase it by one
    in a subroutine in the class Hour. In this class I
    have put: WorldCalender.hour++; but it doesn't seem to
    work. How should I do it?

  • How to access a variable from within a symbol.

    How do I access a variable set outside a symbol from within that symbol?
    Thanks

    If you set a variable on stage ,say
    sym.setVariable("stageVariable", "I am stage variable");
    You can access it from within  a symbol using :
    var myVariable = sym.getComposition().getStage().getVariable("stageVariable");
    Basically you need to get handle to the symbol in which the variable is defined.

  • Is there any way at all of accessing captivate variables from flash?

    Hi,
    I would be grateful for any help on this one.  I have been working in flash and I wanted to know whether there is any way at all of calling/accessing captivate 4 variables from flash (I'm working in flash Cs4 Actionscript 3.0 and I'm trialling Captivate 4, but I just want to know whether there is any way/method of communicating between a flash file and a captivate 4 file, and if so, can this be done with an embedded captivate 4 file/swf).  Surely there must be a way of communicating between the two - they are both Adobe products!
    Thanks for any help, pointers, advice, tips in advance.

    Hi Louon,
    Don't know if this would help you.
    http://blogs.adobe.com/captivate/2009/09/captivate_variables_-_how_to_a.html
    We have many experts here who could give more precise answers.
    Cheers.
    Miguel

  • Access payroll variables from custom payroll function

    Hi All,
    I have a requirement to create a custom payroll function that returns some data from IT0006 and IT0032.
    I have written the code in PCBURZDE0, as the payroll is for Germany, it does read the data needed.
    My question is, how I can access the variables specified for the function in the payroll schema.
    Schema definition in PE01
    Zeile     Fkt        Par1  Par2 Par3 Par4 D Text
    000010 BLOCK BEG                              Fahrradleasing
    000020 _DFRD &PRO GEN
    000030 BLOCK END
    If I double-click Par1 for function _DFRD (&PRO), then I see he two variables I should write the data to:
    Zeile  VarArg. FZ T Operation        Operation Operation Operation Operation Operation *
           -------------+---------+------------------+---------+---------+---------+---------+
    000010                  AMT= PKWWRPRINT     *
    000020           1     AMT= ENTKM  PRINT
    So, as I understand I should write the two variables PKWWR and ENTKM, I have the values in the function code, but I don't know how to access these variables.
    Thanks for your help!
    Gyöngyi

    1 - PIT is a Function that is used in the Payroll Schema to "Process the Internal Table".
    2 - You mentioned that you had created a Custom Function to read IT0006 and IT0032, and I only suggested to you that you could have that Custom Function generate Information WageTypes and save them in the Input Table where they could then be used in PCRs.
    3 - I did not mention that you can read only one value through operation AMT, but I mentioned that using AMT=xxxxxx followed by AMT=yyyyyy means that the first statement is useless.  On the other hand, using AMT=xxxxxx followed by AMT+yyyyyy and AMT+zzzzzz will result in the amount being the total of the 3 values.
    4 - Please read some documents on Schemas, Functions and PCRs, such as in the Wikis on this site, and study your current Payroll Schema, it's sub-schemas, it's functions and the operations in it's PCRs.  Note that t-code pe01, pe02 and pe04 can be used to find some documentation on functions and operations.

  • Accessing another variable from another application

    I was wonder how I can access another variable form another application?
    For example: I want to access :P4_EMPLOYEE_NAME from app ID 104 when I am doing is from an activity in page 2 on app ID 142.
    I had a search before, but I am looking for an unambiguous response.

    Greg - About all you can do is call the function htmldb_util.fetch_app_item(p_item => 'F104_ITEM', p_app => '104'). The application you call this function in must be sharing a session with the application from which you are fetching the item, both applications must belong to the same workspace, and the item you name in the argument must be defined as an application-level item in the fetched-from application.
    Scott

  • How to access environment variables from pluggable destination?

    Hi,
    I'm trying to create a java puggable destination for reports. Everything is working fine.
    I want to access reports environment variables from the java code (like REPORTS_PATH and other new variables that I want to create), but I can't find anything about this in the java API documentation.
    I want to use environment variables instead of destination properties (those I can easily access), because I want to be able to change context using env_id.
    Any ideas?
    Thanks,
    Luis

    I'm using Oracle Application Server Version 10.1.2.0.2
    Thanks

  • How to access a variable from one program to another (independent)

    Hi,
    My requirement is to use a variable(value) from one program(prog1) to another (prog2). how is it possible.
    Regards
    Arani Bhaskar

    Go for memory id .
    passing on values from one program to another program
    Program1
    EXPORT (variable) TO MEMORY ID 'LOC'.
    Program2
    IMPORT (variable) FROM MEMORY ID 'LOC'.
    LOC is the address , for more press f1 on export in abap editor.

  • Problem accessing session variable from jsp

    Hi!
    I get an error retrieving a session variable from inside a JSP declaration scriptlet....
    Something like this code in a JSP page:
    <%!
    public void funtion1() {
    String parameter1 = session.getAttribute("parameter1");
    %>I have seen that I have available getContextServer() method and from there I could call getAttribute("parameter1") . But the thing is that the attribute I want to retrieve was stored in session by another Jsp page.
    Any solutions are welcome
    Cheers
    Victor

    Appropriately the above is one the reasons also You cannot use JSP implicit objects from the declaration tag. However we can think of a small workaround by passing the reference like the one discussed below
    <%!public void funtion1(HttpSession session) {
    String parameter1 = session.getAttribute("parameter1").toString();
    }%>
    <% funtion1(session);%>Hope that helps :)
    REGARDS,
    RaHuL

  • Accessing Instance variables from within javascript

    Is it possible to access Instance variables of a JSP using
    javascript? If so, an example would be very much appreciated.
    LaMont

    <script language="JavaScript">
    var scriptVar = "<%= jspVar %>";
    </script>

  • Accessing _root variable from flex

    In Flex code, I am trying to access a variable that I pass to
    the Flash object through FlashVars argument. In Flash it is easy to
    do as all the variables that as passed as a part of FlashVars
    appear as a part of _level0 or _root. Is there any way to do it in
    Flex?
    I am trying pass a large dataset directly to Flash without an
    http call (creating a desktop application). Does anyone know if the
    FlashVars approach will work for a large dataset or is there a
    better approach?
    Thanks

    From the Flex 2.0.1 help (search for Using flashVars):
    The following example sets the values of the firstname,
    middlename, and lastname flashVars properties inside the
    <object> tag in a simple wrapper:
    <?xml version="1.0"?>
    <!-- wrapper/ApplicationParameters.mxml -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="initVars()">
    <mx:Script><![CDATA[
    // Declare bindable properties in Application scope.
    [Bindable]
    public var myName:String;
    [Bindable]
    public var myHometown:String;
    // Assign values to new properties.
    private function initVars():void {
    myName = Application.application.parameters.myName;
    myHometown = Application.application.parameters.myHometown;
    ]]></mx:Script>
    <mx:VBox>
    <mx:HBox>
    <mx:Label text="Name: "/>
    <mx:Label text="{myName}" fontWeight="bold"/>
    </mx:HBox>
    <mx:HBox>
    <mx:Label text="Hometown: "/>
    <mx:Label text="{myHometown}" fontWeight="bold"/>
    </mx:HBox>
    </mx:VBox>
    </mx:Application>
    If you are using the wrapper that is generated by Flex Data
    Services or wrappers that are included in the
    resources/html-templates directory, your wrapper might not look the
    same, but the basic approach to passing the flashVars variable is.
    For example, you might insert flashVars variables by appending them
    to a function parameter, as the following example shows:
    "flashvars","historyUrl=%2Fflex%2Fflex%2Dinternal%3Faction%3Dhistory%5Fhtml&lconid="
    + lc_id + "&firstName=Nick&lastName=Danger",

  • How to access environment variables from Oracle Forms

    Hi,
    Any idea how to use the Environment variables from Oracle Forms.
    My basic problem is that from Oracle form I am calling Batch file which calls excel file with a macro.
    So i want to check whether the macro was successful or not.
    So in my batch file i will set %errorlevel% which I should be able to read from Oracle Forms.
    I am able to read the registry from oracle forms, so is there anyway to read environment variable as well?
    Thanks!
    Avinash.

    Hello,
    Use the TOOL_ENV.Getvar() built-in
    Francois

  • Accessing TestStand Variables using Applicatio​n Manager

    I am working with an Operator Interface written in LabWindows/CVI 7.1.  I need this program to be able to access station globals and local variables in TestStand 3.1.  This Operator Interface was originally written for TestStand 2 and uses the older functions like TS_NewEngine, TS_EngineSetProperty, TS_PropertyGetValString, etc.  This has caused some problems when I try to use these functions with TestStand 3.1.  I can run the code fine in the debugger, but my executable just quits as soon as it encounters one of these older testStand functions (I can't tell which one).  I have been trying to incorportate the Application Manager, Sequence File View Manager, and Execution View Manager into the existing code without altering the GUI's appearence (keeping with the standard LabWindows text boxes and not using ActiveX controls).  I cannot figure out how to access variables in testStand using the Managers.  Here is the code I am using so far:
    //Define Panel Handles and ActiveX Control Handles
    typedef struct
     //panel handles
     int              m_pnMain;
     int              m_pnExecute;
     // ActiveX control handles:
     CAObjHandle applicationMgr;     // invisible control, manages Startup/Shutdown, and other application functions
     CAObjHandle sequenceFileViewMgr;   // invisible control, manages a SequenceView control that displays loaded sequence files
     CAObjHandle executionViewMgr;    // invisible control, manages a SequenceView control that displays executing sequences
     CAObjHandle m_oEngine;
     } ApplicationWindow;
    static ApplicationWindow gMainWindow; // this application only has one window
       // load the panels for the main window from the .UIR file
       errChk( gMainWindow.m_pnMain = LoadPanelEx (0, "Symtx Operator Console.uir", PN_MAIN, __CVIUserHInst));
       errChk( gMainWindow.m_pnExecute = LoadPanelEx (gMainWindow.m_pnMain, "Symtx Operator Console.uir", PN_EXECUTE, __CVIUserHInst));
       // prepare to use the TestStand ActiveX controls
       errChk( GetActiveXControlHandles());
       tsErrChk( TSUI_ApplicationMgrGetApplicationWillExitOnStart(g​MainWindow.applicationMgr, &errorInfo, &appWillExitOnStart));
       if (!appWillExitOnStart)
        // show a splash screen while starting up
        errChk( splashPanel = LoadPanelEx(0, "Symtx Operator Console.uir", SPLASH, __CVIUserHInst));
           errChk( InstallPopup(splashPanel));
       // make TS engine conveniently accessible
       tsErrChk( TSUI_ApplicationMgrGetEngine(gMainWindow.applicati​onMgr, &errorInfo, &gMainWindow.m_oEngine)); 
    The code shown above works fine.  I tried to add the following lines to access the station globals:
       // Get station globals
       m_oGlobals = gMainWindow.m_oEngine.NewPropertyObject( 3, False, "", 0); 
       m_oGlobals = gMainWindow.m_oEngine.Globals;
    and got the following error when I compiled:
      290, 39   Left operand of . has incompatible type 'CAObjHandle'.
    which referred to
    m_oGlobals = gMainWindow.m_oEngine.NewPropertyObject( 3, False, "", 0); 
    If anyone can help I'd greatly appreciate it.

    Hi there,
    The reason the code for TestStand globals does not work is because CVI does not support using the TestStand API in this way.  This can be a little confusing because in the help it lists using these methods and functions to access the properties you were looking for, however, in CVI you still have to use the TS_ functions to access different properties.  Usually it is TS_objectToOperateOn.  For example TS_Engine will always be getting properties or executing methods of the engine.  I have put some code below that should accomplish the same thing you were looking to do.  Hope this helps out!
        int error = 0;
        ErrMsg errMsg = {'\0'};
        ERRORINFO errorInfo;
        CAObjHandle myGlobals;
        //Get the globals from the engine
        tsErrChk (TS_EngineGetGlobals (myEngine, &errorInfo, &myGlobals)); 
        //Store the last user name into a local string
        tsErrChk (TS_PropertyGetValString(myGlobals, &errorInfo, "TS.LastUserName", 0, &lastUserName));
    Error: 
        // FREE RESOURCES
        if (lastUserName != NULL)
             CA_FreeMemory(lastUserName);
        // If an error occurred, set the error flag to cause a run-time error in TestStand.
        if (error < 0)
             *errorOccurred = TRUE;
            // OPTIONALLY SET THE ERROR CODE AND STRING
             *errorCode = error;
             strcpy(errorMsg, errMsg);
    Pat P.
    Software Engineer
    National Instruments

  • Can I access Infoset variable from Crystal Reports

    Hi,
    In order to connect Crystal Reports 2008 to the SAP environment I have the Integration kit.
    I have learnt that Crystal also offers InfoSet driver to connect to SAP.
    If I need to access SAP BI- Infoset variables inside Crystal Reports is it possible to do that. If no, then do I need to have the filter using the variable value instead of the fixed filter value?
    Please suggest.
    Thanks,
    Amogh.

    Hi Amogh,
    the InfoSet connectivity that Crystal Reports offers as a direct Infoset connectivity is towards the classic InfoSets from ERP.
    see here:
    /people/ingo.hilgefort/blog/2008/02/07/businessobjects-and-sap-part-i
    /people/ingo.hilgefort/blog/2008/03/23/businessobjects-and-sap-part-4
    In case you want to connect to an InfoSet in a BW system you would put a BW query on top of the InfoSet and then use the BW Query in Crystal Reports.
    see here:
    /people/ingo.hilgefort/blog/2008/02/19/businessobjects-and-sap-part-2
    Ingo

Maybe you are looking for

  • Two separate text frames with own toc

    How do I set up two separate text frames side-by-side as two columns, and create a separate table of contents for each? I need to create a two-language document with English on the left and a translated language on the right. Each language will also

  • Tablespace level backup using data pump

    Hi, Im using 10.2.0.4 on RHEL 4, I have one doubt, can we take a tablespace level backup using data pump, bt i dnt wnt to use it for transportable tablespace. thanks.

  • What replaced this package in R12:       Ap_Inv_Selection_Criteria_Pkg

    Hi guys, Does anybody know what this package: "Ap_Inv_Selection_Criteria_Pkg" was replaced with in R12? Your help will be greatly appreciated. Thanking you in advance.

  • Mail.app in 10.4.7: SOCKS proxy issues again...

    Hi, Today I've updated my PowerBook to MacOS X 10.4.7. All the process was fine, but Mail didn't connect to any server. After reading some posts in this forum I've unmarked the SOCKS proxy settings in the Network pref. pane, and I've recovered the 10

  • Naming Exception when deploying app

    Hi, I hope someone can point me in the right direction. Ths app was deploying and working fine until I added the user-manager to the orion-application.xml. The I use the data source in the main app so I know that is defined okay but I get the followi