Re-creatin​g graph annotation​s in diadem?

Hi,
I am currently going through the demo version of diadem, and am impressed with it's reporting capabilities.  I have an application where I am automatically placing graph annotations during my test, then when I save the .tdms, I store the annotation information (index, name etc) in groups named "annotation01", "annotation02" etc, to the tdms file.  Currently, I have a separate labview utility in which I load the tdms file, and place the annotations back in the graph, so I can post process the data and see the annotations.  It seems that if diadem can display text over graphs when viewing the data, I may be able to make a script to place these annotations using diadem.  Is diadem capable of this?
Thanks
David J.

Hi David,
Sorry, I got lost in all those "AnnotationArrayElement" Groups.  You're right, your first Group has two data channels, and I can also graph those in DIAdem.  But all your label information is stuck in Group properties, and this is the information I was referring to that should be written to Channels with the "TDMS Write.vi".  I've written a DIAdem VBScript to reorganize your TDMS file into the structure I think is ideal for your data and am attaching a representative TDM/TDX file as well as a picture of what the labeling could look like.
One problem I ran into when doing this was that I didn't find the label texts.  Your first attached image above showed text event labels on the LabVIEW graph, but I don't see these texts anywhere in the TDMS file.  So what I did instead was to pretend that the "Index1" property was the text label to display.  Also, you have 2 separate XY coordinates in each "AnnotationArrayElement" Group, I just randomly picked the "Position" properties instead of the "Label_Offset" properties.  Why are there 2 sets of XY coordinates as well as the value index (triple redundancy?), and how should that information be translated into the desired XY coordinate to display the event marker or label?
Finally, you have several Groups that just contain set up properties-- I'd strongly recommend you fold all those properties into the same data Group that has your measured data arrays-- that will make for much better DataFinder querying down the road.  I also found a "Sample_Rate_Hz" property in one of the Groups, so I used that to turn your "Battery Current" and "Phone Voltage" channels into waveform channels in DIAdem, and I added unit assignments of "mA" and "V" respectively.  But if they were waveform channels in LabVIEW you should have just wired the waveform up to the TDMS Write.vi and they would have loaded into DIAdem as waveforms automatically.  As a result, I scaled the "PostionX" property from X value to Time value.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
Attachments:
david_jenkinson New.zip ‏2676 KB
Event Labels.pdf ‏69 KB

