Numeric indicator label used to create plot legend

When I create a channel for data (numeric indicator) it carries along with it a name for the value.  So for example if i am reading 8 temps, I name them temp #1, temp #2, etc.  How can I have those names carry through into the plot legend?   Thyey only show up as plot 0, plot 1, etc.
Does it matter if it is a chart or graph?

What makes you assume that some scalar indicator label information would flow upstream and somehow end up as plot labels?
All you need to do is write the desired plot names once at the start of the program, e.g. as in the attached modification.
You currently have duplicate control labels, so that's something you should fix.
Sorry, I don't have DAQmx installed, so I cannot help with the assitant. Still, maybe the attached can give you some ideas....
LabVIEW Champion . Do more with less code and in less time .
Attachments:
RTD Bearing ComparisonMOD.vi ‏74 KB

Similar Messages

  • Create a legend with VBS

    Hi,
    if I want to create an Textbox with VBS in a presentation, I can use this Code:
    Call GRAPHObjNew("FreeText","Text1")
       Call GRAPHObjOpen("Text1")
           TXTTXT   = "..."
           TXTFONT  = "Arial"
           TXTSIZE  = 4
           TXTCOLOR = "black"
           TXTPOSX  = 50
           TXTPOSY  = 95
           TXTRELPOS= "cent."
      Call GRAPHObjClose("Text1")
    Wich Code can I use to Create an Legend in an 2D-Axis Object?

    Hello Johannes
    I assume you have a 2D-Axis system.
    The easiest way to get the script you ask for is to press <CTRL-A> when you open the dialog box where you can make the setting. Then the complete structure will be recorded and can be insert in your script from the clipboard (or directly in the script if you start the recoding mode of DIAdem)
    If you have a Axis-system with the name "2D-Axis1", then use the following script to create a "free legend". For more parameters record the script and press F1 for more details about the variable.
    Call GraphObjOpen("2D-Axis1")
      '------------------- Swith legend on -------------------------------
      D2LEGDRAW        =1
      D2LEGTXTTYPE     ="Free text" ' "ChannelName" or other keywords
      D2LEGTXTFREE     ="My free legend"
    Call GraphObjClose("2D-Axis1")
    'redraw
    Call Picupdate()
    Hope this helps
    Winfried

  • Automatically labeling plot legend using XY Graphs?

    I want to plot:
    Time Amp
    1       2
    2       4
    3       9
    How do I get the legend to automatically say Amp, instead of Plot 0? I went to property node -> legend and I don't see any option
    that would read the "column" header and label the legend accordingly.
    In my example, the X array (Time) and Y array (Amp) are fed into Bundle which is then fed to the XY Graph input. The X array (1,2,3) and Y array (2,4,9)
    obviously carry no information about their respective column names (Time, Amp). So, the legend must read this information separately, but I don't know
    how to feed this information to the plot legend. 
    Solved!
    Go to Solution.

    You simply need a property node for "plot.name". You have only one plot, so the following is sufficient (of course you would replace the string diagram constant with whatever you read from the column header in the file)
    (If you have several plots, you would do it in a loop, setting the active plot from the iteration terminal, first, then writing the name)
    Since this is an xy graph, I would actually hide the legend and simply label the two axes according to their header. This can be done in a similar way with property nodes. See if you can figure it out.
    (Of course if the labels never change, enter them once manually and they will be saved with the VI. No code needed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SetPlotName.png ‏3 KB

  • How can I create a new label using Pages and Avery Labels products?

    How can I create a new label using Avery LAbels and PAges on an imac?

    Contacts prints to Avery labels.
    Otherwise just open the appropriate Word template from Avery's website, in Pages.
    Peter

  • How can i print a full page of mailing labels using the same contact in numerous times/my mailing address

    how can i print out a full sheet of labels using the same contact info numerous times, mailing labels

    Are you using DesignPro from Avery? You should.
    It gives you the option to print individual labels or all the same:

  • Can you use the value from a numeric indicator in a numeric control?

    Hi!
         I have to develop a code where I have to find the maximum value of a waveform and draw a line at 50% of the value. So I chose to find the amplitude of say 10 cycles of waveforms and found the maximum value out of the amplitudes. 
    But my real problem is, I have to use the maximum amplitude value that I get from the max. array VI and put it back in program to calculate the 50% value. 
    So is it possible to use the value from a numeric indicator and put it in a numeric control? Like in MATLAB or C, you give the variable a name and use it later to do any computations. Is it possible to do something similar in LabVIEW? 
    Solved!
    Go to Solution.

    Hi!
         Thank you very much for taking some time out. I have been trying to do this since 2 months and I am stuck right where I am.
    The situation is, I have to calculate the amplitude of the irregular waveform for a few trials and then find the maximum amplitude out of the trials and display a line at whatever % of amplitude the user chooses. I tried using property nodes but I am getting Error 1055 for some unknown reason. Then I decided to draw the line using DC offset but it turns out it calculates the amplitude each time and so the line keeps dancing everytime. Now my challenge is to have the amplitude calculated for say, 20 loops and then calculate the max from that. I ran out of ideas so I am posting here. I am using LabVIEW version 8, and I'll upload a few of my attempts. I hope I am not troubling you'll much.
    Attachments:
    amplitude display.vi ‏217 KB
    amplitude display 1.vi ‏148 KB
    Using property node.vi ‏56 KB

  • How can I put a numeric indicator into a case structure using VI scripting

    I'm using VI scripting and I'm trying to add a numeric indicator inside a case structure.  I'm able to add the case structure and the numeric indicator just fine, but as soon as I specify the case structure as the "owner" of the numeric (as opposed to the block diagram being the owner) I get error 1060.  Is there any way around this?
    Note:  The reason I am doing this is because this specific pattern (indicator in a case structure) will prevent a VI from being inlined when it is being built.  This pattern will provide no functionality in itself, it only prevents the inlining.  It is added to a larger VI which is use to initialize objects in a simulation, and there are many of them in the total simulation.  If they are inlined, it takes a VERY long time to generate the C code, and performance on this VI isn't an issue since it is performed only once at the beginning of the simulation.  The rest of the VIs do need to be inlined for performance reasons.  Therefore, I'm open to other options to prevent a VIs from being inlined if the "indicator in a case structure" cannot be performed via scripting.
    If any of this is unclear please let me know and I can clarify.  Thanks.
    Solved!
    Go to Solution.

    I now understand what you were saying about inlining a subvi.  I did as you said and made a subvi with a case structure and an indicator within it.  I use the New VI Object node to add that subvi to the slow-inlining parent VI.  Then I tried to inline it using the invoke node, but I got error 1399, which make sense.  Is this what you meant for me to do, or did I misunderstand?
    Also, I tried the ControlTerminal reference approach you mentioned earlier.  Unfortunately when I called the move method on the control terminal property and had the 0th frame of the case structure as the owner I got error 1060 again.
    I really appreciate your help.  Do you have any other thoughts?

  • Programmatically expanding label space in Plot Legends

    I know that manually expanding the Plot legend with the left corners expands the label area. How do I do the same thing programmatically? Changing the width property seems to add space to the right side.

    According to the Help File entries for those properties the size properties expand or contract from the right side. Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How can I create DVD Label using Photoshop Elements 10?

    How can I create DVD label using Photoshop Elements 10?
    Richard

    You can create the design for a DVD label in Create>More Options. Once you have the label set up, you would copy it to a template for the labels you plan to use. (The PSE template makes one label, while most printed labels are two-up.)

  • We are creating an Arabic language label using AI-CC, Is there a way to import the UTF-8 arabic text w/o coruption ?

    we are creating an Arabic language label using AI-CC, Is there a way to import the UTF-8 arabic text w/o coruption ?

    You can try this:
    http://helpx.adobe.com/creative-cloud/kb/change-installed-language.html
    It's possible to install another language on top of the language you already use. You need to switch your system's language to be able to use the other one.

  • Synchronizing a listbox and a plot legend

    Hello all,
    I'm working on some code where I would like to be able to select/deselect as many as 50 plots on an XY graph.  Because of the relatively large number of plot names, it makes sense to place them in a scrolling legend or listbox. 
    Problem is (as far as I know) the plot legend can't be used to *easily* make plots disappear and appear with a single click-- one must right click, go to colors, and select transparent, etc. then reverse the procedure to make the plot reappear.
    An alternative might be to use a list box 10 rows long as the master indicator, then use some of its properties to create a dynamic plot legend borrowed from a second hidden graph.  This plot legend would reconfigure its line/symbol colors dynamically based upon the where the user is within the scrolling listbox.
    One problem I've encountered is that the Label.ScrollPosition property will not write out to an indicator for me.  Please see the example code.
    Top row provides some feedback from the listbox, but not enough info to do the job properly.
    Any thoughts?
    Regards,
    Ted
    Solved!
    Go to Solution.
    Attachments:
    scrolling listbox Row numbers.vi ‏16 KB

    Hi to know the position of the list box element...
    try this...
    <<Kudos are welcome>>
    ELECTRO SAM
    For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
    - John 3:16
    Attachments:
    scrolling listbox Row numbers.vi ‏18 KB

  • Changing the Plot Legend (NonSequential Names)

    I've got a Chart that serves multiple purposes.  As such, the plot legend needs to change.  I've looked through the forums, and have found options that let me create a dynamic legend of the form (Name1, Name2, Name3).
    However, I don't want the labels to be sequential in nature.  I'd like to be able to define the legend as either (x,y,z) or (A1,A2,B1)
    Any suggestions?
    Thanks!

    You have the option to change the scale label through the property node, using that you can set any name you want. Is that what you are looking for?
    The best solution is the one you find it by yourself

  • How can I limit the vertical size of the plot legend?

    Hi all,
    in my program I use a waveform graph and its plot legend.
    My problem is that the vertical size of the plot legend increases out of my frame and screen if I add too many plots to the graph!!!!
    Is there a possibilty to limit the vertical size of the plot legend and/or to use a vertical scrollbar in the plot legend?
    I use LV 8.2.1 .
    Thanks
    daHans

    You can write to the "Active Plot" property node. The example given in the thread I linked to before shows using this. Did you take a look at that example?
    I'm only suggesting the alternative of an "Active Plot" control if you're trying to give the user the ability to manipulate one of the plots (like color, point style, etc). If you have a lot of plots, and the plot legend is too big, you can provide a numeric control where the user selects the plot, and then additional controls to set the properties for that plot. Not as intuitive as the plot legend, but if that's what you've gotta do, that's what you've gotta do. Attached is a simple example (LabVIEW 8.20).
    Attachments:
    plot.vi ‏21 KB

  • Start position on plot legend scrollbar

    If I right click on the plot legend I can show the index display and vertical scrollbar. When I move the scrollbar the index changes accordingly. Does anyone know how to programmatically find the value of this index so that I know which plot labels the user sees. I've tried looking at the property node but I can't see anything that gives me what I need.

    Thanks for your reply Rob.
    I was thinking that was the case. Sometimes it’s possible that there are clever little tricks hidden away in the set up screens. I’ve ended up now with my old method which looks very clumsy (see attached vi), I can make it look much better when I get the scroll bar position.
    I’ll follow up on the product suggestion though as it would be a very useful feature.
    Attachments:
    Scrollbar Demo.vi ‏52 KB

  • How do I programmatically change the plot legend names on my xy graph?

    I have a need to change the names/labels on my XY Graph's Legend at run time.  This is because plot 0 is not always the same set of data.  I have searched high and low for a couple days now to no avail.  The closest thing I've seen is overlaying a string over the plot legend, but I would prefer to do change the property of this box.  Any help would be appreciated.

    Hello Ben,
    with waveforms this also works for me fine. So where is the pitfall? (if always all works fine, one don't really gets experience)
    greets, Dave
    P.S. @ J.B. I used the Code Capture Tool from the Starware Thread, this made me so fast. If I could do, I would give it five stars each time I use it.
    Btw. would it be possible to programmatically give ratings with LV? Here it should be used. Thanks again to tst & the others
    Message Edited by daveTW on 06-14-2007 09:13 AM
    Greets, Dave
    Attachments:
    Example_FP.png ‏5 KB

Maybe you are looking for

  • Very Strange Network Issue With Two Guests on 2012 R2 Hyper-V Failover Cluster

    Hi all.  We're having a odd issue with two guests on our 2012 R2 failover cluster.   In a nutshell, if we shutdown a particular server (I'll call it Server A) another totally different server (Server B) on the same node loses it's network connectivit

  • Report 6i print problem

    HI, Please find the error message from an application using report 6i. "report background Engine has encountered a problem and needs to close, we sorry for inconvenience" .... Any help to fiix the problem, the printer accepts normal windows progs pri

  • Testing the File sender from local computer

    Hi Gurus, I know that this is a very low level question. I am working on a File-XI-IDOC interface. I wanted to keep the file on my computer. How to set the file adapter sender which can pick up the file from my machine. I have downloaded WS-FTP Serve

  • Itunes will not shut down on mac

    My itunes will not shut down when I close it out.  The itunes ball will bounce up and down and reopen itself. I am running 10.6.8 Snow Leopard and this has started in the last 3 weeks. I thought it was my blackberry software and had that removed.  It

  • Flex 4 states and using includein with actionscript

    Hello, How do you handle states and the "includeIn" tag in ActionScript? For example: var vGroup:VGroup = new VGroup(); var initialState:State = new State(); initialState.name = "initialState"; initialState.overrides.push(new AddChild(this, vGroup));