Application control methods to prevent jerky graph refresh rate

Hi all,
In the simplest terms, what I am trying to achieve is a VI with a button on. When the user presses the button, a subVI is executed which acquires some data which is displayed on 2 graphs. The first graph has cursors which can be moved by the user to define the limits of the data plotted on the second graph.
I created a VI that did the 2 graphs with the limits and they updated fine (see attached file Stiffness and Damping.vi). However, this was when loading some data from a text file (attached as LabTestData.txt).
When I replaced the loading bit with the DAQ subVI, when the user changed the cursors on the first graph, the range of data on the second graph remained unchanged (see attached file FIND SAD v1.vi).
I then changed the structure so the data acquisition was in a different loop to the analysis and this works to a certain extent, apart from the fact that the second graph has a very jerky refresh rate (see attached file FIND SAD.vi).
If someone has a suggestion on a better way to structure the VI to solve these problems then that would be a great help.
The second version also has the problem that the VI doesnt stop when the 'Back to main menu' button is pressed, and I can't figure out why this is.
Many thanks,
Ian
Attachments:
Stiffness and Damping VIs for forum.zip ‏240 KB

Thanks Tom,
I've attached it along with the subVI it uses as well
Cheers,
Ian
Attachments:
DATA FROM RIG v2.vi ‏553 KB
FRA SubVI.vi ‏71 KB

