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

Similar Messages

  • 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

  • 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

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

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

  • 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

  • Anchor point in the Graph Editor and where are the Tips

    Hello All,
    What is the purpose of an anchor point in the Graph Editor when you have "Show Transform Box when multiple keyframes are Selected" engaged.   The pointer automatically turns into a PanBehind tool.   I moved it inside, outside, on the line and it doesn't seem to have any inpact on the scaling of the transform box.  Not only that, it pops back to the center when you switch from "Edit Speed Graph" and "Edit Value Graph"
    I haven't used the graph editor much, if ever and was also curious to know what/where are the graph tool tips.  I haven't seen any difference when Show Graph Tool Tips is selected.
    Thanks in advance
    on a mac   cs5.5

    OK, I see the Tool Tips are displayed when you hover over a keyframe or the path that is made.

  • 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

  • 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

  • Is it possible to pick a point in a graph and drag/move it to another position using the mouse?

    I have an array which contains sample points.
    I would like to be able to pick exactly one of those points in the graph (using the mouse) and move it to another position.
    Thanks
    Thomas

    Hi,
    It's better to make just one cursor (in case you have an array of let say
    200 points), and make it snap to the nearest point. With the event structure
    you can read out if the user has clicked in the graph, read out the cursor,
    and when the mouse button is released, change the point to the new location.
    Regards,
    Wiebe.
    "MrWaves" wrote in message
    news:[email protected]..
    > Thanks!
    >
    > I didnt realize that it is possible to have more than one cursor!
    > This means I need to generate as many cursors as points in my array
    > and just make it look like an ordinary point.
    > Then I can use this cursor to move the point to any position within
    > the graph.
    > I hope my guess is correct!
    >
    > Thanks
    again for your help
    > Thomas

  • Marking points on a curves layer

    ive always adjusted dynamic range by doing a CURVES layer
    then alt-clicking on a photo to mark the points on the curve, then
    stretching the points apart. that was cs3...
    now in cs4 that no longer works; i cannot alt-click on photos
    to mark points on a curve, i have to add a step of clicking on that
    'pointer-finger' icon in the curves dialog in order to mark points
    (personally the old way shouldve not been removed; 'adding' a step
    to mark points is not really progress to me).
    now that theyve added an extra step of having to click on the
    finger-point icon to mark points on a curve, is there a way i can
    add this icon to the configurator?
    AND
    is there a bit of coding which can allow someone at least to
    mark a point on the curve AND mark that same point with a color
    sampler point? that way i can see on the curve where i am as well
    as see on the photo where i am; otherwise i have to mark it on the
    curve than mark that same point again with the color sampler
    point....this option shouldve been some ALT or CTL addon to marking
    curve points, so one can do both at once. so can this be done with
    a single configurator tool, marking both at once?
    tx for anyone who finds the solution, unless there is some
    way of marking points on a curve and im just overlooking it, all i
    know is the old quick way no longer works...

    I agree Gary that in some ways the new curves is worse than
    the old CS3 modal curves dialog, for the reasons you have said. Did
    you know that you can still bring up the old curves dialog? which
    still has the command place points shortcut, and the control TAB
    shortcut to switch between points - if you record an action in CS3
    and read the action into CS4 yoyu will find it brings up the old
    dialog. These actions can of course be assigned to F key shortcuts.
    There is also a configurator panel that John Knack put on his blog,
    which has buttons to do the same thing.
    Incidentally its the command key and not the option key that
    used to place points

  • Audition Marker Points: Can a Midi/USB trigger be set up  to place "Markers" on to the timeline during a live recording?

    Audition Marker Points: Can a Midi/USB trigger be set up  to place "Markers" on to the timeline during a live recording?

    Or you can find a suitable controller such as the original Red Rover or something that supports Mackie control protocol.
    Some years ago I built a simple remote controller by buying a cheap USB keyboard and throwing away the keys just keeping the controller chip with it's USB connection. To this I added my own bank of a few push buttons. The most complicated bit of the process was working out the key matrix to trigger the required keyboard ascii commands.

  • Programming Marker Color in XY Graph

    Hello Everyone,
    In Igor by Wavemetrics, I can plot XY graph with marker only, the marker color can be tied to the corresponding value in a third data column.  In some sense, this is similar to but not quite like an intensity graph.  Is it possible to do this in Labview?
    I will move my X-Y stages to search for a laser beam in large steps and nail its maximum in finer steps.  I would like to plot the trails of my search.  I would appreciate if someone already has this kind of search vi.
    Thanks in advance.
    Fang

    Fang,
    It is possible to change plot point colors of an XY graph by using a property node run through a case structure.  If the results found entering the case structure set it to either true or false, the points can be set to be a certain color.  The property you are looking for is Plot.Fill/Point Color.  However, this is definitely not the most robust method for doing this, as it involves breaking down your x and y data into individual numbers using a for loop.  Also, because the way the XY graph pulls in data, it is essentially impossible to change the color of just one point.  In order to do this, you would need to set up a multiplot and have one plot using one color and the other plot using the default color.  The plot that utilized your signal color would only plot if certain conditions were met.  
    So, I would say that using the 3-D graph functions would be a much simpler method, as was suggested by the previous user.
    Mr. Moore

  • Need specific points in xy graph

    I have xy graph-similar I drow and I'd like to find points, marked with red, automaic(not by hand with cursor) For he right point y value (x=0) and for he left one x value (y=0) The input are two arrays.
    ..if anyone can help..
    Attachments:
    gr.JPG ‏17 KB

    Well, I think easiest would be to convert the data to complex, search theta for the desired angles, then find the one with the largest R.
    Attached is a quick attempt (LabVIEW 7.0). It seems to work with your data, but please verify the code. There are probably bugs.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    histeresis4.vi ‏212 KB

Maybe you are looking for

  • How to determine most recent date from the date column of internal table

    Dear friends would you like to tell me. how i determine the most recently changed record by looking at date and time from internal table i am not supposed to sort the table by date and time... I must check date and time with other records date and ti

  • File Name Not Changing

    I am downloading some files via Safari. I then click the file name and paste the preferred name (usually in column view) copied off the Safari window. After a few, Finder stops allowing me to make any changes. I can get the name to open as if it can

  • Ordering a hard cover book

    How long does it take to get a hard cover iphoto book? I need it in 2 weeks.

  • MacPro randomly restarting

    Can anyone help? My config is: Processor  2 x 2.26 GHz Quad-Core Intel Xeon Memory  32 GB 1066 MHz DDR3 ECC Graphics  ATI Radeon HD 4870 512 MB Software  OS X 10.8.1 (12B19) The error log is: Interval Since Last Panic Report:  157984 sec Panics Since

  • Creating a PreparedStatement Object

    I created a table in ACCESS that has 20 Integer fields. I have to update this table up to 2 times a second. I would like to use the Preparestatement but am confused ... Lets say the table is named TABLE1 and the fields are INT1-INT20 SO far I have: P