Refresh cursor value in a waveform graph

Hello, I am tryig to do a vi that can read PNRF files from perception and then it will analyze the data of the waveform, but I am having some problems with the reading of the data
After getting the waveform graph, I created an event of that waveform graph that would activate each time there is a cursor release, but it cannot work once the sequence reaches that point of the event.  I am working step by step on this vi, and after being able of having refreshed data I will do the same with a second cursor. Also, I cannot find the way to separate the waveformgraph channels into different displayed waveforms, is it because it is a waveform graph and not a waveform chart?
I am attaching the used vi
Attachments:
LabviewPNRF_Reader.vi ‏77 KB

I have simplified your vi just slightly. You dont need two while loops, two event structures, event structure timeout, sequence structure (read up on data flow using error terminals). I dont have access to the file you are reading so I have disabled that section with a simulated waveform.
As you can see the cleanup  has messed up your comments etc. sorry about that.
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community.
Attachments:
LabviewPNRF_Reader[1].vi ‏111 KB

Similar Messages

  • How can I get the cursor value from a waveform graph

     Is there a way to get the value of cursor position on the waveform graph so mathematical calculations be performed on those values. We can see the value in cursor legend, but can we extract those values for future calculations in the block diagram somehow.

    Right-click on the waveform graph icon.  Select Create>Property Node>Cursor>Cursor Position.  That spits out a a xy cluster for the current cursor position.
    If you have more than one cursor, you can either set up a loop and set the Active Cursor property node (right click the property node and select "Change to Write") or you can pull everything you ever wanted to know about every cursor with the Cursor List property node. 

  • Looking up the values in a waveform graph with a mouse click

    Hi,
    Does anyone know how to look up the values in a waveform graph with a mouse
    click but... without the cursor legend on, if i press in the waveform graph
    nothing happens, i must search my cursors and only then i can see the values
    of my signal data?! Isn't there any other way?
    Best regards,
    Thijs Boerée

    Dear Chad,
    I know of the function "bring cursor to center". I also figured out that
    when i use a property node of the cursor array of clusters, that i can see
    that some values change when i move the cursor (i can see the X and Y scale
    value change of the graph and also the values of the mouse pointer (in
    points due to screen resolution)) But in this cluster i can't set the mouse
    position. I allready made a VI where i can see the bounds of my
    waveformgraph and I have the Xscale (min and max) and the Yscale (min and
    max), with a linear fit i can translate my mouse position to X an Y scale
    values and when i click on my waveform graph the cursor go's to that
    position (property node of the cursor position), only disadvantage is that i
    only have the bounds of my plot area and not the position, i do have the
    position of my waveform graph but the plot area isn't allways in the center,
    if i could extract the position of the plot area i may find a solution to
    solve this problem.
    And to file a product question:
    I would like to see the function that with a mouse click a little menu
    appears and that there are options to for example set a marker on that data
    and when you right click on it, that there are options to remove it or to
    add comment, a 2D array could make a list of the different channels with
    it's markers (time stamps and comments).
    Best regards,
    And thank you for your help.
    Thijs Boer�e
    "Chad AE" schreef in bericht
    news:[email protected]...
    > Dear Thijs,
    >
    > Thank you for contacting National Instruments.
    >
    > To address your question, there is no direct VI, command, or property
    > node that will allow the cursor snap-to-mouse functionality.
    >
    > I notice a problem you may be occuring is trying to find where the
    > cursor is on the graph. If this is an issue, you can select Bring to
    > Center from the Formatting Ring on the Cursor Legend to move the
    > cursor to the center of the graph.
    >
    > Let me know if you have any further questions or if this does not
    > resolve your issue, as I would be happy to file a product suggestion
    > so that LabVIEW is improved in future versions.
    >
    > Thanks again and have a great day!
    >
    > Chad AE
    > Applications Engineer - National Instruments

  • Cursor name position in Waveform Graph

    I lost the cursor name in the waveform graph, after programmed the cursor positions.
    I enabled 3 cursors, shown the cursor names, and programmed their positions in my VI. After running the VI, all cursor names are gone. I believe they are moved to somewhere out of the plot range due to LV malfunction. I cut and copy the graph to the VI attached, and enabled a new cursor, which looks good.
    I need to get the lost cursor names back (manually is OK). I also want to know how to avoid this.
    I am using LV 7.1 under Win XP Pro.
    Attachments:
    Study_Missing Cursor Name.vi ‏71 KB

    I have created a test vi that could generate this problem. I generated a waveform graph and label each peak with cursor name. Then I copied the waveform graph and paste to form another waveform graph 2 in which the cursor name is gone even the show cursor name is still enable. I have not been able to find the cursor names from the waveform graph 2.
    I am using labview 7.0
    HMP
    Attachments:
    test.vi ‏60 KB

  • With two cursors on just one waveform graph, how can I acquire the X values of each cursor to use them in other functions?

    I can get the x values of each function to display on the front panel with no problems, but I have not been able to acquire this information from the front panel.

    You use a property node to programtically retrieve the cursor values. For each cursor, first use the property Active Cursor to select (0 for the first and 1 for the second) and then the property Cursor Position:Cursor X. See the attachment.
    Attachments:
    cursor_position.jpg ‏212 KB

  • Waveform graph:move cursor automatically to know coordinate

    Good Day
    Can i know how to move cursor automatically in the waveform graph
    example: i have known Y =2 what is the value of  x is...
    which properties in property node should i use?
    attached also my vi (Coordinate of XY data using cursor)
    Best Regards
    Ahmad Tarmimi
    Solved!
    Go to Solution.
    Attachments:
    coordinate XY.vi ‏40 KB

    Good Day
    I was trying to program the cursor automatically but it does'nt seem working for me..
    Can you please advise me on this matter... 
    Attached also my study pupose vi
    Best Regards
    Ahamd Tarmimi
    Spoiler (Highlight to read)
    Attachments:
    cursor adjustment.vi ‏53 KB

  • Programmaticaly removing a cursor in a waveform graph

    Hi,
    Is it possible to programmaticaly remove an added cursor without having to
    acces the cursor menu on the waveform graph?
    Best regards,
    Thijs

    You can delete/add cursors programatically through the graph's "Cursor List" property.
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."
    Attachments:
    Delete_Last_Cursor.gif ‏4 KB

  • How to force waveform graph cursors to show Y value on more than one plot?

    Hello
    Is it possible to show more than one Y value on waveform graph cursors?
    Thanks in advance.
    Pawel

    Hi Dennis
    That is correct, on graph woth multiple plots I want to display multiple Y values of plots at the same X value.
    I know I can use property node to access cursor list etc. and this is how I have done it, but my question was rather if it is possible to force the cursor legend to display more than one Y value (as a native display). As a default it displays one value and you can choose which plot you want to stick to, but it would be a great feature to have possibility to expand cursor legend to display more than one value.
    The question has nice consequences. If it was possible, you could use a property node to export image of the graph, control sizes, or even simple "copy" data from the popup menu. Otherwise we need to "artificially" glue the exter
    nal controls displaying Y values if we want to export pictures, etc.
    But since you did not answer that I supose it is not possible, as I thought.
    thanks anyways.
    kind regards
    Pawel

  • How to add custom graphical features to cursors in Waveform Graphs

    Hi all:
    I´ve starting a project in LabView, in which I need to synchronise some events with a sound track.
    To do this, I tought that LabView would be the tool of choice, but now that I´m working on it, I
    found my self faced with some serious problems.
    What I want to do, is to represent a .wav sound file in a Waveform graph, and then use the cursors
    to mark some points in the desired places where I want things to happen, but, these events are
    going to be on during some period of time.
    So, it will be natural that some consecutive events might overlap in time, and I need to have
    some control on this.
    The best solution would be to have a rectangular strip attached to the cursors, with a lenght
    representing the exact time duration of the event.
    But this is only possible on my dreams, because I dont see any tools on LabView that aloud us to implement
    any extra graphical features on the cursors.
    But as I learned more about LabView, I found that a user can program blocks of software in C, to implement
    things that LabView does´nt do by default.
    And now I´m wondering if this could be the solution for my problem.
    Is it possible to add new custom features such as the one that I need?
    If yes, how?
    I have atached an image to give a clear ideia of what I need.
    I´ll apretiate any help.
    Thanks
    Attachments:
    LV Custom.jpg ‏40 KB

    No, you can't modify the cursors with either the native or C code. But I'm wondering if you can't get what you want with an XY graph instead of a regular graph. You can have multiple separate plots and some of them can be thick horizontal lines. I've attached a file with just some constants wired to an XY graph to show what I mean. Obviously, you'd have to calculate the values for the x and y arrays in your real situation. If you have to use a regular graph to display the .wav file, you could also overlay a transparent XY Graph on top. The other possiblity is to use a picture control to display your data. There's a couple of shipping examples (i.e. Waveform and XY Plots, XY Multi Plot) that show how data can be represented and Pen Attributes and Sub setting shows how you can draw lines of different widths.
    Attachments:
    Horizontal Bars.vi ‏30 KB

  • Waveform Graph passed as output of subvi does not refresh in the main vi

    I have a subvi that collects data in batches and displays the batch in a waveform graph. Then I make this waveform graph as output and call it in the main subvi to display the graph. The problem is that in the subvi the graph refreshed at each batch and plots the batch (which is how I want it to behave) while in the main vi it does not display anything.

    Your indicator is outside the while loop, so you wont get anything until the while loop finishes!
    Also your subVI is inside a case structure, the output of which is set to 'default if unwired' (which means empty array) so anytime your case structure is true, your values will be wiped. If this is intented, please excuse me.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • How do I Get the value from a mouse click - on a waveform graph?

    If I have made a plot into a Waveform Graph and later want to do a zoom of my data
    (Not zoom into the Waveform Graph, but regenerate the data). How do I read the mouse
    coordinate if I click on the graph window. I know how to put up the horiz and vert
    cursors but don't know how to just read the mouse click. I would really like to
    follow the windows standard that identifys a rectangle by clicking and draging and then
    be able to read the corners of the rectangle. Thanks, Rick
    PS: Using Labview 6i

    I would recommend to 'translate' your graph in a picture and dislay it in a picture control (see picture examples in LV6).
    Once you did it, pictures have an extremely useful property called Mouse that returns the mouse coordinates and click events when you place the cursor on the picture.
    By this you can re-arrange the graph on picture appearance.
    There are also other methods such as using a Window's API that returns the mouse position referred to the whole screen window, but I believe this would be much more difficult to implement.
    Let me know if this was clear and if you need an example vi.
    Good luck,
    Alberto

  • Transition measurement vi cursors displayed in waveform graph are moving outside of scale

    Using a waveform graph to display pressure over time. I wanted to be able to calculate the fall time of the pressure over time so I'm using the Transition Measurement vi. I copied exactly what was in the example for transition measurement inside help and it is correctly determining the falling transition time but I am having a problem with the cursors on the waveform graph. I should be seeing a set of green vertical cursors marking out the fall start time and fall end time like in the picture I've attached (capture2) like in the example. The problem is they both always start at 3.43 (capture1) and after each sample period they increment by one (4.34, 5.34, 6.34) The come right out of the bundle from the transition measurement output as those numbers. The period of the signal I'm interested in is always less than 2 seconds, so I never see the vertical cursors.
    I've tried substituting my daq signal with a sine wave generator and it does the same thing.
    The block diagram is in the first capture
    also I would be interested in finding out exactly how the numbers wired to the active cursor property of the property node for a waveform graph relate back to the actual cursors on the graph. Are they just automatically numbered starting with 0 from the top-down?
    Wayland
    Solved!
    Go to Solution.
    Attachments:
    Capture.PNG ‏44 KB
    Capture1.PNG ‏7 KB
    Capture2.PNG ‏29 KB

    Hi Wayland,
    The reason the cursors are always apparent in the example VI for the Transition Measurement.vi, is because the signal being generated is always resetting. So, the signal resets to a 'new' signal for the cursors to go over and therefore always remain in the somewhat same location. The Waveform Graph is also configured in such a way that it will not move or continue to show new data coming in, the data cursors have moved onto. So in your case, you will want to right click the graph and make sure "Ignore Time Stamp" is not checked/selected. This will make it so the graph keeps up with your incoming data and the cursors. You can check this in the example file by removing the True Constant going to the waveform generator and changing the time stamp option previously mentioned.
    In order to view the available cursors and their numbered position, you can right click on the Waveform Graph and select properties. In the properties window there is a Cursors tab, inside this tab at the top is a drop down menu that lists all of available cursors, indexed starting with 0 at the top.
    -Jake B.

  • Center the cursor on the Waveform Graph?

    I have a waveform graph where the user can adjust the scale on both the X and Y axes.  The "problem" that I am having is that if the scale's range is set too far from where the cursor is at, the cursor will be off screen and not selectable.  So, I am trying to center the cursor to the scale when the scale is changed or via a button.  Here is the code that I have written for one of the Cursor plots:
    Select Case setBlueCursor
    Case 1
    blueCursorPt.Plot = plotInlineTorque
    inlineTorqueMax = yAxisInlineTorque.Range.Maximum
    inlineTorqueMin = yAxisInlineTorque.Range.Minimum
    blueCursorStartY = (inlineTorqueMax + inlineTorqueMin) / 2
    blueCursorStartX = (XAxis.Range.Maximum + XAxis.Range.Minimum) / 2
    blueCursorPt.YPosition = blueCursorStartY
    blueCursorPt.XPosition = blueCursorStartX
     This code will center the cursor like I want but then I can't move the cursor after that as it is "stuck" at the position that I have coded it.  The problem appears to be with the last two lines of code here.   I do not know of any other way to do this though.  I have tried the "moveCursor" method but the end result ends the same way, with the cursor stuck in the center and can't move.  Any help on a solution?  Is there a better, easier way to do this?  I'm new to Measurement Studio and .NET. 
    Thank you

    This code works.  It appears that I was calling the subroutine that this code is located in over and over in another part of my program. 

  • Is it normal for a waveform graph to truncate arrays of values that are longer than others when displaying multiple waveforms on the same graph?

    I am reading back values of several waveforms that were saved to disk using the write to spreadsheet vi. Some of the data sets are longer than others eg. 35 seconds vs 45 seconds. All have the same sample rate.
    See the code segment below. If I select the larger files first then all the data will show. If I select a smaller file first the larger ones will be truncated to the size of the small file. I am using LV 7.0.
    Attachments:
    codesnippet.vi ‏41 KB

    I needed to make some grammatical/ nomelclature changes, But, Could not edit the previous post.
    so posting again
    "Thats because you are inserting into an array of a predefined size.
    For ex,
    When you try inseting a 1D array 'A' of 50 elements as row 1 of a  2 D array of 40 elements(in row 0 ), only only the first 40 elements will get insetred into 2 D array. You lose the last 10 elements of array 'A'
    To avoid this, I suggest you use XY graph( of course you have to create an x axis with the index of each element in the inserted array and plot on xy graph).
    Any doubts, do get back"
    regards
    Dev

  • Dispaying a waveform graph with control of the cursor in the document.

    I would like to be able to control the cursor when I save my waveform graph in html. I'm currently saving the graph through the report vi's

    I am not sure I understand your question. Do you want to simply control where the cursor is on the picture you are appending to the html report. If so then when you use the Append Control Image to Report VI it basically takes a snap shot at that moment and displays it. Therefore you just need to place the cursor where you wnat it before you add the image.
    To programttically control the cursor you will need to use property nodes of the Waveform Graph. A good start would be the property cursor>>cursor position>>all elements.

Maybe you are looking for