Passing values to sub VI and writing data to controls

As part of a control interface for a VFD i am interfacing with using Modbus TCP I wanted to try and compartmentalise some of my code into a subVi
However in doing so I am having a lot of trouble understanding how I can read the current drive settings for the Ramp up and Down values and update those values into the main faceplate of my control.
The sub Vi is tested and works exactly how I want. Selecting Read (latch on pressed) reads the registers from the drive and outputs it to the controls and the indicators. The indicators were incorporated because I did not know how to pass the data out of the sub vi without them. Updating works to write the current value in the controls to the VFD registers.
However when I incorporate this VI into my larger project the values are always displayed as zeros if I have the switch set to latch. However i do see a momentary flash of the correct values soon after pressing the read button or if i change it from latched operation to switched, however i would prefer it to opperate in a latched mode so as to reduce communication overheads to the drive. 
Solved!
Go to Solution.
Attachments:
Modbus sub vi.pdf ‏943 KB

Hi,
A number of suggestions:
1. Use references and property nodes to set FP indicators from a subVI (you can learn more here and here)
2. Don't put output indicators inside Cases. When the case is not Read, the VI outputs default values to the outputs and gives you the zero values. 
Good luck,
Danielle
"Wisdom comes from experience. Experience is often a result of lack of wisdom.”
― Terry Pratchett

