Selection of active plot

Hello
I am programming, an program, with an graf i Labview 6i. Is there some build
in way to let the user choose the active plot in an graf? I find it a litle
difficult to do the programming myself, just to create the
radiobuttons(array of booleans, programicaly insured only one true) and
allign them with the plot legend is difficult.
Yours Peter

Use the "Active Plot" Property node - see the attached example.
Like my answer? Give it a rating!
cheers,
Christopher
Christopher G. Relf
Certified LabVIEW Developer
[email protected]
Int'l Voicemail & Fax: +61 2 8080 8132
Aust Voicemail & Fax: (02) 8080 8132
EULA
1) This is a private email, and although the views expressed within it may not be purely my own, unless specifically referenced I do not suggest they are necessarily associated with anyone else including, but not limited to, my employer(s).
2) This email has NOT been scanned for virii - attached file(s), if any, are provided as is. By copying, detaching and/or opening attached files, you agree to indemnify the sender of such responsibility.
3) Because e-mail c
an be altered electronically, the integrity of this communication cannot be guaranteed.
Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.
Attachments:
Active_Plot_Property_Node.vi ‏13 KB

Similar Messages

  • Selecting active plot

    Hello,
    I am reading a number of data file with a while loop and plotting them to a XY graph. I would like to make the graph legend based on the index value. I cannot seem to access the active plot and label it. (Error= Selected invalid property node). Can anyone point out what the error is? Thank you.
    KB
    Attachments:
    untitled.bmp ‏1292 KB

    "Active Plot" cannot be higher than the number of plots you actually have. You do a +1 twice for ActPlot, thus the first plot you select is #2 while you don't even have a plot yet. Also make sure the property node happens after data reached the x-y graph terminal.
    --wire ActPlot directly to [i], the iteration terminal. The first plot is #0!
    --add a +1 to [i] before wiring it to LegPlots (input there cannot be zero). If there is only plot zero, you want one legend visible, etc. right?
    -- Leave "autosize legend" out, because it does not change. Either set it manually or set it with a property node once before entering the while loop.
    -- The first ActPlot (read mode) is useless. Remove it.
    See if this helps.
    It is probably more efficient to attach th
    e actual VI compared to a 1.3MB bitmap. ;-)
    LabVIEW Champion . Do more with less code and in less time .

  • Programmatically formatting the active plot and plot legend

    I am monitoring 6 production sequences on an XY graph. A ring control selects which sequence I show on the graph. For each sequence I have tag data showing the "actuals" and tag data showing the "averages" and a boolean toggle switch controls which of these plots I show on the graph. I am having trouble controlling the formatting of the plots (both actuals and averages are currently shown in white) and the plot legend is wrong. I have tried programming my vi to format my plots using a property node from the XY graph and writing to the correct plot inputs, however it doesn’t seem to be working. I would also like the plot legend to show ONLY the active plot on the XY graph.
    I would like a red continuous line for the averages and blue square scatter points for my actuals. I can’t seem to get this at all. I have attached my vi if anyone can help?
    Many thanks for taking the time to help,
    Best regards,
    Stuart
    Attachments:
    Historical Handling Time Trends.vi ‏137 KB

    Hi Stuart
    Maybe this helps you.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    Plots.vi ‏65 KB

  • Cant' update while select is active in read-committed mode

    Hi All
    I try to execute my java program the following error is comming
    "cant' update while select is active in read-committed mode"
    I am using prepraredStatement. The query is running successfully in QueryTool or Toad. But the Error is coming while execute this line
    "stmt.executeUpdate(); "
    pleaes solve my problem..
    Thankx

    <br>Mmm, it seems same question Re: insert data problem</br>
    <br>Nicolas.</br>

  • Multiplot XY graph : error when wiring 24 to active plot property node

    I'm using LabVIEW 2009
    When I wire 24 or higher to the active plot property node of a multiplot XY graph , I receive error message :
    error 1077
    Property Node (arg 1) in Untitled 1
    <APPEND>
    Property Name: <b>Active Plot</b>
    Anyone a suggestion ?
    Solved!
    Go to Solution.
    Attachments:
    Error1077.png ‏20 KB

    Hi,
    how many plots do you have currently plotted? ActPlot can only be as big as the current number of plots...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can't update while select is active in read-committed mode

    Hi
    This is my business logic:
    I m selecting the values from three tables by UNION ALL and i m geting the record set in while loop at the same time i try to insert the values which is getting from select statement in the First Table in the same while loop.
    my problem is when i try to insert into the same table the following error is occured
    "can't update while select is active in read-committed mode"
    Now what can i do ? please give me ur solution ...
    Thankx
    Merlina

    depending on how many values you have, you could store the results in memory, a vector or similar collection.
    Then close the select statement, and insert the values from your vector into the table.... should work then.
    Or, there may be a way of creating an updatable resultset ?
    This question is better directed at the
    "Java Database Connectivity (JDBC) & Transactions (JTA/JTS)" section of the forum. Maybe post a questions there, ensuring you give the URL of this question here too to avoid cross-posting.
    regards,
    Owen

  • How to make selected and active a child row of a treeTable?

    Hello,
    I am inserting a new child row into a af:treeTable, disclosing it, but I can't figure out how to make it selected and active so the focus of the user to go on it.
    Jdeveloper version 11.1.2.3.0
    This is how I am inserting the child node:
    public void createLocation(RowIterator ri, Key selectedNodeKey) {
            final String locationCategoryViewDef = "model.views.LocationCategoryView";
            if (ri != null && selectedNodeKey != null) {
                Row[] found = ri.findByKey(selectedNodeKey, 1);
                if (found != null && found.length == 1) {
                    Row foundRow = found[0];
                    String nodeDefname = foundRow.getStructureDef().getDefFullName();
                    RowSet parents = (RowSet)foundRow.getAttribute("LocationView");
                    Row childrow = parents.createRow();
                    //hardcoded locationId
                    childrow.setAttribute("LocationId", 434558);
                    parents.insertRow(childrow);
    }  And this is the treeTable:
    <af:treeTable value="#{bindings.LocationCategoryView2.treeModel}" var="node" varStatus="vaarr"
                  partialTriggers="gaga gag4a ga4a"
                  selectionListener="#{bindings.LocationCategoryView2.treeModel.makeCurrent}"
                  displayRow="selected" rowSelection="single" id="tt1" editingMode="clickToEdit"
                  horizontalGridVisible="true" binding="#{pageFlowScope.treeTableBean.sampleTreeTable}">
        <f:facet name="nodeStamp">
            <af:column id="c5" width="15">
                <af:outputText value="#{node}" inlineStyle="display:none" id="ot1"/>
            </af:column>
        </f:facet>
        <f:facet name="pathStamp">
            <af:inputText value="#{node}" id="ot2"/>
        </f:facet>
        <af:column id="c2" headerText="Location CategoryName">
            <af:inputText value="#{node.LocationCategoryName}" inlineStyle="font-weight:900" id="ot45"/>
        </af:column>
        <af:column id="c6" headerText="Location CATID">
            <af:inputText value="#{node.LocationCategoryId}" inlineStyle="font-weight:900" id="ot6"/>
        </af:column>
        <af:column id="cgg2" headerText="Var INDEx">
            <af:outputText value="#{vaarr.index}"/>
        </af:column>
        <af:column id="c1" headerText="Location Name">
            <af:inputText value="#{node.LocationName}" id="ot3"/>
        </af:column>
        <af:column>
            <af:panelGroupLayout layout="vertical">
                <af:commandLink id="gaga" text="addLocation" inlineStyle="color:red"
                                action="#{pageFlowScope.treeTableBean.createChildren}"
                                rendered="#{node.LocationId == null}" partialSubmit="true"/>
                <af:commandLink id="gag4a" text="delete category" inlineStyle="color:blue"
                                partialSubmit="true" rendered="#{node.LocationId == null}"
                                action="#{pageFlowScope.treeTableBean.deleteChildRow}"/>
                <af:commandLink id="ga4a" text="delete location" inlineStyle="color:green"
                                partialSubmit="true" rendered="#{node.LocationId != null}"
                                action="#{pageFlowScope.treeTableBean.deleteChildRow}"/>
            </af:panelGroupLayout>
        </af:column>
    </af:treeTable>

    Yes I did now but nothing changes. The current, selected and active row is still the parent node...
    Even I am adding AdfFacesContext.getCurrentInstance().addPartialTarget(this.sampleTreeTable); for just in case..

  • Encore cs6 button selection vs. activation

    Having trouble figuring out what I'm doing wrong with my menu buttons. I'm trying to make buttons that show both selection (a blue marker) and activation (a red marker).
    Here's my layers in Photoshop cs6:
    And here's what Encore is showing me:
    Note that in the Encore menu panel I clicked on the "show selected state" button to get the picture shown above. I was surprised that I didn't get all blue button markers. Blue is the color of the (=1) prefixed layers in Photoshop. Red is the color of the (=2) prefixed layers.
    What Encore actually seems to be doing is just showing the layer at the top of the layer stack for the button, without any regard to the prefix. I say that because I get exactly the same results when I click on the "show activated state" button in the Encore menu panel.
    What I want, is for the selected state to show a blue marker, and for the activated state to show a red marker. Seems simple, yet I've been beating my head against the wall for the last day trying to make it work. I've read the docs over and over and, well, they aren't helping. So I'm asking here: What am I doing wrong to mess this up?

    Stan Jones wrote:
    I cannot get this straight, but the actual appearance is set by the color set. You probably have "automatic" set, and the defaults are for the selected and activated to be the same. Depending on the player, activated is very short. Change the color set to "default," and you may be able to see a difference.
    I've got to play with this some more.
    You got it. This is, um, odd stuff. Very odd. But it is what it is. It would be nice if Adobe included a tutorial on this stuff somewhere, because it's not at all clear in the manuals.
    Now tell me if you can, how does one pick which highlight group to use (default appears to be group 1), and then, what do the three levels mean inside each group?
    I've "solved" the problem by making all three numbers the same colors for selected, and all the same (but a different color) for activated. Seems to work. But I'd like to know why.

  • How to use Magic Wand to select in Active Artboard only - CS5

    I've run into a problem that I would think already has a solution. I have a layout with 7 artboards, each a variation on a logo design. I want to select a specific color, but only in the active artboard. The Magic Wand would seem to be the right choice, but I see no way of specifying this. Every attempt I make, the color is selected in every artboard that it exists. I know that Select All can narrow its scope to the active artboard by adding the option key to the command but see no equivalent for the Magic Wand. Am I missing something or is Illustrator missing the ability?

    Use locking or hiding to make you selection.
    Draw a frame around the elements on one artbaord
    Select >> Inverse
    Object >> Lock
    (use your magic wand and make your change)
    Object unlock all

  • Field selection in activity journal

    Hi,
    I have a problem in Activity journal in CRM Activities.In activity Journal I created template type and template and also I maitained field selection as REMARKS in attributes tab page of the template type.Now I want to maintain one more field in attribute tab page of the template type.I tried to maintain the another field in field selection but I am unable to maintain another field.Can anybody help me out to solve this problem.Thank you.
    Regards
    Nagaraju

    Hi Sunita,
    First of all thanks for your solution.
    My requirement is at time of template type creation I want to add one extra field name which is not there in the attribute tab of activity journal.I have not yet created any template and template type.Plz tell me how to add extra field name in the attribute tab.
    Regards
    Nagaraju N

  • Get the selected or active tab on a tabstrip to show different content

    Hi All,
    I have two tabs (TAB1 and TAB2) on a tabstrip. And on each of these tabs I have a table. Both tables are binded to the same context node.
    The property selectedTab of the Tabstrip is binded to an attribute "TAB" of a context node "TABSTRIP".
    I defined a supply function on this context node "TABSTRIP" in order to show the TAB1 by the first building up the view.
    METHOD supply_tabstrip .
    * local structure for the activ TAB
      DATA: stru_tabstrip TYPE if_componentcontroller=>element_tabstrip.
      CLEAR stru_tabstrip.
    * set the default-value
    * --> This is valid untill the user choose another Tab
      MOVE 'TAB1' TO stru_tabstrip-tab.
    * bind the filled structure to the context
      node->bind_structure(
        new_item             = stru_tabstrip
        set_initial_elements = abap_true ).
    ENDMETHOD.
    I also definded a supply function on the context node of the table (which is mentioned above) to fill it with content.
    Now i need to define a query to fill the table with two different content and for this I need to know which tab is selected by the user. How can i find which tab is selected or which tab is active?
    Thank you for any help
    Best regards
    Haleh

    Hi,
    I have a  context attrinbute SELECTED to which the SelectedTab property of tabstrip is bound.
    Implement action onSelect for Tabstrip -  Use this code snippet  -
    ***Variables
      DATA:
        lv_select_tab type string.          "Selected tab value
    ***Structure and internal table for the Events and messages
      DATA:
        lt_events type WDR_EVENT_PARAMETER_LIST,
        ls_events type WDR_EVENT_PARAMETER.
    ***Field symbols
      field-symbols: <fs_value> type any.   "Attribute value in events table
    ***Move the event table to lt_events
      lt_events = wdevent->parameters.
    *"Set to 'TAB' in lt_events
      read table  lt_events into ls_events with key name = wd_assist->GC_TAB.  "TAB
      if sy-subrc eq 0.
        assign ls_events-value->* to <fs_value>.
        if sy-subrc eq 0.
          lv_select_tab = <fs_value>.
        endif.                 "IF sy-subrc eq 0.
      endif.                 "IF sy-subrc eq 0.
    ***Set the selected tab value
      CALL METHOD WD_CONTEXT->SET_ATTRIBUTE
        EXPORTING
          VALUE = lv_select_tab
          NAME  = wd_assist->GC_SELECT_TAB.  "Set the selected tab Id "SELECTED
    **Call additional data if tab selected
      if lv_select_tab eq 'TAB1'.
    */Have your code here......
    else
    endif.
    Regards,
    Lekha.

  • Msa: contact person selection for activity

    Hello forum,
    I've installed msa50 sp6 and now I want to now, when I creat an activity and select
    a contact person to this activity by search window, is it possible to select more than only one person  (multiselect) or must I for every contact person open the search window and select  the contact person again ?
    Can somebody check this behaviour ?
    Thanks
    Gerd

    Dear,
    Multiple selection is not possible in MSA.
    You can select one contact person at a time
    If you have any concerns please revert back the same
    Amjad

  • Selection Text Activation

    Hi All,
    I Developed the program and and Transported to Quality. Selection text is not transported. In development i went to selection Text and given the space and i tried to activate, to get the new request. then i could not able to activate.
    following error i am getting. our system is ECC 6.0.
    <b>Error during activation
    Message no. EU837</b>

    Hello,
    i've just had the same problem and i realize that this message was giving me because the program had an original system different than the one i was. The program had been created in another system and was transported to my actual.
    SAP couldn't activate me my text elements.. so i went to SE03 and changed the original system to the one i was logged and the problem was solved
    Paulo A.
    Edited by: Paulo Almeida on Jan 25, 2010 12:08 PM

  • Xy graph active plot property settings not working

    I set the xy graph plot properties manually and they appear to work. However, when I try to set them in the program they revert to the manual settings. What's going on?
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell
    Solved!
    Go to Solution.

    I went to the graph and made plot legend visible and extended it from one plot to 3. That's all I did. Now it appears to be working properly. It's been a long while since I had to get really fancy with a graph but I don't remember having to do this. My memories of  graph properties were that they were a little more dynamic. 
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

  • Can't update while select is active in read-committed mode- Pls Help Me

    Hi
    This is my business logic:
    I m selecting the values from three tables by UNION ALL and i m geting the record set in while loop at the same time i try to insert the values which is getting from select statement in the First Table in the same while loop.
    my problem is when i try to insert into the same table the following error is occured
    Thanks
    Merlina

    depending on how many values you have, you could store the results in memory, a vector or similar collection.
    Then close the select statement, and insert the values from your vector into the table.... should work then.
    Or, there may be a way of creating an updatable resultset ?
    This question is better directed at the
    "Java Database Connectivity (JDBC) & Transactions (JTA/JTS)" section of the forum. Maybe post a questions there, ensuring you give the URL of this question here too to avoid cross-posting.
    regards,
    Owen

Maybe you are looking for