Similar Messages

  • Bind an inputFile value to a data control methods parameter

    Hello I am trying to create a InputFile (ADF Faces) which is linked to a data control method. The method reads a specified file and returns the content which is then displayed in table form.
    <br><br>
    I have a filereader Class with the following method:
    <i>public List<FileInQuestion> returnFileContents(String fileName)</i>
    <br><br>
    I have created a data control based on this Class. From the JSF page, under the data control palette I can drag on may parameter 'FileName' (as input text) and my method (as command button) and finally the return type 'FileInQuestion' (as read only table). This all works fine and when I type a filename in and hit the button it displays the contents in a table.
    <br><br>
    Now the problem is that I want to base the input parameter on the value of the InputFile component. But when I drag and drop the 'fileName' parameter onto the canvas, it doesn't give me the option to create as an input file!
    <br><br>
    Please could someone tell me how I manually link (bind) the inputFile component to the 'fileName' parameter?
    <br><br>
    Sorry if a bit long winded!!
    <br><br>
    Thanks Dan
    Message was edited by:
    user593073

    Thanks Frank but I need to get at the text value returned from the inputfile component. I did what you said with the following results:
    <br><br>
    I started with a inputtext field, command button and read only table. When I entered a value (in this case 'C:\data\contacts.txt' ) into the inputtext field and hit the command button the table displayed the expected results (for logic please see my 1st post).
    <br><br>
    I then convert the inputtext component to a inputfile component in the way you suggested. I now rerun the application, browse to the same file and hit the command button, and then nothing!! no results.
    <br><br>
    I'm I missing something here?
    <br><br>
    Thanks
    <br><br>
    Dan

  • BUG: Docked Application Control Bar breaks States

    I've encountered a bug and I haven't noticed messages from
    anyone else about it so I'm assuming it's an unknown:
    If you use an Application Control Bar, set it's dock property
    to true, and then attempt to change the currentState of the
    application to a state that would result in the Application Control
    Bar to be removed; the state change fails.
    Here's an example:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:states>
    <mx:State name="problemState">
    <mx:AddChild relativeTo="{textarea1}"
    position="before">
    <mx:Button x="368.5" y="323" label="Goto Base State"
    click="currentState=&quot;&quot;"/>
    </mx:AddChild>
    <mx:AddChild position="lastChild">
    <mx:ApplicationControlBar x="170" y="221" dock="true"
    id="appControlBar">
    </mx:ApplicationControlBar>
    </mx:AddChild>
    <mx:AddChild position="lastChild">
    <mx:Button x="360" y="434" label="Undock Control Bar"
    click="appControlBar.dock = false"/>
    </mx:AddChild>
    <mx:AddChild position="lastChild">
    <mx:Button x="366.5" y="464" label="Dock Control Bar"
    click="appControlBar.dock = true"/>
    </mx:AddChild>
    <mx:AddChild relativeTo="{appControlBar}"
    position="before">
    <mx:TextArea x="229.5" y="403" width="396" height="23"
    editable="false" fontSize="12" fontWeight="bold" textAlign="center"
    id="textarea0">
    <mx:text>Undocking the control bar at runtime fixes
    the problem:</mx:text>
    </mx:TextArea>
    </mx:AddChild>
    <mx:AddChild relativeTo="{appControlBar}"
    position="before">
    <mx:TextArea x="229.5" y="210" width="396" height="105"
    editable="false" fontSize="12" fontWeight="bold" textAlign="center"
    id="textarea2">
    <mx:text>If you try and return to the base state while
    the control bar is docked, the state change will fail. The state
    change will get &quot;stuck&quot; and you'll have to reload
    the Flex application. If there was a third state, you could change
    to that to get out of the lockup, but you still can't transition to
    any state that would remove the docked Application Control
    Bar:</mx:text>
    </mx:TextArea>
    </mx:AddChild>
    </mx:State>
    </mx:states>
    <mx:Button x="358.5" y="135" label="Goto Problem State"
    click="currentState=&quot;problemState&quot;"/>
    <mx:TextArea x="229.5" y="70" width="396" height="57"
    editable="false" fontSize="12" fontWeight="bold" textAlign="center"
    id="textarea1">
    <mx:text>A Docked application control bar prevents
    Flex from changing state to a state that would remove the
    application control bar.</mx:text>
    </mx:TextArea>
    </mx:Application>

    Hi Harry (and others),
    I have seen similar behavior. It seems like the client side rendering for some reason has a hard time processing the collection model wrapping the ArrayList in this particular case. The table renders empty. After sorting in ascending order, the rows are all back (visible) again.
    Is anyone aware of issues with the rich table based directly on ArrayList (in combination with a changing set of values and/or sorting)? (seems like a corner case but is still not uncommon). Is there any indication that wrapping the ArrayList in a CollectionModel ourselves might be required?
    Harry: do you know whether this issue is introduced with PS3 (11.1.1.4) or already existed in previous releases?
    kind regards,
    Lucas

  • How to prevent an automatic refresh of a dashboard

    Hi,
    Currently OBIEE automatically refreshes all reports of a dashboard once it's selected. This often causes a heavy load on our databases. The question is: how can I prevent an automatic refresh? I only want the dashboard to be refreshed once I click on the "Go" button of the dashboard prompt!
    TIA,
    Erik
    Edited by: Erik on 25-Mar-2011 12:09

    Hi Eric,
    In the dashboard, better create a landing page. In this landing page just add the dashboard object (link or image).
    Once this is configured, user have an option to navigate to the report through link.
    Even we can configure the common prompts/ global prompts at the front (Landing page) with the note to the user on navigation.
    By this way, you can have the control of dashboard refresh.
    Thanks,
    Karthikeyan V

  • Methods to prevent XSS

    Does anyone know of any methods to prevent Cross Site
    Scripting (XSS) in CF applications?

    jperez8770 wrote:
    > Does anyone know of any methods to prevent Cross Site
    Scripting (XSS) in CF applications?
    Turn on the "Enable Global Script Protection" XSS setting in
    the CF
    administrator.
    Never Trust unverified inputs form any client request, be it
    get|url,
    post|form or cookie to be output without protection in future
    responses.
    Use the urlEncodedFormat(), urlDecode(), htmlCodeFormat(),
    htmlEditFormat() and xmlFormat() functions to escape any
    untrusted
    content rendering scripting code as harmless text.

  • Approval Index in Application controlled WF

    Hi All
    I am working on Application controlled WF. I created a implementation for the BAdI- BBP_WFL_APPROV_BADI. In the method- GET_REMAING_APPROVERS, one of the importing parameter is ACTUAL_APPROVAL_INDEX.
    While i am creating SC (from portal), if i click on Approval Process Overview button, BAdI is getting with Approval_Index as 000000 and if i order the SC, BAdI is getting with Approval_Index as 000000.
    Please let me know, always the approval index will be 00000 (initially) and do we need to increase the approval index inside the BAdI?
    Vinoth

    Hi,
      you are taking two different things.. ACTUAL_APPROVAL_INDEX is import parameter of the Badi, But Approval_Index is part of the approval_table which is exporting parameter of the Baid..
    the approval index must be increased based on number of level you wants the sc to be approved..for an example..
    you want a SC to  be approved by 4 levels of approver's then the approval_table must be appended as follows
    approval_index = 1
    1st approver details.
    approval_index = 2
    2nd approver details.
    approval_index = 3
    3rd approver details.
    approval_index = 4
    4th approver details.
    ACTUAL_APPROVAL_INDEX is import parameter of the Badi is update dynamically once the approver take the decision for an example.. Assume that the 3rd level approver approve the sc.. now the ACTUAL_APPROVAL_INDEX is 3..
    Saravanan

  • How to invoke Application Module method from entity object methods

    Hi,
    We have an existing Application Module which provides some validation logic. We are using OperatingBinding or getting the Application Module instance from the bindings and then invoking the app module methods in the view controller project.
    But in our current scenario, We need to invoke the application module method from the setAttribute method in the entity object when ever an entity attribute value is changed . I believe we can call createRootApplicationModule method to create application module instance. But this may lead to performance overhead.
    Can you please suggest, if there is any alternative to invoke the application module method inside the business components.
    What is the best way to create

    We have a pricing service, which was developed as a separate application. We need to invoke the pricing service with the change in certain attributes of the entity object and update some of the attributes of the current entity object. At present we are handling these calls to the pricing service in the ui layer in the valueChangeListener.
    But we would like to move this service call into setAttribute method as we are unable to prevent the call to the service if the model validations fail. I am looking for the best possible approach for invoking the service calls from the entity objects.
    Thanks and Regards,
    S R Prasad

  • Period Control Method 01 and 03 Mid Month Convention

    Hi All,
    I am trying to create two different depreciation keys.
    One is with Period rule 01 i.e Pro rata at period start date. Example. If I create an asset any time during the month, the ordinary start depreciation should start at the beginning of the month.
    Secondly another deprecation key with period rule 03 i.e. prorata at mid period. Meaning that the ordinary start deprecation date should be from 15 of the month.
    I activate the " Use of Half Months in the Company Code" then the deprecation key with prorata at period start date is behaving like pro rata at mid period.
    Example:
    I created an asset that was capitalized 5/18. For book depreciation the start date should be 5/1 and for tax it should be 5/15. Both of the areas are showing 5/15. have i missed something?

    Issue Resolved
    Steps:
    1. In transaction OAVS define a new Per control (Z1).
    2. In transaction OAVH create the following: My fiscal year is from Aug-July
    3. Update transaction AFAMP, create a new period control method and assign it Z1/Z1/Z1/Z1
    4. Finally update the period control in the book depreciation key AFAMP.
                                                                                    D                   M                  Period
    Z1     At period start date              1     31     5
    Z1     At period start date              2     28     6
    Z1     At period start date              3     31     7
    Z1     At period start date              4     30     8
    Z1     At period start date              5     31     9
    Z1     At period start date              6     30     10
    Z1     At period start date              7     31     11
    Z1     At period start date              8     31
    Z1     At period start date              9     30     1
    Z1     At period start date              10     31     2
    Z1     At period start date              11     30     3
    Z1     At period start date              12     31     4

  • How do I call an Application Module method from a EntityImpl class?

    Guys and Gals,
    Using Studio Edition Version 11.1.1.3.0.
    I've got a price update form, that when submitted, takes the part numbers and prices in the form and updates the corresponding Parts' price in the Parts table. Anytime this Parts view object's ReplacementPrice attribute is changed, an application module method needs to be called which updates a whole slew of related view objects. I know you can modify view objects via associations (How do I call an Application Module method from a ViewObjectImpl class? but that's not what I'm trying to do. These AppModuleImpl methods are the hub for all price updates, as many different operations may affect related pricing (base price lists, price buckets, etc) and hence, call the updatePartPricing(key) method.
    For some reason, the below code does not call / run / activate the application module's method. The AppModuleDataControl exists and recordPartHistory(key) is registered and public. At runtime, the am.<method> code is simply ignored, and as a weird side-effect, I cannot navigate out of my current page flow.
      public void setReplacementPrice(Number value)
        setAttributeInternal(REPLACEMENTPRICE, value);
        AppModuleImpl am = (AppModuleImpl)this.getDBTransaction().findApplicationModule("AppModuleDataControl");
        Key key = new Key(new Object[]
            { getPartNumber() });
        am.recordPartHistory(key);  // AppModuleImpl method which records pricing history
        am.updatePartPricing(key); // AppModuleImpl method which updates a whole slew of related pricing tables
      }Any ideas?

    Thanks Timo.
    Turns out the code provided was correct, but the AppModuleImpl method being called was not. A dependent ViewObject wasn't returning the row I was expecting. I then tried to perform some operations on that row, which in turn ... just stopped everything, but didn't give me an error.
    It was the lack of the error that threw me off. I had never messed with calling an AppModuleImpl method from the EntityImpl so I assumed that's what was messing up.
    You are correct. It is available from the ViewRow, but I thought it better to put it in the EntityImpl. This method will be called every time the replacement cost is modified. If I didn't put it in the EntityImpl, I'd have to remember to call it every time a replacement cost changed.

  • SSRS 2008 R2 Calendar Control not working and report not refreshing on pressing enter in Chrome.

    SSRS 2008 R2 Calendar Control not working and report not refreshing on pressing enter in Chrome.

    SSRS reports are always best viewed in IE and the report result what you see in IE always will not be same and consistent in thirdy party browswers.
    So consider using IE as workaround.
    Also please refer:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/2188de10-cff9-4e24-b14f-da5121f1c4a4/ssrs-calender-control-not-visible-in-chorme-on-server?forum=sqlreportingservices
    Workaround here:
    http://www.rajbandi.net/Fixing-SSRS-Report-Viewer-control-date-picker-in-Google-chrome/
    -Vaibhav Chaudhari

  • Best practice for calling application module methods and plsql code

    In my application I am experiencing problems with connection pooling, I seem to be using a lot of connections in my application when only a few users are using the system. As part of our application we need to call database procedures for business logic.
    Our backing beans, call methods on the application module which in turn call a database procedure. For instance in the backing bean we have code like this to call the application module method.
    // Calling Module to generate new examination/test.
    CIGAppModuleImpl appMod = (CIGAppModuleImpl)Configuration.createRootApplicationModule("ky.gov.exam.model.CIGAppModule", "CIGAppModuleLocal");
    String testId = appMod.createTest( userId, examId, centerId).toString();
    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("tid",testId);
    // Close the call
    System.out.println("Calling releaseRootApplicationModule remove");
    Configuration.releaseRootApplicationModule(appMod, true);
    System.out.println("Completed releaseRootApplicationModule remove");
    return returnResult;
    In the application module method we have the following code.
    System.out.println("CIGAppModuleImpl: Call the database and use the value from the iterator");
    CallableStatement cs = null;
    try{
    cs = getDBTransaction().createCallableStatement("begin ? := macilap.user_admin.new_test_init(?,?,?); end;", 0);
    cs.registerOutParameter(1, Types.NUMERIC);
    cs.setString(2, p_userId);
    cs.setString(3, p_examId);
    cs.setString(4, p_centerId);
    cs.executeUpdate();
    returnResult=cs.getInt(1);
    System.out.println("CIGAppModuleImpl.createTest: Return Result is " + returnResult);
    }catch (SQLException se){
    throw new JboException(se);
    finally {
    if (cs != null) {
    try {
    cs.close();
    catch (SQLException s) {
    throw new JboException(s);
    I have read in one of Steve Muench presentations (Oracle Fusion Applications Team' Best Practises) that calling the createRootApplicationModule method is a bad idea, and to call the method via the binding interface.
    I am assuming calling the createRootApplicationModule uses much more resources and database connections that calling the method through the binding interface such as
    BindingContainer bindings = getBindings();
    OperationBinding ob = bindings.getOperationBinding("customMethod");
    Object result = ob.execute()
    Is this the case? Also is using getDBTransaction().createCallableStatement the best way of calling database procedures. Would it be better to expose plsql packages as webservices and then call them from the applicationModule. Is this more efficient?
    Regards
    Orlando

    Thanks Shay, this is now working.
    I successfully got the binding to the application method in the pagedef.
    I used the following code in my backing bean.
    package view.backing;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    public class Testdatabase {
    private DCBindingContainer bindingContainer;
    public void setBindingContainer (DCBindingContainer bc) {this.bindingContainer = bc;}
    public DCBindingContainer getBindingContainer() {return bindingContainer;}
    public static String validateUser()
    // Calling Module to validate user and return user role details.
    System.out.println("Getting Binding Container from Home Backing Bean");
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    System.out.println("Obtain binding");
    OperationBinding operationBinding = bindings.getOperationBinding("calldatabase");
    System.out.println("Set username parameter");
    operationBinding.getParamsMap().put("p_userId",userId);
    System.out.println("Set password parameter");
    operationBinding.getParamsMap().put("p_testId",examId);
    Object result = operationBinding.execute();
    System.out.println("Obtain result");
    String userRole = result.toString();
    System.out.println("Result is "+userRole);
    }

  • Application control

    Hi all,
    could you help me with finding the answer for the following question?
    Is it possible in Peoplesoft to have different application controls settings on different client codes within one instance? I'm more familiar with SAP and I'm just trying to discover Peoplesoft more, so I'll use example from SAP. In SAP it's possible to set the 3-way match (Invoice is matched against both the Purchase Order and Goods Receipt) in under one client code, but the setting can be disabled under another client code. Another example would be having set certain reports or configurations differently at different client codes.
    The aim is to know whether I have to review just one settings or have to review settings/configurations for each individual client code.
    Thank you very much in advance.
    Tomas

    1. PeopleSoft dont have code on client side instead it has code on server side.
    2. In PeopleSoft we can do 2 way and 3 way matching, one user settings can be disabled from another user. All these are controlled by PeopleSoft Security
    3. PeopleSoft can set certain reports or configurations differently at different users.
    You can control one user settings from another user but all this is controlled by PeopleSoft Security. It is very powerful application in which you can do many miracles.
    Jayaprakash Tedla

  • What is adobe autoanalyzer and how do i quit the application? it's preventing me from downloading an

    what is adobe autoanalyzer and how do i quit the application? it's preventing me from downloading and installing updates to elements 11 and camera raw

    To quit Auto analyser, open task manager/Activity monitor and look for 'ElementsAutoAnalyzer' and kill this process/exe.
    Auto analyser is an exe used by Organizer for performing 'media analysis' (assigning smart tags to images).
    ~Andromeda

  • NAC Port Control Method : MAC or Linkup ?

    Hi,
    We are running OOB Virtual-GW and I'm wondering what control method you people are using ? MAC notification or Link-Up notification ?
    Our Cisco engineer told us to use MAC-Notif but I would like to have your thought about this ...
    Right now we are using Link-Up and we are experiencing problems... especially with the delay being too long before port is switch back to Auth VLAN...
    Thanks.
    Dominic

    Search the discussions before posting. Your question has been asked and answered dozens of times before. You could save yourself time in the future, as you'd find the answer yourself.
    http://discussions.apple.com/thread.jspa?messageID=3830087&#3830087

  • Align picture to far left on application control bar

    guys i realise that the application control bar has a 1px padding from each side but is there a way to remove that padding so that i may align the Img right up to the far left of the control bar?
    Any help would be appreciated.

    such a simple solution and i just couldnt think of it. :-) thanks

Maybe you are looking for