How to mark points on a graph

Hi All,
I want to write a program which plots data on a surface graph then
allows the user to click on the graph and "mark" points on the plot. The
program should change the color of the "marked" points on the graph.
Based on the sample code provided by "Ben" here
(http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=144155#M144155)...
I wrote the attached code which uses "event structure" and cursors to do
the job. I used cursor to read the X,Y,Z position of the clicked point on
the plot and store them in arrays. These arrays then were feed into a
new plot added to the graph using CWPlots3D.Add() method. However, my
code does not draw the second plot (which would show marked points in
green) nor it does not get the marked points coordination correctly. I
appreciate your help to correct the code.
Thank you,
Attachments:
change read xyz.vi ‏27 KB

Hi Trin,
I have altered your VI a little bit to get the marked points in an array. You will realize that the mouse up event is requested in a parallel loop, that's because this event doesn't get triggered ifyou drag a cursor.
All you have to do now is to make a graph from the array and create new cursors. But leave Cursor 1 always as the last one and save the past values to new cursors. But maybe you don't need to set a cursor on each marked point.
Kind regards,
Kleisi
Attachments:
3D_Example.vi ‏39 KB

Similar Messages

  • Mark points on 3D graph

    Hi, 
    I need to mark points (by changing the color of the point)on a 3D graph
    which the user would select using mouse clicks. How should I implement
    this? Should I use both cursor and mouse event handler in my VI?
    IS there any similar example code available?
    Any helps would be greatly appreciated
    Cheers,
    Trin

    Start reading at reply #7 in this thread.
    I would use a seperate plot to handle the highlighted points. Just add the new point and redraw that plot as they go.
    The code for that example is all there.
    Have fun,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Custom Icon / Marker / Point-style on Graph

    Is there a way I can use a custom icon (or point-style) on a graph or chart?  I want to place a series of points on an XY-Graph but I don't want to use any of the built-in point styles, I want to use a .gif file I have.  I have toyed with the idea of converting an XY position to a screen position (in pixels) and hiding / showing an icon already on the front panel, and moving it.  This seemed like a bit of a hack to me, I'm hoping there's a better way.
    Thanks

    ptilghma -
    I know you can modify programmaticaly:
    Graph palette
    Plot legend (waveform chart, waveform graph, xy graph, and digital waveform graph only)
    Scrollbar (charts only)
    Blinking plot
    Label scroll position
    Active X/Y Scale
    Using property nodes  but I don't think that it modifies the icon.
    I think mapping out the screen and applying some sort of logic to replace the points is your only way out.
    Here is a link describing the use of property nodes in graphs
    http://digital.ni.com/public.nsf/websearch/A0525AF9D64408F186256BFB005970EB?OpenDocument
    Best Regards
    Bruno Noronha
    Bruno Noronha
    Certified LabVIEW Associate Developer
    Using LabVIEW 8.6

  • How do I make an XY-Graph plot points over time?

    I am building a program to plot and take data of a relationship between two voltages.  One is voltage is uniquely dependent on the other.  So far I have successfully built an XY-Graph to plot the voltages against each other (Voltage1 along the x-axis and Voltage2 along the y-axis).  However, the XY-Graph only diplays the point (V1, V2) at the instantaneous time I am looking at it, and does not continuously plot different points as I vary the independent voltage.  I need the graph to display all the points that occur as I vary the independent voltage.  As of right now, all I see is one little cursor that moves all over the graph as I vary it.  My program consists of a While Loop that contains all of the following:  two seperate data anolog input functions that take both voltage separately from my board.  The the output samples from each 'AI Sample' function are then bundled into one cluster using the 'bundle' function.  The cluster output from the 'bundle' function is then wired to a 'build array' function.  The 1-D array output from the 'build array' function is then wired to my 'XY-Graph'.  How do I get the XY-Graph to plot a point every millisecond or so?

    Bundling and then using the Build Array is not correct. Yuo can see the correct method in the help for an XY Graph below. In order to use the normal XY Grpah, you would have two shif registers. One for the X array and one for the Y. Bundle the two arrays and then wire to the graph.
    The other way is to use the Express XY Graph. With that, you can just wire your scalars to the X and Y inputs and set the Reset input to false.
    Message Edited by Dennis Knutson on 11-12-2007 06:32 PM
    Attachments:
    XY Graph 1.PNG ‏21 KB
    XY Graph 2.PNG ‏6 KB

  • How can I plot two sets of data points in 3d graph?

    I am trying to plot two sets of data points in 3d graph. I also need to make a set of data with one color and the other set with a different color. For example, I need to plot 10 (x,y,z) data points in 3d. Maybe 6 points need to be blue, and the other 4 red. Could you tell me how?

    What is your LabVIEW version? (things are a bit different in 8.6).
    Basically, you create multiple instances of the VI that gets placed automatically when you drop the 3D graph and then wire a different number to the plot ID at the bottom.
    You define all the plots (color, style) via the properties dialog.
    Have a look at my example posted here. One plot is "blue dots" and one is a "shaded surface". See how far you get.
    Message Edited by altenbach on 04-23-2009 01:11 PM
    LabVIEW Champion . Do more with less code and in less time .

  • How to show health app data points as a graph

    Some data points form a graph and others do not.

    0FI_AP_0 - go to the master data infoobject of this datasource. Check mark charercteristics is an export datasource in the master data tab
    Go to the infoprovider tab in RSA1, Insert this charecteristics as data target.
    Use export data mart of this infoobject in your cube creation. You can use this in update rules for update of cube

  • How to Add points on graph from a text File ?

    Hello and Good Morning to all,
    I have a text file with my data and i read them by using the Read From Spreadsheet File VI,i enter the path where my file is saved,read all rows delete the first row because i don't need it and my problem is that in the text folder i have specified date and time which i want to be my X axis in my Graph and Y axis to be the Vout that means i have to use a XY Graph ,below you can see my data:
    Date        time              Vout  
    3-9-2012 7:45:37            2,35
    3-9-2012 7:45:39            2,75
    3-9-2012 7:45:41            3,15
    3-9-2012 7:45:43            3,50
    1) Is the text file format compatible with the input of the graph command?
    I do not find a LabVIEW function which convert the “date” from the text file (example:3/09/2012 07:45:37) into a compatible format for X axis for the graph.
    (Conversion from string format => into a “date and time” format)
    Can someone please provide a code solution for this problem?

    Hi gstathatos,
                             See all the threads given below:-
                             http://forums.ni.com/t5/LabVIEW/Add-points-on-XY-graph-with-time-step-not-constant/td-p/1507066
                             http://forums.ni.com/t5/LabVIEW/Add-points-on-graph-from-a-text-File-Date-and-time-include-in/td-p/1...
                             http://forums.ni.com/t5/LabVIEW/read-double-waveform-text-file-and-and-plot-graph-in-labview/td-p/10...
    Thanks as kudos only

  • Represent NULL point in Line Graph.

    Hi;
          I am using Simple series to supply data to Graph type Line. I have a requirement to represent null data point in Line graph, where marker point for the NULL data point shouldn't be present, instead a straight line should come in between the valid points. Currently if the Data value is null, marker point is coming to 0.
    How can i solve this problem using Simple Series?
    I am using NW7.0; SP 9
    vinod.

    Please refer:
    http://www.sapdesignguild.org/resources/diagram_guidelines/index.html
    Reference Point:
         Chart Type Line Graph
             Do not Use it if the X axis has non-numeric values..
    vinod.

  • Associate text to each point in a graph

    I must associate text to each point in my graph. The graph has 10000 points and annotations are very slow. How can I do that ?

    Unfortunately, annotations are the only way to associate text with points in CNiGraph. If using the Measurement Studio .NET graphs is an option, there is another way to do it with the .NET graph's custom drawing services that would probably be much faster in this scenario. Let me know if that is an option for you and I can post an example.
    - Elton

  • How to mark holidays in facory calendar img src='images/watch-16x16.gif'

    Hi,
    I need a help.
    How to mark holidays in facory calendar.
    Reward points will be given for helpful answers.

    HI
    Go to Transaction SCAL and Choose Holiday Calendar and click on change (Pencil) button.
    Then click on create button and enter holidays and save.
    Note: Once you complete creation of Holidays, finally click on transport button on main menu. THis will create transport request.
    Hope it helps.
    regards
    Srinivas

  • May i know how to Reward points

    hi friends
    may i know how to Reward points  i tried but i coudn't success to give points

    Dear Kishore,
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. There are 3 radio buttons. Depending on the level of help you have got with the answer you can award points.
    You also get a point yourself for rewarding (one per thread).
    Hope this helps you.
    Do award points if you found them useful.
    Regards,
    Rakesh

  • Data points disappearing on graph windows...

    Hi
    During the acquisition of a large amount of data from a DAQ-board (PXI-6229), I visualize these points on a graph.
    Sometimes, the whole graph window is cleaned then data begin again to be displayed.
    Why ? Is it due to a problem with a window buffer  (I use a history graph with a big history buffer) ?
    Thanks

    Hi
    Thanks for your suggestions.
    I tried using SGL instead of DBL numbers, but the same troubles occur.
    I tried too using the express vi "sample compression" to reduce the
    number of points by a factor 10... but I get the same troubles.
    Here attached is a copy of the screen. There is about 6 s of
    measurement displayed (the history buffers are still empty), and the 3
    chart screens cleaned some seconds later.
    Sometimes more than one minute is displayed, so that the history buffer
    begins to be filled. So the troubles do not depend on the history
    buffers since they are empty when the trouble occurs.
    It is difficult to post the code since it is a big diagram with a lot of functions and connections.
    What I'm doing :
    I acquire about  30 channels from 3 DAQ boards, in binary mode
    (I16). I always plot these data on 3 distinct chart screens (see
    attached file) after a renormalization to obtain floating numbers in
    volt from 2 bytes numbers.
    Is there some buffers involved in this renormalization and display ? How to control these buffers ?
    Regards
    Denys
    Attachments:
    Document2.doc ‏71 KB

  • How can I make a waveform graph store the entire wave, not just the current time period and how can I save the actual graph?

    I am taking temp readings with a 4 channel DAQ, sending them to a waveform graph and exporting the data to excel, how do I manipulate the graph to take a continuous reading as opposed to losing the previous GUI and how can I save the entire graph?
    Using LabVIEW 2011 operating on Windows 7 professional. 

    That is the nature of the chart -- everything not in the history is lost (it is a FIFO buffer of length=1024 samples by default).
    The scroll bar is probably grayed out because you're show all of the data.
    Attached is a program that will add 5 random points to a graph and prompt you for a file location where to save a JPG snapshot of the graph.  It's not particularly good programming style, but it has all of the elements/concepts you're after. 
    Attachments:
    graph.vi ‏14 KB

  • Points on a graph

    Hi,
    I am unsure how to do this. I would like for the points on the graph to have values next to them rather than having to move the cursor over these points to get the value at that point.
    Any help is much appreciated.
    thanks
    amit

    Amit,
    Go into the Chart Designer - select the Series and check the check box for Show Labels.
    Regards
    Gill

  • How to mark entire thread as read in KMail's filter?

    In company I'm working, we have our own bug tracking system. When a bug status is changed, I get a mail. I'm currently grouping these mails as (fake) threads by rewriting theirs Subject header. So far, so good.
    In recent few days, I've had only a little time to check for new messages, a my inbox contains about 500 mails. Lot of them are uninteresting, because they belongs to already closed bugs. I'd like to mark respective threads as read. How can it be done?
    I've searched the filters dialog, but with no luck. Can KMail do it, or am I doomed to manually walking through these mails and (un)marking them as read?
    If KMail cannot do this, is there any good mail client which can?

    Sorry for not being clear enough.
    What I need is mark entire thread as read from filter (ie automatically), but base this decesion on content of only one message from this thread. I know how to mark entire thread manually (as cool pointed). I can mark one message from entire thread  - the one which contains "solved" in it's body (as jac proposed). But I need combine both of these: find a message and mark it's entire thread.

Maybe you are looking for

  • Designing curved shapes in webdynpro ABAP

    Hi, We have a requirement where the layout needs to have different groups for listing various employees based on eight different categories. Now this layout needs to have four square boxes with a small curvature on one corner of each square boxes (wh

  • Problem deploying standard par after customization

    Hi, I am trying to customize standard masthead par. I downloaded the par file, and with out any customizations i deployed it back to portal, an then I get the following error: Portal Runtime Error An exception occurred while processing a request for

  • I can't convert songs into ringtones

    Yesterday, I had 50 songs that I could convert now I have none. I tried changing Rockstar by Nickelback and Crazy by Gnarls Barkley. Yesterday, they were both convertable, now there not.

  • How Export option in Apps menu work?

    Hi All We have standard export option (File -> Export) in 11i oracle applications to download records from tabular block to spread sheet. Now in one worksheet we can store around 60000 rows. In case our query fetches more than 70000 records, and we e

  • Raw file upload issue

    Suddenly Bridge has stopped uploading RAW (.NEF) files from my Nikon D80. I only get the .jpgs. I can't figure out why. I'm running Photoshop CS3 with the 8.1 converter and Bridge CS3... Anyione have an idea???