Dynamically change plot names

Hello,
How can I dynamically change the names of different plots on a single graph.  I would like to do it on the attached VI.
Thanks,
hiNi
Solved!
Go to Solution.
Attachments:
multiplot graph_for discussion[1].vi ‏25 KB

Use active plot and plot name properties. For example if you had three plots and an array of three names, you could do the following:
Message Edited by altenbach on 02-13-2009 10:41 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
plotNames.PNG ‏4 KB

Similar Messages

  • Dynamically changing the name of the .dll file to load in call Library

    Our current model is to use dll files as "plug-in" modules for instruments and a top layer test step calls the appropriate driver dll.
    For instance
    the TestStep is called with the kenmore.dll passed as a parameter so the kenmore.dll file is loaded, the functions are registered and the functions are called.  Next the TestStep is called with whirlpool.dll as a parameter now the whirlpool.dll is loaded the functions are registered and the functions are called.  This works very well in our current CVI/LabWindows environment.  Now we plan to work with LabView, we wish to retain this model (as DLL files, there are advantages in our model for us).  We have not found a way to load these dll files from LabView without hard coding the path and filenames in.
    Any suggestions on how to dynamically change the path in the Call Library module, or another suggested method of loading the dll via LabView?
    Thanks,

    John Stuart wrote:
    Our current model is to
    use dll files as "plug-in" modules for instruments and a top layer test
    step calls the appropriate driver dll.
    For instance
    the TestStep is called with the kenmore.dll passed as
    a parameter so the kenmore.dll file is loaded, the functions are
    registered and the functions are called.  Next the TestStep is
    called with whirlpool.dll as a parameter now the whirlpool.dll is
    loaded the functions are registered and the functions are called. 
    This works very well in our current CVI/LabWindows environment. 
    Now we plan to work with LabView, we wish to retain this model (as DLL
    files, there are advantages in our model for us).  We have not
    found a way to load these dll files from LabView without hard coding
    the path and filenames in.
    Any suggestions on how to dynamically change the path in the Call
    Library module, or another suggested method of loading the dll via
    LabView?
    Thanks,
    As Ben has pointed out LabVIEW
    scripting may be a possibility but you are going with that in highly
    unsupported area. Also I happen to know that changing the library name
    of a Call Library Node through scripting has produced unsupported
    feature errors previous to LabVIEW 7.1 eventhough the method was there.
    And LabVIEW 8 hides the whole scripting business behind the license
    manager.
    Another approach at least if the different DLLs do not change to often
    thier functions and parameters would be to create a wrapper DLL. Have
    it a method that loads the desired DLL and links its functions to
    internal function pointers. Then when calling the actual function entry
    points just redirect directly to the correct fucntion through that
    function pointer. Since you are already working in CVI creating such a
    DLL should be only a matter of taking out a little bit of your already
    existing code and put it into a DLL project.
    Rolf Kalbermatter
    Message Edited by rolfk on 04-12-2006 07:40 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Dynamically changing the name of a page item

    Hello,
    I'd like to dynammically change the name/label of a page item depending on the user who logged in to the system.
    On my home page, there's a navigation region with some list entries in it. Currently its title is "Configuration".
    If a specific user signs on, I'd like to change that title to "Reporting". How can I manage to implement such a behaviour.
    I tried to get some results by using dynamic actions, but I couldn't get it working.
    Thanks for your help in advance!

    >
    I'd like to dynammically change the name/label of a page item depending on the user who logged in to the system.Create a hidden item called PXX_LABEL (where XX is your page number).
    Set the value of the hidden item via a PL/SQL process (when page loads, or when user logs in, or whatever).
    In the "Label" field of the actual item, enter &PXX_LABEL. (notice the dot at the end).
    When running the page, the label will dynamically be set to the value of the hidden item.
    - Morten
    http://ora-00001.blogspot.com

  • Dynamically change icon name of push button

    Hi,
    I would like to ask how to dynamically change the icon name attribute of a push button in dialog programming. What is the syntax for assigning an icon name during runtime?
    I am currently doing a multiple selection function for KNA1-KUNNR.
    Initially, the icon name is ICON_ENTER_MORE. When the user picks up more than one customer, it should automatically change to ICON_DISPLAY_MORE. How can I do this?
    here's the code i currently have:
    DESCRIBE TABLE kunnr_ran LINES l_kunnr.
    IF l_kunnr > 1.
          g_add_multiple = 'X'.
      BT_MULT_CUST-icon_name = 'ICON_DISPLAY_MORE'.
    ELSEIF l_kunnr = 1.
         CLEAR g_add_multiple.
      BT_MULT_CUST-icon_name = 'ICON_ENTER_MORE'.
    ENDIF.
    The name of my pushbutton is BT_MULT_CUST.
    The code in ** is not correct. I don't know the syntax in SAP. But that is how it is done in VB for example.
    Thank you.
    che =)

    If you have not found your answer already, please try the following:
    1)  In screen layout painter: for the pushbutton in question (i.e. pb_multi_select), mark the "Output field" on the program attributes tab in the attributes window for the pushbutton.  Make sure that its visible length is at least 2 too.  This will "gray out" the "Text" and other fields.
    2) In the TOP INCLUDE of the module program:  add a variable for the pushbutton that is of type "icons-text" and don't forget to include <icons>.  Below is an example
    INCLUDE <icon>
    DATA: pb_multi_select TYPE icons-text.
    3) In a module called in the PBO modules for the screen that needs its button changed, call the function "ICON_CREATE" and pass at minimum the name of the icon and the field that you specified in step 2.  Below is an example using the icon "ICON_DISPLAY_MORE", "ICON_ENTER_MORE", and a flag variable "MULTI_SEL_INFO_EXISTS" that indicates if any multiple selection information has already been entered.  It would be set by the program (not automatically, but by coding) prior to the "IF" statement:
    IF multi_sel_info_exists = 'X'.
      CALL FUNCTION 'ICON_CREATE'
          EXPORTING
             name = 'ICON_DISPLAY_MORE'
          IMPORTING
             result = pb_multi_select.
    ELSE.
      CALL FUNCTION 'ICON_CREATE'
          EXPORTING
             name = 'ICON_ENTER_MORE'
          IMPORTING
             result = pb_multi_select.
    ENDIF.
    You can change the button as you see fit with multiple different calls inside of "IF" or "CASE" statements.  Please see documentation for "ICON_CREATE" for other parameters.
    Hope this helps,
    Brian

  • [Awesome] dynamically change tag names?

    Is there a way to change the name of a tag displayed in the tag box widget during run time?, I dont really want dynamic tagging, but it is a solution if none other exist.

    There's two patches for awesome that provide dynamic tagging; Eminent and Shifty.
    See on the Archlinux wiki page for awesome: https://wiki.archlinux.org/index.php/Aw … ic_tagging
    EDIT: Ah, I see that you'd like to rename existing tags... don't know if there's a way to do that, but it could be a feature of either Eminent or Shifty.
    EDIT2:  Aaaaand, it looks like Shifty offers a tag creation/rename prompt in the task list, so that should do what you want
    Last edited by snk (2011-09-05 18:09:57)

  • PI/XI transport dynamic change of names - MESCLNT005 - MEQCLNT005 - MEP

    Hi,
    When transporting directory objects the auto generated channals GeneratedReceiverChannel_IDoc for sending idocs to from and to R/3 is normaly changed from MESCLNT005 -> MEQCLNT005 -> MEPCLNT005. But now when transporting a scenario this dynamic change is not done. What can be wrong?
    BR
    Claes

    Hi,
    The problem is that they are not renamed. They keep the MESCLNT005 eaven when it is transported to the quality system. But when transporting other scenarios it gets renamed from MESCLNT005 -> MEQCLNT005.
    Thank you for trying to help.
    BR
    /C

  • JSF dynamically changing components name or id.

    I have a question that I am trying to find an answer.
    I have a dataTable setup and in each column, I have a select table.
    I would like to give these components specific names for each occurrence. For example:
    <h:dataTable id="serverTable" rowClasses="data" border="0" value="#{serverBean.serversData}" var="server">
    <h:selectOneListbox id="testCS" value="#{server.newImageName}" onchange="setDescr(this)" size="1">
    <f:selectItems value="#{server.imageList}" />
    </h:selectOneListbox>
    </h:dataTable>
    I want to do something list change the above line to
    <h:dataTable id="server.serverName" rowClasses="data" border="0" value="#{serverBean.serversData}" var="server">
    How would I do this..
    I would like the output to look like:
    <select id=�brasil�>

    </select>
    <select id=�oreo�>

    </select>
    Instead of
    <select id=�serverTable�>

    </select>
    <select id=�serverTable�>

    </select>
    Thanks
    Eric

    i think the easy way to do this would to use the forceID myfaces component
    http://myfaces.apache.org/tomahawk/forceId.html

  • How to dynamic change Step Name?

    I have a step inside For Loop. I would like that step have different name related to loop Number. how do I do it?
    For example
    In Test stand,
    for i=0; i++;i<10
    stepnamei
    end
    So in this way, If the step fail, I could know on which loop it fails.
    Please advise on it.

    Hi,
    try this example
    link
    Regards
    Ray FarmerMessage Edited by Ray Farmer on 04-04-2005 07:47 AM
    Regards
    Ray Farmer

  • Dynamically Changing the Name and length of the Selection Screen Fileld

    Dear Friends,
    I want to incorporate a filtering option in my program,when the user selects the
    column of a table control and clicks on filter option it has to open up a
    new selection screen in which the selection option would be the selected
    column.
    for e-g if the user selects material the selection option would have the
    characteristics of mara-matnr.
    answers will be rewarded.
    Thx.
    Sreeni

    Hi,
    Check this link, very useful and good one too.
    http://sap.ittoolbox.com/code/archives.asp?i=10&d=2919&a=s
    this will help you i guess.
    Feel free to revert back.
    --Ragu

  • Changing tab name in one component that used in different applications -FPM

    Hi gurus,
    I have an FPM component configuration, which have different tabs.
    This component i have used in different applications.
    I just want to know how can I dynamically change the name of one tab in different applicatins?
    I want to change only the tab name. content in the tab is same.
    For eg. If I open a Bid from Rfx, it should show "Rfx Information" as one tab name. But if i open a bid from Auction, it should show 'Auction Information'.
    Content in this tab is same.
    Is there any way to do that? Or shall I create different component config. for bid to use in Auction application  and another one for RFx application?
    Thanks,
    Poduval

    Hi, 3Sherill3. This may help:
    http://www.macupdate.com/info.php/id/16620

  • Dynamically change column heading without Dashboard Prompt

    Hi All,
    My requirement is change the column heading dynamically in a report. I have achieved this through setting the presentation variable to the dashboard prompt.
    I have 5 columns in the dashboard prompt. Out of these 5 columns, I want to use only 1 column as dashboard prompt.
    But still I want to dynamically change the column heading of the other 4 columns based on the only 1 column selected in the dashboard prompt.
    Is there anyway to achieve this?

    You need to have some logic to change other 4 columns based on 1 selected column.. where you want put that logic?
    BTW: Check these
    http://total-bi.com/2011/03/obiee-dynamic-column-headings/
    http://rampradeeppakalapati.blogspot.com/2012/02/dynamically-change-column-names-in.html
    If helps mark or also update back if you are thru with this.

  • Waveform Plot Name in Legend Reverts to default even if I change it with a Property node

    I have a waveform chart where I am trying to name the plots different titles, so that they appear in the plot legend with a meaningful name, rather than 'Plot 1', 'Plot 2', etc.
    However, no matter what I do, if I try to change plot 0's name to anything, the plot name changes for a split second, and then reverts to the name that it originally had.  I can succesfully control the names of the other plots, but not plot zero.  I have enclosed the VI with the graph control, which I cut and pasted from another VI. 
    It seems that the properties of this control (though it is not  a custom control) are set, and that these settings take precedence over the Propery Node Instructions.  Is this a bug, or am I missing something.
    Try it for yourself.
    Wes
    Wes Ramm, Cyth UK
    CLD, CPLI
    Attachments:
    Untitled 1.vi ‏14 KB

    Ignore attributes help says;
    If FALSE (default), the plot names in the plot legend automatically adapt to the plot names in the dynamic or waveform data attributes. If TRUE, the plot names do not adapt to the dynamic or waveform data attributes. Change this property to TRUE if you want to change the plot names. This property applies only to graphs and charts with dynamic or waveform data.
    Trying to help,
    Ben
    Message Edited by Ben on 11-28-2006 07:46 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    untitled.JPG ‏86 KB

  • Dynamically changing the flatfile name..

    Hi friends,
    I 'm Getting data from 30 Flat files...all are with same structure but different data.. .. all these files are now in Application server...
    now i want to upload data into with a single DataSource and to ODS with process chains..
    so, how can i dynamically change the file name in Data Source level.. i saw previous threads.. in that.. through Routines.. we can solve this problem.. but I dont know ABAP code... so, can any one plz give me the exact code.. what i have to write...exact coding..
    <b>
           I already post this question in forums.... but evry one gave different options.. some  one gave the function module..
    BAPI_IPACK_CHANGE    and BAPI_IPACK_START.
      and some one gave  other function module.. like .. EPS_GET_DIRECTORY_LISTING
    i tryd for All these options.. but i'm not getting the exact solution... even i'm unable to pass the parameters also.. beacuse.. in that function what parameters can i pass....</b>
    can u plz suggest me the solution..
    Thanks
    Babu

    Hi  Friends,
      for the above requirement i had write the bellow coding in the routine.. it is working.. but the problem is.. it was loading  only  the last file..(30 th file  data only..)
    data : z1(50) type c,
             z2 type c,
             z3(50) type c,
             z4(50) type c.
             Z2 = 1.
       Do 5 times.
              z1 = 'C:\Documents and Settings\e10035\Desktop\'.
              z3 = '.csv'.
              concatenate z1 z2 z3 into z4.
              p_filename = z4.
              z2 = z2 + 1.
        Enddo.
    SO, CAN YOU PLZ SUGGEST ME.. when ever the file name was changing in the loop.. that automatically should load into the  PSA ..
    plz... plz.... help regarding this..
    Bbau

  • Change properties inside dynamic stack plots

    Is there any way in LabView 8.2 now to change the properties of indicators inside an array or cluster?  I want to change the properties of the waveforms inside DynamicStackPlots (http://zone.ni.com/devzone/cda/epd/p/id/3024).  I see on this forum back in 2005 this was last discussed.  I have also tried making a cluster of waveforms (instead of an array of clusters) from which you can at least separately access properties (allowing you to make specific waveforms not visible, yielding dynamic stack plot functionality).  But you STILL cannot modify, say, the plot min range, label, scale... etc.
    All ideas welcome!
    Thanks,
    Adam

    Hi, Adam.
    This question seems to pop up every once in a while. The answers are different for arrays and clusters:
    Clusters
    You can access the properties using an explicitly-linked property node (IE, one that takes a control reference as an input). You can obtain a reference to the controls in one of two ways:
      - Right-click on the control (inside the cluster) and select Create»Reference.
      - Create a property node for the cluster and access the Controls[ ] property. This will give you an array of references to the controls inside the cluster, and you can pass that into the explicitly-linked property node. (You may have to use a To More Specific Class VI if you want to access properties that apply to only graphs.)
    Arrays
    Since arrays are for holding a large quantity of indentical data types, the properties for all elements of the array must be the same. If you really want to sidestep this functionality, however, you can always create an array of references to controls. If you wanted to do that, you'd have to create all your controls individually and then create references for them one by one. Once the references are created you can pass them into a Build Array VI. To alter the properties of any particular control, you'd use an explicitly-linked property node and pass in the appropriate reference.
    Let me know if any part of this isn't clear. Have a nice evening!
    Message Edited by sarahk on 10-25-2006 04:35 PM
    Sarah K.
    Search PME
    National Instruments
    Attachments:
    clusterControlReference.GIF ‏6 KB

  • Can I detect a plot name change event in a plot legend?

    I'd like to update a configuration file if a user changes the name of a plot in the plot legend.
    The events I see for plots are:  value change, autoscale range change, plot attribute change, and scale range change.
    Plot attribute change does not seem to include anything that looks like plot name, and the others obviously don't contain that info either.
    Is there any way to grab this event?
    Thanks.
    Solved!
    Go to Solution.

    Jordan,
    First off, remember that there is no single way to code anything, so I can offer one possible solution for you, but it is definitely not the only one.
    LabVIEW does not have a property to check if the name has been changed through an event structure, but you can create your own events that LabVIEW can read. I found this really good document that might help you. Read through this and mess around with it and see if it gets you anywhere: Creating User Events
    Once you get it to trigger the proper case, then its just getting that case to update the file you would like.
    Another possible workaround, although not ideal, is to create a string control and have that be on top of the plot name. You would be able to then produce an event from that string changing value.
    Hope this helps.
    Douglas C.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Album Cover problem on 160 GB iPod Classic

    Ever since I got this iPod I have had an issue with the album covers showing on the iPod. At first they would show fine everywhere, then they just started showing fine in the lists. Once I would click on a track the album cover would look similar to

  • Plant specific purchase organization - Reg.

    Hi Gurus, I have one qurrey. That is "Our client has two company codes 1000 & 2000. In company code 2000, there are 4 plant codes, which is including Head office as one plant. We created one purchasing organizaton related to company code 2000 as a ce

  • Validating Screen Fields in FD32 - BTE 1520

    Hello everyone, I have a requirement to make various checks before saving in FD32. For example I want to make sure that KNKK-DBEKR will be less than or equal to KNKK-KLIMK. I have searched SCN and I have implemented BTE 1520 (you can see an example t

  • Serialization of DOM Tree+calling POST method in servlet

    Hi all, I am trying to serialize a DOM tree and send it from an applet to a servlet..I am having difficulty in calling the post method of the servlet..can anyone please tell me how the POST method in the servlet is called from the applet...I am using

  • When menu item is clicked i'm unable to call user form to my b1

    hi every one, i'm new to b1 sdk. i have written some code to handle menuevents. when an item on menu is clicked a form should open ...such that i have written some code which is shown below....but when i'm debugging ..after entering the control into