Plotting point in XY Graph only

Hey guys,
   I am new to labview and I'm wondering if it's possible to plot only one point in a XY Graph, and if it is, how can I do this? I see that when I select XY Graph in block diagram, it only has one place to wire, it doesn't have a place where I can put my X and Y coord's to that specific point... I'm lost here!
Thanks for any help, guys!

Pedro_ wrote:
Thanks for your help!
Just insert a "built array" of height=1 between the bundle and the graph terminal.
Also place a small wait inside the loop.
Also turn off autoscaling for the axes.
I would do the math explicit, not with express VIs. (I don't htink the math is correct yet).
I would also graph the four points of the wheel contacts to verify correct scaling.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • 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

  • Xy graph in PDA module does not plot points or update

    The XY Graph for PDA does not plot points or update. Input data is simple cluster of floating point data (x,y)in while structure. The axes scale properly with Configure PDA XY Scales.vi. Cursor legend also OK. Checked line and point attributes-OK. Running 7.0F1 and pocketPC2003. Please help.

    Garret,
    Can you attach the VI so that we can see it? If you think it is a bug in the toolkit, rather than a programing thing I would suggest sending an e-mail to NI. In addition are you using eVT 3 or 4 or both?

  • XY graph : Plot point by point

    hi my intention is to plot in a XY graph point by point. Meaning for eg: I want to plot a scatter plot.
    First I check if the array element satisfies a certain condition (let's say if it lies between 1 to 5) if So I want to plot in red color, else I want to check another condition (let's say lies between 5 to 10) and then plot in blue color and so on.
    First I check for the condition and link it to a case structure such that each case structure will contain the  corresponding plot color but it doesnt seem to be working.
    Kindly guide me with this.
    thanks!!
    Solved!
    Go to Solution.

    Hi Chathuri,
    If you want to plot a scatter plot, you can do this by editing the properties of the XY graph.  Righ-click on the X-Y Graph object and click on Properties.This will bring up the property viewer. If you then go to the Plots tab, you should see a screen similar to the one shown as an attachement. The fourth column from the left sets the display type and if you click the top diagram, you will display individual data points. I have circled this in the attached diagram. You will also need to set the tick markers to display.  You can do this if you set the third column from the left. 
    Hope this helps,
    Andrew McLennan
    Applications Engineer
    National Instruments
    Attachments:
    XYProperties.JPG ‏45 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 .

  • A way to get information about colored points from a graph?

    Two questions:
    1. Is there a possibility to know whether a specific point is already plotted in a graph and what is the color of that specific point?
    2. Is there a way to use the legend in order to show what each colored point represents (not lines, only colored points..)?
    Thank you!

    1. I used PlotPoint & a function "returncolor" in order to make each colored point present a different situation depend on variable 'x':
    double m_abs (double x) {
    if (x < 0) return -x;
    return x;
    int returncolor (double x) {
    if (m_abs(x) <= 0.05) return VAL_GREEN;
    if (m_abs(x) <= 0.15 && m_abs(x) > 0.05) return VAL_BLUE;
    if (m_abs(x) <= 0.25 && m_abs(x) > 0.15) return VAL_DK_MAGENTA;
    return VAL_RED;
    The problem occurs when PlotPoint used twice for the exact same point with different colors so only the last colored point would remain.
    I want that in this case, only the color with the maximum variable 'x': would remain..
    Sם I can solve it by saving the data to 2D array.. but I thought maybe there is an option to get true or false whether a point exist on a specific location in a graph or not, and what is the color of that point.
    2. Yes, I have already used annotations., but too bad there is no way to put legend for colored points..

  • How do I determine the number of plots on a waveform graph?

    How do I determine the number of plots that have previously been plotted on a waveform graph? I am loading dynamic data from a file. If I convert to an array and size it and there is only one plot, I get the number of data points and I don't know how to tell the difference.

    Usually by reading the graph terminal or a local of it and determining the first or second dimension (not sure which at the moment) size of the resulting 2 dimensional array. If it is a 1 dimensional array you have either only one plot or an array of clusters each representing one plot. But as these data types are determined by compile time, there shouldn't be a problem with this causing ambiguity.
    Rolf K
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

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

  • How can i trace just 1 point on a graph from my instrument??

    i'm developping an software to get S parameters data with their graph.I'd like to dosplay the markers from my instrument too.How can i do it? thanks

    I think what you are asking is that you want to read one point from your instrument and plot it to a graph? If so, you will need an interface to your instrument, such as a GPIB or serial card, depending upon what tyep of instrument it is. Once you do that, you can use the driver software to interface LabVIEW with the instrument.
    When you have that working, you will need to determine if their is a LabVIEW instrument driver for your instrument. If so, use that to communicate with the instrument and plot the data to a graph. If not, you will need to find which command strings the instrument accepts and send those using the hardware driver. Then you can read back the data and plot it to a graph.
    J.R. Allen

  • Hiding plots programatically in XY graphs

    My data acquisition plots five y values along a time axis. There are occasions when the number of plots is less than this due to user set-up of the test. The problem that I have is that the XY graph continues to plot all five values with the empty values drawn on the zero line of the y-axis. Whenever I try to disable the visible property of the plots it doesn't seem to recognise them as active plots and delivers an error code saying 'Invalid property...."etc. The plots can be made invisible only if the user choose to acquire 5 sets of data. Can you help?

    Make sure you are using the order: Set Active Plot -> Set Active Plot's Property
    As in the attached LV 6.1 example
    2006 Ultimate LabVIEW G-eek.
    Attachments:
    Vis_Graph.vi ‏45 KB

  • Automatically labeling plot legend using XY Graphs?

    I want to plot:
    Time Amp
    1       2
    2       4
    3       9
    How do I get the legend to automatically say Amp, instead of Plot 0? I went to property node -> legend and I don't see any option
    that would read the "column" header and label the legend accordingly.
    In my example, the X array (Time) and Y array (Amp) are fed into Bundle which is then fed to the XY Graph input. The X array (1,2,3) and Y array (2,4,9)
    obviously carry no information about their respective column names (Time, Amp). So, the legend must read this information separately, but I don't know
    how to feed this information to the plot legend. 
    Solved!
    Go to Solution.

    You simply need a property node for "plot.name". You have only one plot, so the following is sufficient (of course you would replace the string diagram constant with whatever you read from the column header in the file)
    (If you have several plots, you would do it in a loop, setting the active plot from the iteration terminal, first, then writing the name)
    Since this is an xy graph, I would actually hide the legend and simply label the two axes according to their header. This can be done in a similar way with property nodes. See if you can figure it out.
    (Of course if the labels never change, enter them once manually and they will be saved with the VI. No code needed.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SetPlotName.png ‏3 KB

  • 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

Maybe you are looking for

  • New Macbook a good replacement for 12" Powerbook?

    I think, besides the inch in display difference, that the new macbook WOULD HAVE made a GREAT GREAT GREAT replacement for users loving or wanting the portability, yet pro versatility of the old 12" Powerbooks. I think however that Apple has missed th

  • How can I close all open subVI front panels, without closing my top level VI front panel when all VIs are built into executables?

    I'm using the code shown in the sample VI discussed here: http://digital.ni.com/public.nsf/allkb/353A696A3F393D9B86256E8B007A2912 to close all open VIs except my top level VI.  My top level VI is actually a separate executable and the sub-VIs are the

  • 2 cffform(s) on one single cfm template

    Hello, Does any one know if there are any way to use two cffform on one signle template? I tried two different cffrom tags but it's only load the first form. Second form doesn't seem to work. Is it a limitation of Flash format in cfform? thanks for a

  • ThreadStateException Error in openfiledialog

    I got this error in a thread that is called by my login form by this code:         public static void ThreadProc()             Application.Run(new aplicacao());         private void button1_Click(object sender, EventArgs e)             if (textBox1.T

  • What is the M$log view length?

    Hi All, What is the max length of m$log? Is it 26 char only.. ? I am creating mlog to 1 table . it is talking only 26 char..?