Similar Messages

  • Change Font and Size of Graph Annotations

    Just learned a cool little trick from Christina Rogers about how to change the font and size of a graph annotation after I left a comment on her blog (if you are unsure how to create a graph annotation, check LabVIEW Help).
    With the Cursor Legend selected, use the Font Dropdown on the toolbar to select the font you want for the annotation. Apparently, annotation and cursor text on the graph inherit the font of the Cursor Legend. If you do not like how the Cursor Legend looks after you have changed the font, you can make it invisible again (I have never shown the cursor legend in final UI products... and I have never used "Hobo Std" in final UI products...).
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    Here are two Ideas you may be interested in if you're looking at this thread:
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Customized-Fonts-for-Graph-Annotation/idi-p/1073784#M4...
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-Line-Width-and-Line-Style-to-Cursor-List-Property/... 
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Graph Annotations - Major Bug !!!!!

    I am using annotations on a NiGraph control(2D, single plot chart). I update the X and Y coordinates of specific annotations using m_Graph.Annotations.Item(item).Caption.SetCoordinates(... , ...)
    this is done around 3 times per second. Each call to SetCordinates(...,...) causes a memory leak!!! Over a period of time my application uses up all system memory. I have validated this bug by running the National Instruments Annotations example and pressing the 'Generate Waveform' button whilst monitoring the memory usage using NT's Task Manager. Your example also leaks memory each time the annotations are repositioned !!!. Each time my graph is scaled X or Y (I use a slide control for this purpose) I reposition all annotations so they
    fit nicely in the view port of the graph. This operation generates many calls to the m_Graph.Annotations.Item(item).Caption....etc) and subsequently leaks memory at a vast rate. Graph annotation are the cornerstone of my application and I am very concearned that due to this bug my application is unusable.
    I would appreciate any help on this matter.
    Shaun

    I must disagree with your answer. I feel that the discussion forum the ideal place to warn engineers around the world of the problems with your software. This posting could save developers such as myself from developing a, at present, useless (and expensive) application. I did indeed request support and reported this bug to National Instruments (UK). Unfortunately they had no knowledge of it and could not help me any further but thanked me for pointing it out and advised me to “Watch the website for future Measurement Studio Updates”. As the Product Support Engineer for Measurement Studio and LabWindows/CVI I feel you answer was far from helpful, only pointing out this bug has been verified. Information such as possible work arounds, new
    version release dates or patches would have been useful. Perhaps even helpfully passing my details to one of your Technical Engineers so we might arrive at a solution. I would have rated the answer 0.5 stars but there was no icon to click.

  • Graph Annotation Fonts

    I have several annotations that I am adding to a graph.  I would like to align their left side.  Annotation text is center justified.  Is there a way to set the justification?  If not, I can calculate the number of characters and pad the back end with spaces to bump the left side out.  But so far, I haven't gotten this to work either because the font is not a fixed width font.  What font setting do the annotations use?  In other words, I am willing to change the fonts of other things in order to also change the font of the graph annotation, but I kind of need to know which other font to change.
    Thanks,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]
    Solved!
    Go to Solution.

    Here is the VI that I created to do padding.  It should make the separator be in the middle of the name (where the position is).
    Message Edited by Bob Y. on 03-11-2009 10:45 AM
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]
    Attachments:
    Align Annotation Image.GIF ‏25 KB
    Align Annotations.vi ‏13 KB

  • Graph annotation bug ??

    Hi,
    I have encounter the annotation error on graph again.  And this time, I have upgraded my LabVIEW to version 8.6.
    Some of the points is perfect, but some of the points, pointing to the correct x-coordinate but the label seem gone far away. 
    Here I attached the screenshot, and the VI.
    Thanks for your time. Any idea or comment please leave here. Thanks again. 
    Message Edited by engwei on 01-21-2009 02:42 AM
    Attachments:
    graphCrazy.vi ‏43 KB
    graphcrazy.JPG ‏83 KB

    Yes, expression evaluation can cause these behaviors and the script uses them extensively. Nothing wrong in that regard. The rest is unclear because you made your screenshots useless by clipping out the important info like the property names. Also full system info,exact graph editor options and all that will be required.
    Mylenium

  • Plotting Category Graph in DIADEM

    Hello All
               I have a basic question in DIADEM 10.2 since I am new to this software. I want to plot a category vs value graph in DIADEM.
    In more clarity, data type of X axis should be in Text and Y axis should be in Numeric data type. Is it  possible in DIADEM or any other alternative way to plot such graph?. If question is already answered in forum please send me the link. The example plot shown below will picturize my requirement..
    Thanks in Advance ...
    Kind Regards
    Rigil kumar
    Solved!
    Go to Solution.

    Hi Rigil,
    DIAdem can do this, though it's not obvious unless you know where to look.  Actually in DIAdem 11.0 and beyond (which goes Beta on April 1, 2008) you can just drag the text channel and the numeric channel onto a new graph.  In prior versions you need to drag the numeric channel by itself onto the graph-- this will plot the numeric channel against its index (1, 2, 3, ...).  You then configure this curve to display vertical bars.  Then you need to drag the same numeric channel onto the graph again, and this time configure this second curve to be "Line and symbol".  Look in the "Curve parameters" dialog of this second curve, select the "Labels" tab, then the "Text" tab, then check the "From channel" checkbox and select the text channel to pull the X axis labels from.  You then need to click on the "Position" tab and choose "At the X coordinate of the curve point with a fixed Y position".  Finally I'd suggest setting the Y offset to -5 (vertical offset, measured in %, relative to the X axis).
    Whew!  You can see why we wanted to make that easier.  Here's an example that does this and also rearranges the numeric values in descending order, as they appear on your graph.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Pareto Text Chart.zip ‏20 KB

  • How can I change annotation font and/or size?

    I would like to change the font of the graph annotations. I know how to change other parameters of the annotation list, such as color, type, visibility etc. But there seems to be no option to change the font or at least the font size.
    Thanks!
    Message Edited by Filipp on 01-29-2007 02:33 PM

    This is a very old thread, but in case you stumble across this thread wondering how to change annotation or cursor fonts, it is possible.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Display sample values on a graph

    Hallo!
    I`ve got a problem with a graph, the thing is I really need to have displayed Y values of the samples on a graph. There is a possibility to make a comments (as on a pic attached) but I need the vals instead. Any ideas? Thanks for the trouble,
    greetings!
    Solved!
    Go to Solution.
    Attachments:
    bild.jpg ‏37 KB

    Dear Aleph.ka,
    here is an example of what you might need. For further documentation please refer to the description of the applied property node (Annotation List):
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvprop/waveformgraph_annot_list/
    I hope this helps.
    Regards,
    Adam Cseh
    Applications/Systems Engineer
    National Instruments
    Attachments:
    graph annotation.png ‏32 KB

  • Cursor and annotation default color

    Hi,
    I am looking for a way to change default color for graph annotations and cursors. The default color is a bright yellow. I am using white background graphs and they are almost invisible. Since I did dot find a way to change the default color, I looked for a way to detect that a cursor or annotation was placed on the graph but there is no such events. Right now, the only way I found to solve the problem is to read periodically the annotation and cursor lists, and change the colors of the found cursors to black. However, this solution consumes precious CPU tile on my 500 MHz Geode.
    If there was a way to simply  change the default color, that would be the best solution.
    Anybody has an idea about how to do it?
    Al Capote
    Al Capote
    Certified LabVIEW Architect
    Solved!
    Go to Solution.

    Hi Al,
    I do something similar in one of my
    applications, where a user can add cursors. I hijack the add cursor
    event and set the cursor parameters before I add the cursor to the
    cursor list.
    This isn't the same as
    setting the default colour and I'm not sure how much CPU time it would
    save but it may be worth a go.  Make the cursor definition cluster a
    typedef.
    I know the build array may be a problem, but this is just a quick fix 
     Dave
    Message Edited by DavidU on 10-06-2008 12:29 PM
    Attachments:
    CursorColour_BD.png ‏7 KB

  • Chart annotation

    After some research, I've found a lot of posts asking about annotating on a chart and the general response is "you can't, use a graph".
    So here's my situation that I would greatly appreciate some guidance on.  I have an accelerometer that outputs 6 channels.  Four are the x, y, z, and total axes.  The other two channels are values that correspond to motion.  LabView's chart display has proven to be the exact visual that we want.  See the attached image of the chart set up that is precisely the way we want to see the data as it comes off the accelerometer.  The four accels (x, y, z, and total) are grouped together in the top plot while the two motion channels each have their own plot (this was done using a cluster and property node).  All of the plots are attached to the same scroll bar at the bottom.  The ability to scroll all the plots simultaneously on the same scroll bar is key here.
    The problem is I need to be able to mark events on the chart.  The accelerometer will run for a long time and I would like to be able to mark on the chart when we started driving on a bumpy road and when it changed to a smooth paved road.  Stuff like that.  Ideally, these annotations would "stick" to a point on the chart.  So it would scroll with the rest of the data.
    I'm assuming that my approach thus far has been wrong.  I would greatly appreciate suggestions of how to approach this, since a chart does not seem to be the answer.  Although I would very much like to retain those qualities of a chart that I mentioned above.  If it matters to anyone, the data is coming in via a serial stream that I parse and turn into 6 individual values that are then fed into the chart.
    Thank you!
    Attachments:
    accel_chart.png ‏52 KB

    Dear Dan,
    It seems like you have two options -
    1. Continue using a chart and create a bar notification system with legend (able to maintain current chart formatting, but may be more difficult to read). - see Altenbach's post (thanks!)
    2. Modify a graph so that it appears like a chart and use the graph annotation function. - see this Dveloper Zone Article. It refers to modifying an XY Graph so that it appears to be an XY Chart, but could be modified for a graph that would have the same formatting as in your screen shot.
    dan.laks wrote:
    I'm assuming that my approach thus far has been wrong.  I would greatly appreciate suggestions of how to approach this, since a chart does not seem to be the answer.  Although I would very much like to retain those qualities of a chart that I mentioned above.  If it matters to anyone, the data is coming in via a serial stream that I parse and turn into 6 individual values that are then fed into the chart.
    Based on what you described, it sounds like option 2 might be worth pursuing, if you are willing to do the custom coding required to make it work.
    Joey S.
    Software Product Manager
    National Instruments

  • Graph Paper Templates Available

    Hello everyone.
    I just wanted to share some graph paper templates that I converted from Microsoft office. Free of course, modify them to your needs.
    Follow the link below:
    Free Graph Paper Templates for Numbers

    Try right-clicking on the graph in VB/VC++, click on "Properties ...," then look for a tab that says "Annotations." To see examples of how to add annotations programmatically, look in the following subdirectories of the Measurement Studio installation directory:
    VB\Samples\UI\Graph\Annotations
    VC\Examples\Ui\Graph\Annotations
    - Elton

  • Annotation in CWGraph

    I want to put some notes on plots giving some information about plot, I didnot found any annotation feature in Graph so I have made a control array of textbox control on form and drop it on cwgraph.
    But whenever I use Zooming feature textbox not move,
    please help me is there any way to connect textbox to particular plot.

    Graph annotations was added as a feature of CWGraph in Measurement Studio version 6.0. I cannot think of a way you could attach a textbox to a plot.
    David Rohacek
    National Instruments

  • Scatter Plot Problem!!

    Hello everyone,
    I am quite new at Labview and I have a question regarding plotting 2d-array in a scatter plot.
    I would like to plot my data as a scatter plot, which I have done with the Waveform graph, and now I would like to find out the area with the highest density in the scatter plot
    and mark the area with a circle...is it possible in Labview to realize this?? I would be very thankful for every tips!
    Thank You
    Best Regards 
    Yun

    Yes it is possible.  You said you are using a waveform graph, wouldn't an XY graph be a better choice?  I don't know the data you are getting so a waveform graph might be the right tool here.
    In either case you'll need to define a length of X that you want to find the denses amount of points.  So say X=1 so then you will find all the points between 0 and 1 and count them, then 0.1 to 1.1 and count them, then 0.2 to 1.2 for the length of X on your graph.  Doing this in a For loop will make it easy, and then your output will be an array of counts for each section.  Find the maximum using the Array Max & Min function.  
    Then you can highlight the graph using property nodes.  You can use a cursor, or annotation, or a custom picture.  The easiest would probably be an Annotation and in the Example finder there is one called "Graph Annotations" that find the minimum, maximum, and average values for a graph and put an overlay on the graph.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Report 2D table spanning several pages

    I've created a report (using a script) that creates two 2D tables. The number of entries in each table depends on user input (timespan and number of channels), so I don't know how many pages the report will span across.
    Is there a way of automaitcally exapdning the report to the number of pages required?
    If not, what would be the best approach for solving this issue?

    Hi salte,
    Here's an example of what Walter is talking about that uses 2D tables instead of 2D graphs.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    Mfg Table Report.zip ‏41 KB

  • AM/PM does not import with csv files

    Hello All,
    I am loading various csv files into DIAdem using the DataPlugin Wizard.  My files contain time channels in the format 03/21/2011 01:32:24 PM or AM.  When the data is imported the AM/PM is lost so my time skips backwards.  After 12:59 when the data jumps to 1:00 and there is no AM or PM or 13:00 so I end up with a large gap in my data and the end of the data becomes the beginning.  I have tried the various date format options in the wizard and even tried typing in "pp" after the time.  I have also tried importing the data as txt and ascii.  Am I missing something simple?  Thanks for any insight!

    Hi SolarTech,
    I went ahead and wrote a quick DataPlugin to read your posted CSV file which has no file extension.  You say that you're using DIAdem 2011, but actually at the moment only DIAdem 2010 is released, so I'm assuming this is what you actually have.  DIAdem 2010 is the first version that supports automatic association of "no-file-extension" with a DataPlugin, and this is how I've set up the DataPlugin I'm attaching.  That means that once you detach the ZIP file and unzip it and then double-click on the "SolarTech_CSV.uri" file to register the DataPlugin, that you'll be able to just drag your extensionless (CSV) data files from the NAVIGATOR to the Data Portal to load them.  This also means that the DataPlugin won't work on any DIAdem versions prior to 2010.
    Your AM/PM info looks like it's importing correctly to me with the DataPlugin I wrote.  Note that by default DIAdem displays date/time values with 24 hour syntax, but you can configure date/times to display with AM/PM everywhere except on the axes of VIEW graphs.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    Attachments:
    SolarTech_CSV.zip ‏2 KB

Maybe you are looking for

  • Where do I find my Acrobat Serial Number? It's nowhere on the box.

    Hi there, I've been trying to licence my Acrobat Pro software, but I can't find the serial number on the box. I only have the barcode Can anyone tell me where I could find this, because I have about 5 days left on my trial version. Prema

  • Excel file not created while running application using executable on different PC

    Hi, I have created an executable and an installer for an application. In this application I am saving data to an excel file using a template. This works fine when I run using the executable on development PC. However when I deploy this application on

  • My iphoto wont load my pictures to iPhoto

    i havent had a problem importing my pictures but last time i had alot of difficulty. when i plug in my phone it usually says like loading like 20 out of 30 pics and then shows all of them and lets you import. well last time i fianlly got it to finish

  • Lsnrctl start/stop "message not found" errors

    When I installed 10g I selected a global database name of 'orcl.clearbean.com' and a sid of 'dev1'. Below are my environment variables, tnsnames.ora file and listener.ora file. I can connect and use the database, but I am getting errors messages when

  • How to impdp data only into a specific schema

    Hello, How to impdp Tables and Materialized Views only into a specific schema. Also, how to exclude certain tables in particular schemas from being imported. Thank you.