Similar Messages

  • Reading and writing data to a list in Sharepoint 2010.

    I'm having difficulty writing data to a list in sharepoint 2010, the reading the information is going fine, but I just tried writing data, and it's not working well.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using ListQuery.StudentsList;
    using System.Xml.Linq;
    using System.Net;
    namespace ListQuery
    class Program
    static void Main(string[] args)
    XNamespace ns = "#RowsetSchema";
    ListsSoapClient soap = new ListsSoapClient();
    XElement query = new XElement("Query");
    XElement options = new XElement("QueryOptions");
    XElement view = new XElement("ViewFields");
    soap.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
    XElement list = soap.GetListItems("Students", null, query, view, "900001", options, null);
    foreach (XElement descendent in list.Descendants())
    descendent.SetAttributeValue("ows_fullName", "I am sparticus");
    soap.UpdateListItems("Students", list); // ERROR LINE
    var asdf = from x in list.Descendants()
    where x.Name == ns + "row"
    select x.Attribute("ows_fullName").Value;
    foreach (string blah in asdf)
    Console.WriteLine(blah);
    Console.WriteLine("\n\t--Process Completed--");
    Console.ReadKey(true);
    I wrote a comment showing the line where the code had a break in execution. The error I'm receiving is this,
    "Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown."
    Any help is appreciated, thanks!

    Puil, I decided to go with your idea, but when trying to connect to the data source at listdata.svc using the add data connection wizard, at the very end upon clicking finish I get an error "System.Exception", this is what shows up in my error list.
    Error 1 Custom tool error: Schema specified is not valid. Errors:
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Relationship' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_CreatedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'FromRole' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Relationship' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_ModifiedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'FromRole' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Relationship' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_CheckedOutTo' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'FromRole' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_CreatedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Type' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0019: Each type name in a schema must be unique. Type name 'Microsoft.SharePoint.DataService.' was already defined.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_ModifiedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Type' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0019: Each type name in a schema must be unique. Type name 'Microsoft.SharePoint.DataService.' was already defined.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_CheckedOutTo' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Type' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0019: Each type name in a schema must be unique. Type name 'Microsoft.SharePoint.DataService.' was already defined.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '_10' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'EntityType' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_CreatedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Association' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_CreatedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'EntitySet' attribute is invalid - The value '_10' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_ModifiedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Association' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_ModifiedBy' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'EntitySet' attribute is invalid - The value '_10' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Name' attribute is invalid - The value '__10Item_CheckedOutTo' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Association' attribute is invalid - The value 'Microsoft.SharePoint.DataService.__10Item_CheckedOutTo' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TQualifiedName' - The Pattern constraint failed.
    (0,0) : error 0005: The 'Role' attribute is invalid - The value '__10Item' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed.
    (0,0) : error 0005: The 'EntitySet' attribute is invalid - The value '_10' is invalid according to its datatype 'http://schemas.microsoft.com/ado/2007/05/edm:TSimpleIdentifier' - The Pattern constraint failed. c:\users\wileym\documents\visual studio 2010\Projects\ecomms\ecomms\Service
    References\studentList\Reference.datasvcmap 1 1 ecomms
    It seems the schema is all wrong... Any help would be appreciated.

  • Passing values to sub-forms  (Varaible scoping)

    I have a "parent" form that calls one of 6 subforms. I'm trying to figure out how to pass values derived in the parent to a sub form.
    I am running IdM 8.1.0.9 in glassfish 2.1.1. I set up these test forms to work through this:
    my Parent Form:
    <Form name='parent' objectLocationID='objectType=UserForm&objectName=parent&objectPath=0&isBegin=true'>
      <Display class='EditForm'/>
        <Include>
          <ObjectRef id='#ID#UserForm:child1' type='UserForm' name='child1'/>
        </Include>
        <!-- This value needed in child 1 form -->
        <defvar name='myvalue'>
          <s>test123</s>
        </defvar>
        <Field name='myfield'>
          <Expansion>
            <ref>myvalue</ref>
          </Expansion>
        </Field>
    <!--  My attempt at using <Variable>, IdM doesn't like this
        <Variable name='myextvar' external='true'>
          <ref>myvalue</ref>
        </Variable>
    -->
        <FormRef name='child1'/>
    </Form>
    my Child1 Form:
            <Form name='child1' objectLocationID='objectType=UserForm&objectName=child1&objectPath=0&isBegin=true'>
                <Display class='EditForm'/>
    <!--
               <Include>
                    <ObjectRef type='UserForm' id='#ID#UserForm:parent' name='parent'/>
                </Include>
    -->
                <Field name='subtext'>
                    <Display class='Text'>
                        <Property name='title'>
                            <concat>
                              <s>pre1:</s>
    <!--  
                               <FieldRef objectLocationID='objectType=UserForm&objectName=marty&objectPath=0&isBegin=true' name='myvalue'/>
    -->
                               <ref>myvalue</ref>
                              <s>:1post</s>
                            </concat>
                        </Property>
                    </Display>
                </Field>
            </Form>I was hoping that child forms would share the scope of the parent, and I could just use a <ref> tag in the child form, but that doesn't seem to work. So I started looking at FieldRef/FormRef but I'm not sure they are the right answer either.
    When the include in the child form is uncommented, I get :
    An unrecoverable error has occurred processing the request. Contact your system administrator.
    Syslog ID = LG-0405-115539.
    I'm guessing that this is because I include a form that includes this form, and created an endless include loop?
    When the FieldRef is uncommented, I get this error:
    Attruibute "objectLocationID" must be declared for element type "FieldRef".
    The <Variable> tag (defined as external) looks promising, but I haven't run across a good example of how to use it.
    When I try to add a <Variable> to my parent form, I get the error: Content of element type "Form" must match...
    This doc: http://docs.sun.com/app/docs/doc/820-5821/bvaex?a=view
    says that <Variable> is a valid form element, but IdM disagrees.
    Any suggestions on how to achieve the passing of values from one for to another would be greatly appreciated.
    -mk
    Edited by: mk152556 on Apr 5, 2010 6:27 AM

    An advice I usually follow: Skip defvars and variables, and stick to fields, hidden, not using any Display class that is, if you just need to use the field as an variable. Field are a lot more practical IMHO.

  • Passing values between adf application and web services

    hi i have a situation where i have jsff page which got username,surname,lastname,email i what to pass this value to my webservices how can i do that. this is how i create my webservicesright click viewControler->web services->web services Data Control
    i what to pass the value to webservices workflow i already have a screen in my workflow now i what to pass the adf application values to that webservices am in jdeveloper 11.1.1.6.0
    i try this
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.start_user_details}"
                                        type="action"/>
              </af:inputText>

    i make my webservices to pass values
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.approveUser_username}"
                                        type="action"/>
              </af:inputText>
    but am geting error reference approveUser_username not found

  • Opening an .xls file and writing data to it....

    Hi ,
    I have written the following simple routine... which is supposed to open a .xls file and some data are written...:
    DECLARE
    application ole2.obj_type;
    workbooks ole2.obj_type;
    workbook ole2.obj_type;
    worksheet ole2.obj_type;
    worksheets ole2.obj_type;
    cell ole2.obj_type;
    --Declare handles to OLE argument lists
    args ole2.list_type;
    BEGIN
    application:=OLE2.CREATE_OBJ('Excel.Application');
    OLE2.Set_Property(application,'Visible', 'True');
    workbooks := ole2.get_obj_property(application, 'Workbooks');
    workbook:=OLE2.INVOKE_OBJ(workbooks,'Add');
    args:= ole2.create_arglist;
    ole2.add_arg(args, 'c:\example.XLS');
    workbook := ole2.invoke_obj(workbook, 'Open', args);
    ole2.destroy_arglist(args);
    args:=OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 1); 
    OLE2.ADD_ARG(args, 1);
    cell:=OLE2.Invoke_Obj(workbooks, 'Cells', args); 
    OLE2.DESTROY_ARGLIST(args);
    OLE2.Set_Property(cell, 'Value', 'Excel');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 0);
    OLE2.INVOKE(workbook, 'Close', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(cell);
    OLE2.RELEASE_OBJ(workbook);
    OLE2.RELEASE_OBJ(workbooks);
    OLE2.RELEASE_OBJ(application);
    OLE2.INVOKE(application,'Quit');
    END; but it does nothing.... it simply opens the Excel application..... How should I modify the routine in order to open the example.xls file and write some data to it .....???????
    Many thanks,
    Simon

    OK... I SOLVED THE PROBLEM.....
    Regards,
    Simon

  • Pass values to bind variales and execute VO query

    Hi All,
    I have a requirement to add validation to an appraisal page via OAF.
    As a part of testing I need to check, if the values in the query of VO is displayed in the page.
    VO - QuestAnsValuesVO
    EO - QuestAnswerValueEO, QuestFieldEO
    The VO query is
    SELECT * FROM (SELECT QuestAnswerValueEO.QUEST_ANSWER_VAL_ID, QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID, QuestAnswerValueEO.FIELD_ID, QuestAnswerValueEO.OBJECT_VERSION_NUMBER, QuestAnswerValueEO.VALUE, QuestFieldEO.FIELD_ID AS QUEST_FIELD_ID, QuestFieldEO.NAME, QuestFieldEO.TYPE, QuestFieldEO.HTML_TEXT, rank() over (partition by QuestFieldEO.NAME order by QuestFieldEO.FIELD_ID) AS RANK, QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID AS QUESTIONNAIRE_ANSWER_ID1 FROM HR_QUEST_ANSWER_VALUES QuestAnswerValueEO, HR_QUEST_FIELDS QuestFieldEO WHERE QuestFieldEO.QUESTIONNAIRE_TEMPLATE_ID(+) = :1 and QuestAnswerValueEO.QUESTIONNAIRE_ANSWER_ID(+) = :2 AND QuestFieldEO.FIELD_ID = QuestAnswerValueEO.FIELD_ID (+)) QRSLT ORDER BY QUEST_FIELD_ID
    I am trying to execute this query in the extended controller class so that i can get the values printed on the page. I am getting SQL exception saying - not all variables are bound.
    How do i pass values to bind variables :1 and :2 and execute this query?
    Please help.
    Thanks
    Geetha

    Geetha,
    Instead of :1 and :2 use a named bind variable as part of your VO and then set either a default value or set its value during runtime. See this example on how to create bind variable:
    http://formattc.wordpress.com/2010/04/02/custom-java-bind-variable-in-a-where-clause-of-an-adf-view-object/
    Once created, you can set its value during runtime either in ApplicationModuleImpl or in ViewObjectImpl class
    e.g.,
             ViewObjectImpl view = this.getEmpView();
            VariableValueManager vm = view.ensureVariableManager();
            vm.setVariableValue("empNo", value);
            view.executeQuery();regards,
    ~Krithika

  • Different values beetween front page and saved data

    Hello,
    I have problems to saved data correctly. I acquire data with Labview 6.0 and a counter/timer card. These data appear on my front page. But when I save them in a table file, their format is modified, rounded.
    For exemple: on my front page values are 20.675 , 21.012 and in my saved file these values are 20.750 and 21.000, even if I checked all the numbers format in the diagram, and declare them in extended precision.
    Where is my mistake ?
    Thank you for your help

    Hello shadok,
    that's strange :-)
    Try this simple example. If this works, then something with your data is wrong...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Test_Save.vi ‏12 KB

  • Are there LabView VI's for accessing and writing data to a CDF?

    I am currently trying to develop a data acquisition system using LabView to acquire the data and to write the data to a file in NSSDC's Common Data Format (CDF). The CDF distribution (Windows 2000) comes with a precompiled dll of the CDF library of functions. Unfortunately, LabView crashes when I try to use the Call Library Function node. I am confident that it is not a function prototype error, but it may be that the CDF library is not thread-safe.
    Has anyone developed VIs for writing and accessing data in CDF format?
    Does anyone know how I can determine why the Call Library Function node causes LabView to crash when it uses a particular dll? There are a host of reasons given in the "Using External Co
    de" manual, but no apparant way of determining which one is the culprit.

    Thank you for your response. Actually, I have solved the problem by recompiling the source code for the CDF distribution using the Cygwin development environment. Cygwin provides a unix C compiler and linker which can create Windows executables and dlls. After modifying the makefiles that came with the CDF distribution I was able to build the dll and then use the Call Library Module to access the CDF functions.
    A note about this process: the linker that Cygwin exports both Windows-style and C-style functions when it creates the dll. Be carefull not to use functions that end in underscores from the CDF dll as C-style functions.
    Also, I would like to point out that the current faliure method of the Call Library Module (i.e. crashing LabView) is not acceptable.
    It would be much better if LabView would generate an error message or an error log entry in case of a dll failure. I would hope that this scenario would be a target goal for future development of LabView. The Call Library Module is an incredibly powerful tool in that opens up many avenues of development -- it deserves a better way diagnosing problems.

  • How to pass values in dynamic structure and then dynamic table

    Hi,
    we have a Z structure in se11 holding 10 fields. But at run time i need to create a dynamic table with more than 10 records.
    I am able to create the structure and corresponding internal table. Now the issue is i have to populate this dynamic structure with some values and then append it to dynamic internal table. Since the dynamic  table type is any its not allowing an index operation like modify etc etc.
    Could anyone help me in passing the values . I have searched in SDN . everyone created a dynamic table and then populated it values from some standard or custom tables.Then assigning the component of structure  and displaying the output. but in my situation i have no such values stored in any tables. i populate values based on certain calculation.

    Hi Friends,
    This is the piece of code.After creating dynamic work area and dynamic table what i should do?
    TYPES: BEGIN OF STR,
    ID TYPE I,
    NAME(30) TYPE C,
    END OF STR.
    data: v_lines type i.
    STR_TYPE ?= CL_ABAP_TYPEDESCR=>DESCRIBE_BY_NAME( 'STR' ).
    STR_COMP = STR_TYPE->GET_COMPONENTS( ).
    APPEND LINES OF STR_COMP TO COMP_TAB.
    COMP-NAME = 'NAME1'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING(  ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'VALUE1'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'NAME2'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'VALUE2'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'NAME3'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    COMP-NAME = 'VALUE3'.
    COMP-TYPE = CL_ABAP_ELEMDESCR=>GET_STRING( ).
    APPEND COMP TO COMP_TAB.
    NEW_STR = CL_ABAP_STRUCTDESCR=>CREATE( COMP_TAB ).
    NEW_TAB = CL_ABAP_TABLEDESCR=>CREATE(
    P_LINE_TYPE = NEW_STR
    P_TABLE_KIND = CL_ABAP_TABLEDESCR=>TABLEKIND_STD
    P_UNIQUE = ABAP_FALSE ).
    CREATE DATA DREF TYPE HANDLE NEW_TAB.
    CREATE DATA DREF1 TYPE HANDLE NEW_str.

  • Passing values from sub sequence to caller

    Hi All
    I am using TestStand 4.0.
    In the setup of my top level sequence I call a sub sequence to calibrate RF cable losses on the test site. These cable losses need to be passed back up to the top level sequence so they can then be stored and used throughout the rest of the program. Problem is I have tried File globals and Parameters but cannot get the information to flow back up the tree. The reference manual says I can do this, but doesnt say how or give examples. I'm sure it's just a case of setting the right flags or passing by reference etc but I've just about lost patience with it. We don't want to use Station globals as these RF cable losses are only relevant to this program.

    Ian,
    You need to set the Parameter in the sequence as 'by Reference'. Infact, when you insert a variable in the Parameters, by default it is 'by reference'.
    This allows you to pass data back to the caller. eg if you had a boolean called Status in Parameters. Then in your Sequence you could set Parameters.Status = True. Caller Step would receive Status as True into the variable you sepecified in the Parameters list in the Edit Sequence Call dialog.
    Have a look at the Computer Motherboard Test Sequences.seq in TestStand examples demo folder, In CPU Diagnostic Sequence.seq in the MainSequence is a boolean called CPUFail that is passed back to the Caller sequence.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Running a Sub-VI and monitoring data that is generated on a higher level VI

    Hi All, 
    This question must been there before, but I cannot find a suitable answer here on the forums....
    I have a 'top-level' VI that does a lot of things. I also have a sub VI that runs a frequency sweep on a piece of equipment. This is done with a for loop. 
    Problem: 
    I want to monitor/access the data that is generated in the for loop (See attached, the 3 wires within the green circle I want to monitor). 
    2 Questions:
    How can I access the data on the wires (within the loop) from a higher level VI?
    How can I then run this VI in a higher level VI while the higher level VI is continuing and not waiting for the sub-VI to complete?
    I tried using a Que but I cannot seem to get that working. 
    Any suggestions?
    Regards,
    Attachments:
    LV problem.PNG ‏44 KB

    The queue is a good way to move data from a running subVI to another VI.  Your problem is that if the subVI is inside a loop in the main VI, that loop in the main VI cannot iterate until the subVI completes. The solution: have the sub VI running in parallel - not inside - the loop.
    Look at the Producer/Consumer Design Patterns (at File >> New... >> VI >> From Template >> Frameworks >> Design Patterns >> Producer/Consumer.  This may be more than you need at the moment but will show how the parallel code process works.
    Lynn

  • How to pass selection filters to logic and extract data from BI to BPC

    Hi everybody. I checked the forum and I found and tried some solutions but not matching my main aim.
    Scenario:
    In the input schedule I have a button which runs a data package to upload datas into BPC, coming from a BI cube.
    The pushbutton menu is ok. I tried also a solution suggested on the blogs and I can upload all transaction datas from BI to BPC successfully.
    But when I run the data load, I want to take from the BI cube ONLY the datas matching the CVW selected, not all the datas from the BI cube. Second needing is to upload during the run 2 keyfigures from BI to BPC with same selection filter.
    Example:
    - I select in the Current view  ENTITY:  ACME  and CATEGORY: CON
    - I want to upload the 0AMOUNT and 0QUANTITY from the BI cube to BPC of the 0COMPANY "ACME" and the 0VERSION: "CON"
    As I understand I can put in the Options of my transformation file using SELECTION , something to filter the datas, but I want that this is dependent from the current view selection. No extra prompts, and to upload the 2 keyfigures in the same process.
    Any idea is welcome.
    Thanks a lot in advance  for any help.
    Edited by: Walter Cista on May 29, 2010 9:29 AM
    Edited by: Walter Cista on May 30, 2010 7:14 PM

    Hi,
    thanks for the answer, but my situation is little bit different.
    I don't want to ask again with prompt to choose my ENTITY to the user, because I have on the main Input schedule, a menu button to choose ENTITY and so the user will just choose once.
    I also understood that the variables selected with the current view, can be found inside DEFAULT logic with [dimension].Currentmember, but I do not work with default logic. I have my own ZLOGIC, and during the call I would like to pass the ENTITY choosen by the user to the logic. In this way when I run my transformation to upload data from a BI cube to BPC cube, I only select a slice of datas, not all the datas in the cube. In short, if I can manage the [DIMENSION].CURRENTMEMBER I will only take from the BI cube the datas I want. As I know if in the TRASFORMATION OPTIONS, in SELECTION if I pass some datas, like ENTITY = ACME I upload to BPC only BI datas of company ACME.....
    So, I would like to do something like this.
    Any reply and help is welcome
    Walter

  • Streaming data and writing data to measurement file problem

     Hi everyone,
    I found something wrong about my code but i don't know exactly what it is first i have a program for acquiring 15 analog signals(NI PXI6259) after acquiring the data i use network stream to stream data from my NI PXI8186 to the host pc these steps are in target VI, after streaming data to host PC
    , i tried to write down the data to the spreadsheet using Express write to measurement VI.
    Problems : 1. After i run the host Vi and target Vi the number available to read is always 0 after sometimes the data displaying on the chart incdicator on host Vi is stopped and start counting the numberavailable to read also the time indicated on X axis of the chart doesn't grow.
                         2. Write to measurement file generate the file that record the data counting the data from 0 to 99 and start over and over again
     Please help i really have no idea what is the cause for each problems.
    Attachments:
    target - single rate.vi ‏83 KB
    Host UI.vi ‏36 KB

    Dear Crossrulz
            Thank you for your prompt reply i have removed the input to "Samples Per Channel" on the DAQmx Timing VI already but still didn't arrange the 
    channels input i will do it but i want to keep it this way first. Now the data acquiring looks okay but i have found new problem.
            After running the program for acquiring the data for about 5 to 6 minutes the program will stop acquiring the data or
    sometimes the target (NI pxi8186) will reboot itself and displaying message "Reboot due to system error" "System state: Safe Mode (System error)
    and on the Host PC there will be a window pop-up displaying
    "Waiting for the target (NI-PXI8186-2F0a597C) to respond"  "Stop Waiting and Disconnect"
     i didn't run the host Vi just run the target Vi only. If this problem caused from the program or the hardware ? Please help.
    Attachments:
    Host UI.vi ‏141 KB
    target - single rate.vi ‏83 KB

  • Creating a File and writing data to it

    hi,
    I have a problem when creating a file,my OS is LINUX,the file not getting creating,after creating the file,i wanna write some data into it,please help me... :-(

    if you are using JSR 75 API then the file is creating in wtkdir/appd/defaultcolorphone/filesystem/.............

  • How can multiple speaker outputs be created with varying volume levels and retain keyboard master volume control? Multi-output and aggregate both cannot adjust sub-devices and lose keyboard volume control capabilities on my Mac. What's the solution?

    Is it my Mac? Is there software I need? An app perhaps? This seems way too complicated to set up spkrs. I'm attempting to use 2 hdmi and 1 headphone outputs w/ control and varying levels (ie hdmi's quieter than desk spkrs) thanks for suggestions! -Tim

    Hi Tim,
    Not sure since I'm deaf,but if possible I'd think...
    Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there.

Maybe you are looking for

  • Can't save pictures on original folder position after edit...since I'm upgraded to IOS7 on IPad2.

    can't save pictures on original folder position after edit, get save popup to save at different position, also still on toubles to get them back to original folder positon since I'm upgraded to IOS7 on IPad2.

  • IMac wont boot...Help!!

    (reporting live from my PC) I've got a 24" 2.4GHZ iMac (the hub of the house) that this morning when I went to get on it, was running INCREDIBLY slow, and none of the apps were responding and I couldnt Force Quit. So, I had to do a hard power off. Wh

  • SAP PI/PO 7.31 - Single Stack - Best way of handling 'TBDL' messages

    Hi All, I would like to know what is the best way of processing 'TBDL' messages that are shown in 7.31 message monitoring. One way I know is to resend the messages but if the volume is huge (100k+), is there a strategy to reprocess them automatically

  • Error :TNS illegal address parameters

    Hi all error ORA-12533 : TNS illegal address parameters I am getting an error while trying to access the oracle database. this is what i have in my tnsnames.ora # tnsnames.ora Network Configuration File: C:\OraHome_1\network\admin\tnsnames.ora # Gene

  • Decreasing the size of a logo to avoid blurring

    Hi I have designed a logo in Illustrator, and have all the fonts created to outlines. I have been asked to send the logo to a company that is going to display it on their site and brochure in 2 formats (jpg for the web and eps for print) The problem