Add marker in waveform graph

Well guys, I have my graph, and my X-scale is 1sec
I want to add 10 markers on that
each marker in 100ms!
How can I make that?
I know how to add marker, but I have to add it with mouse... so don't help me with that
since I need some precision!
Thanks

I'm not certain that I know what you're looking for, but this might contain something useful to you.  The first property sets the format of the X axis as you described and the second sets the one-second range you mentioned.  Perhaps you could post a picture of what you're trying to do?
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
Attachments:
wfvrm.vi ‏24 KB

Similar Messages

  • 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

  • Add plots to digital waveform graph programmatically

    Hi Guys,
                This might be an easy one but I can't seem to find the right property. I'm adding "Plot Name" values for a each Plot in a Digital Waveform Graph. I select each plot with "Active Plot" property and name it. However if there are already e.g. 7 plots and I try to set eight plot active (i.e. 7 = Active Plot) I get an error cause this eight plot doesn't exist on the graph, and so can't be named.
        How can I add (or indeed remove) plots using property nodes?
        Thanks

    Hello,
    One thing to consider is the actual data the graph is receiving.  Choosing plot 8 in this case is perhaps attempting to choose a plot which doesn't exist in the data, which could be why you're seeing the error.
    Off the cuff, one thought might be to have the following "steps" take place when you want to add plots:
    on the appropriate action to create a plot, create a default data set representing that plot
    package that with your overall graph data so that the new plot exists in the data
    write that data to the graph, perhaps using the Value Signaling property (via a property node linked to the Graph)
    trap the graph's Value Change event using an event structure (possibly in a parallel loop) and update the plot name there (much like you are today - using a property node to first set the active plot to <previous value + 1> since you just added a plot, and then set your new plot name)
    Not sure what the rest of your application looks like, but hope this helps!
    Best,
    JLS
    Sixclear

  • 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

  • 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.

  • Memory leak in Waveform Graph?

    Either thier is a huge memory leak in the waveform graph or I am really doing something wrong.
    I created an example app with a waveform graph and a button the contructor looks as follows:
    Form1(void)
    InitializeComponent();
    vals = gcnew array<double>(60000) ;
    for (int i=0; i<60000; i++)
    vals[i]=Math:in(Math:: PI*2*60/6000.0*i) ;
    and the click event looks like this:
    System::Void button1_Click(System:: Object^ sender, System::EventArgs^ e)
    this->waveformGraph1->Plots->Clear() ;
    NationalInstruments::UI::WaveformPlot^ plot = gcnew NationalInstruments::UI::WaveformPlot(xAxis1, yAxis1) ;
    plot->PlotY(vals) ;
    plot->LineColor = Color::Red ;
    this->waveformGraph1->Plots->Add(plot) ;
    every time I click the button the memory used on my system goes up by about 10 MB.  I tried this also with using this->waveformGraph1->PlotY(vals) and the memory usage stays solid as a rock.
    Am I doing something wrong or what is causing the leak so I can work around it, my program plots 4 arrays of this size on one graph per test result.

    The plot uses some unmanaged resources (gdi objects and other handles), which is why it implements IDisposible. Because of the GC, resource cleanup is not deterministic, clean up occurs when the GC deems it necessary. Calling delete (which based on C++/CLI syntax) ultimately ends up calling Dispose and this forces the object to release any handles it might have immedietly. See the documentation for the .NET Dispose pattern for more information.
    If you don't call delete, what would end up happening is that eventually at some point in the application, the GC would fire and cleanup all the objects and handles and you would see a drop in the applications memory footprint, but you would need to run the application for a while before that might happen. In a long application run, things would end up stabilizing.
    Bilal Durrani
    NI

  • How can i add formula to waveform data type?

    I want to interpolate my acquired data in terms of voltage to temperature. For this i need to use polynomial equation, but i am not able to directly attach formula node to the waveform data type. I want to know how can i add formula node to waveform data, and then also have it real time.

    One additional thought that may be helpful. Once you get the Y component of the waveform graph you are going to attempt to wire this into a formula node. You can do one of two things with that array. Put a for loop around the formula node and index the array into and out of the for loop. This allows you to do scalar math on the data. It is also possible to index and array in a formula node. The following KnoledgeBase demonstrates how to do this: http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/9d72b6069346942386256a0d00604ed4?OpenDocument

  • 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.

  • Change the x axis scale markers in a waveform graph

    Hello all,
    I am looking at an unusual graphing problem that hopefully has been solved.  The problem is because an pre-existing DAQ graph does things in a chart-like manner.
    The application context is that I measure a signal vs. test length.  During the test, I calculate the UUT position as a function of the test length.  The test includes measurements out and back.  Rather than graph signal vs. length; I want to graph signal vs. position.  I have considered the XY graph, but that co-locates the position data.  To remain consistent with an existing test program, I want to change the X Axis marker labels from distance to position at each marker's distance.
    I would like to customize marker text for a waveform graph's X Axis.  I found a sub-property node for marker text, but it does not seem to iterate through a Waveform graph's X Axis markers.
    For example, a test measures the distance 0 to 200 and the X Axis markers are labeled {0, 50, 100, 150, 200}.  How do I change those labels to {0, 50, 100, 50, 0}?
    The Marker Values[] property node does not do what I expected.
    Thanks,
    Kenneth
    Possible solutions:
    1. Find a property node that does the job
    2. Use custom indicators for each marker's labels
    3. Use two graphs, one for forward, the other for reverse testing
    4. XControls

    For your option #4 I would use option #2 but use a single picture and hide the X-Axis and do my own.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • 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

  • Waveform graph

    I am wanted to display mutliple waveforms in a waveform graph, I have the following challenges to figure it out.
    Someone please guide me to do this
    1) Input is only 1-D array(which gets updated in run time), but waveform graph is accepting only 2-D array as input to display multiple signals.
    2) Iam using the attached waveform, which works as a waveform chart and wanted to feed the 1-D array to this vi.
       (Found this vi in a post). I want to go with only waveform graph because of the cursor option availabe in the Graphs.
    -Zhang
    Attachments:
    Waveformgraph.vi ‏14 KB

    Thank you very much srikrishna for your reply, I was looking some thing similar to this logic.But the only other thing I wanted to add to this logic is making  the x-axis to run with the time (X-axis always stays at the same scale),allowing the user to look at the data right from beginning using the graph palette, when he stops the execution .
    I had inserted the array, replacing the random number generator and was able to verify the data, which is updating correctly during run time. Iam attaching the modified vi. Can you please tell me how to change the x-axis so that it runs with the run.
    -Zhang
    Attachments:
    Graph_data.vi ‏11 KB

  • Problems with Waveform Graph

    When I add a Waveform Graph into the Front Panel, the Block Diagram Window shows it as DBL instead of the usual indicator for the Graph. How can I solve this problem?
    Attachments:
    Question.vi ‏9 KB

    I don't see what the problem is. The default waveform graph type is an array of doubles and that's what your diagram has. If you create a waveform data type and wire it to the indicator, it will change the graph's icon.

  • Limit control to property of a waveform graph

    I have a waveform graph in which I would like to limit practically all the property of the contextual menu. Such as:
    Visible items, Auto scale X and Y...
    There is a way to do that. By setting "Disabled" to 1.
    My problem: I would still like to let the user change the Y scale by double clicking it.
    Thanks
    Nitrof

    Nitrol,
    Unless I'm mistaken (it happens), the only way to really do this is completely disable all functionality and add the functionality back through your front panel. I would suggest a very easy approach by putting two digital controls (or one array with two elements, or a cluster, or...) which would be the min and max of the Y scale. You can even make it more simple by just adding a Property Node of the graph, selecting the Y scale, and creating a control. That would save you a lot of work. It wouldn't be as neat and tidy, but it would get the job done with the least amount of work.
    If you want to know how to do this exactly as you specified, here goes:
    Place a picture control over the y scale of the graph. Make the picture invisible (the "T"
    color for the frame and the drawing area. Then, with the picture selected, move it to the front. Next, in the diagram, get the mouse down data from the Mouse property in a while loop. Throw the mouse down data into a shift register. Make the loop have a delay (wait) of about 200ms. AND the output of the mouse down button with the previous one. When the output is true (of the AND), stop the loop. You have detected a double click of the Y scale. NOW, you have to add a subVI that pops up (dialog) options for the Y scale. The user will change the scale, and then you can input these into the Y scale of the graphs property node. Yes, its quite complicated, but the results are exactly what you are looking for.
    Of course, I always recommend the KISS principle (Keep It Simple Stupid).
    Good luck

  • Multiple Waveform Graphs

    Dear group,
    I have a user panel that contains three waveform graphs in which only one
    graph is visible to the user. All three graphs plot the contents of the same
    one dimensional array; although only one graph is being displayed all three
    graphs contain a plot of the array. The user selects whether to display
    graph 1,2 or 3 using a Dialog Ring.
    This is the question I have: is it better to have all three charts plotted
    simultaneously even though only one is being displayed or is it better to
    only plot the chart that is being displayed on the screen?
    In the case of the former do I use much more memory or slow down the
    execution of my program more than in the case of the latter?
    Thank you in advance,
    Luca

    My apologies, it should say graph instead of chart.
    Luca
    "Greg McKaskle" wrote in message
    newst5oc.86746$[email protected]..
    >
    > > In the case of the former do I use much more memory or slow down the
    > > execution of my program more than in the case of the latter?
    > >
    >
    > In part of your question you call the control a graph, and in other
    > parts a chart. The answer depends a bit on which you are showing and
    > hiding. Graphs only show the most recent data written to them, charts
    > retain and show history.
    >
    > Neither the graph or chart will have much overhead receiving data while
    > hidden. On the otherhand, it isn't zero either since they will at least
    > be doing a data copy so they can draw with correct data wh
    en shown.
    >
    > It will be easiest to send the data all the time since otherwise, you
    > will need to send fresh data when showing the graph. If dealing charts,
    > not only will you need to update the current data, but the history will
    > be old. You will need to clear or write the history.
    >
    > If it doesn't cause a problem, write to them always, but if you can
    > measure a problem or have spare time on your hands, add code to make the
    > update conditional and deal with the data when being shown.
    >
    > Greg McKaskle
    >

  • Multiple waveform graph

    I need help. I need to put multiple plots in a waveform graph. In the vi in attachments, I put a example. In the waveform chart, function good, but in the waveform graph, don't work put two or more plots in the graph. I need to do the same thing that I do in the chart in the graph. Thanks for all.
    Attachments:
    graph-chart.vi ‏15 KB

    Please check the example which comes along with labview about how to plot multiple plots in a waveform-Go to specified folder in your pc
    C:\Program Files (x86)\National Instruments\LabVIEW 2012\examples\general\graphs
    -Open gengraph.llb in that folder for examples.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

Maybe you are looking for

  • Display of calculated field value in same field using form personalization.

    Hi All, What could be the solution, if i want to have the formula on same display field. say..your entering value in grams and convert into ml in the same field of (:Q_RES.DISPLAY5) Conversion formula: (TO_CHAR(TO_NUMBER(:Q_RES_DISPLAY5)-(0.35))/((1.

  • Call register and bluetooth

    A customer has come back to me with a problem with regards to the call register on his factory fitted b'tooth car kit. (Ford Galaxy)  Basically, The handset is fully suppoerted by the kit (as per manufacturer's guidelines). It connects up, reads phon

  • Upgrade video card

    I need a new Nvidia card. I want the gtx 970 but I am concerned about the power supply. It is listed at 600 watts but I need 2- 8 pin power plugs to run most of the available cards. I notice there are 2 6 pin plugs in the box one black and one white.

  • Login App Failure

    What is going on with Verizon support. You have multiple requests for assistance in login into "Watch ESPN" app and you provide no answer. Is this a scam that makes a claim but does not have support from Verizon? Does the connect work or not. Why don

  • Error in hierarchy presentation

    Hi. In my PRD system, whenever I run a query that has a hierarchy or try do display some data based on a hierarchy (GL), I get the foll error message: System error in program SAPLRSDRH and form BUILD_VIEW-3- In addition to that we also get the foll e