Plotting data in a 3d surface graph

I�m having trouble plotting data correctly on a 3d surface graph in my routine.
The goal of the vi is to plot a 3d image of a region of interest (ROI) from an intensity graph. The user selects the ROI with the cursor from the Intensity Graph (top left plot). The vi shows the region of interest in the ROI intensity graph (lower left plot). The goal is to create a 3d plot from this ROI. The 3d plot appears on the right.
The problem is that the 3d plot seems to shift the values of the data if data is selected anywhere other than from the 0,0 region of the Intensity Graph. If the user selects data from 0 upwards along the y-axis or to the right along the x-axis, the data plots fine. When the user selects data from the
center of the plot the data shifts off the 3d plot. The data is not missing. It is shifted. You can actually see the values when you left click and change the view of the 3d plot. The data appears as individual points off the surface graph. Each data point is the correct z data value. The scale on the 3d axes adjust correctly.
I've attached the routine below in the form of an llb file. The correct version of the main file is "mouse_to_select_area_hamilton4_laura". Do not run the main "mouse_to_select_area_hamilaton4" as it contains an error.
Attachments:
Mouse_t1.llb ‏557 KB

I have the same problem with one of these graphs. I have a surface plot that has been normalized to zero. However, the data is not centered on zero when plotted. I have an X and y vector input to the graph, it doesn't help. I have looked at each column of data and verified programmatically that the mean is zero of each column. There are gobs of data (some are 1 - 2 Mbytes big). Can that cause this? I use other graphs and a polar plot within the same application, they all look fine. I did get the 3D graph to plot correctly once, but the X vector values weren't displayed correctly (my X vector range is from .5 to 240 inches, the graph displayed 0 to 117 - which was the number of inch positions, not the inches positions themselves).

Similar Messages

  • Plotting Data on a fixed time axis from left to right

    I am plotting data on a Historical Trend graph from the DSC palette. I receive the data from a plc throughout the course of a production shift. I would like to have the start time of the shift (07:00) on the far left of the x-axis and the end time of the shift on the far right (15:30). I would like to plot the data from left to right as the shift progresses. Is this possible? How do I format?
    Many thanks for any input,
    Stuart Wilson

    Hi Stuart,
    All you need to do is place down a waveform chart and then modify the properties slightly in order to achieve this. If you right click and make sure autoscaling is turned off on the x-axis first of all, then go into the properties page and change the x-axis formatting to absolute time then you will be able to plot data with the actual time according to your system clock.
    The only problem you have now is that there probably isn't enough room on the chart to plot data for the entire time between 09:00 and 15:30 depending on how often you want to sample. The default number of data points to keep in the chart is 1024. Therefore if you try and change the max and min values to 09:00 and 15:30 then it won't allow you to set that up as it doesn't think you have enough room there. Right click on the chart again and go down to Chart History Length. Increase this number to a large enough number and then you will be able to set the start time to 09:00 and the end time to 15:30 and as long as autoscaling is turned off this will not change.
    Hope this helps, please find the attached example which will plot random numbers to a chart once a minute and the chart will plot data between these times.
    Best regards,
    Peter H.
    Applications Engineer.
    NIUK.
    Attachments:
    Large Chart.vi ‏16 KB

  • The plotted data on the graph disappear when clearing graphs!??

    Hi folks
    I got this vi, with two graphs, and one chart. I got this chart coz i want the data plots to strip in the graphs.
    but when the VI runs, and i pres stop and run again, the data plot disappears, they are then beeing plotted in the back ground or something like that.!
    Also when clearing the graphs the data plottet disappears.
    How can I overcome that ?
    regards
    Zamzam
    HFZ
    Attachments:
    FlowReadChartHist1_mod2.vi ‏79 KB

    Hello Zamzam,
    same again:
    1) I click "Clear" when the graphs are not filled with data: graphs are cleared, new data appear from left and fill the graphs.
    2) I click "clear" when the graphs are "filled" (the x-scrollbar shows
    more data the display is showing): graphs get cleared, new data appear
    from left and fill the graph again...
    3) I click "stop" at any time: vi stops, actual display stays.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Facing memory error during shifting from 3d stem graph to 3d surface graph in labview 2010

    hello all,
    earlier I was using 3D Stem graph in labview 2010. Now we want to move to Surface plot for same data.when i am trying surface graph it shows memory error.
    I have  10240 data.
    I was using vector method in stem graph so now for Surface graph i have thought that i have to make matrics of 10240x10240 and its diagonal elements should be my Z co0ordiants.
    plz help me out here.
    thanks & regards, 

    hello mikeporter,
    thanks for reply.I am attaching my Vi. It has some error also.plz look into it.
    X and Y are my co-ordinates pairs.I will be having values for these and have to update for same.
    Attachments:
    Untitled 2_surface.vi ‏184 KB

  • 3-d surface graphs in Linux LV 8.6

    I need to draw a surface graph from data where the z axis can take one of 14 values and the (x,y) coordinates range from 0 to 1, with no fixed intervals.  In essence, I have 14 horizontal slices of a surface, with 50 random surface observations on every slice.  How can I display this as a surface using LV 8.6?
    Earl

    Hi Earl,
    Unfortunately, the 3D graph object in LabVIEW uses ActiveX, which I'm sure you know only works with Windows. However, there some work arounds that others have posted in these other threads:
    http://forums.ni.com/ni/board/message?board.id=170&requireLogin=False&thread.id=186413
    http://forums.ni.com/ni/board/message?board.id=170&message.id=259968&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=84789&requireLogin=False

  • Best method for plotting data array?

    I am reading data from a Delta Motion controller and writing that data to an array in my vb.NET program.  The data is not time stamped but I know what the sampling interval is (0.001s).  I want to take that data and plot it on my Waveform Graph.  What is the best method for doing this?  I'm sure this is simple, but I'm new to MS and LV.
    Private Sub btnRampUpA_Click(sender As Object, e As EventArgs) Handles btnRampUpA.Click
    Dim Axis0ActualPrsData() As Single = New Single(4096) {} 'Create array for data from the RMC controller to be read into
    Dim Axis0Actual() As AnalogWaveform(Of Single)
    If RMC.IsConnected(PingType.Ping) = True Then 'Check to make sure comms to RMC is good before trying to read data from it
    Try
    RMC.ReadFFile(FileNumber150.fn150Plot0StaticUA0, 112, Axis0ActualPrsData, 0, 4095) 'read the plot data where sample period = 0.001
    Catch ex As ReadWriteFailedException
    MessageBox.Show("Unable to read plot data from the RMC. " & ex.Message)
    End Try
    End If
    End Sub
    Thank you

    PlotYAppend appears to be the answer according to the white page, although I don't have it working as of yet.  Can someone confirm?

  • Aren't -180° and 180° the same for a 3D parametric surface graph?

    Hi
    everyone,
    I need to
    plot some results using the 3D parametric surface graph and these 3 matrix :
    First
    matrix “theta” : Each column ranges from -180° to 179°    (180x360)
    Second
    matrix “phi” : Each line ranges from 0° to 89.5° (increasing by 0.5°)   (180x360)
    Third matrix “z” : 180x 360 matrix initialised to 7
    First and
    second matrixes are converted to a polar representation.
    My problem
    is that I reach my goal, a full red circle, only if my matrixes range
    from -180° to 180° and not when they range from -180° to 179°. Aren’t -180° and
    180° the same for this graph? I must be doing something wrong...
    Any help
    would be great,
    Thanks.
    Regards,
    User
    Solved!
    Go to Solution.
    Attachments:
    Forum.vi ‏671 KB
    Pb circle.JPG ‏20 KB

    Seems obvious that you need to have the first and last point the same in order to close the curve.
    A simpler, but equivalent example is a circle on an xy graph, Unless the first and last point coincide, you won't close the loop.
    LabVIEW Champion . Do more with less code and in less time .

  • LV 6.1, 3D Surface Graph sometimes collapses (doesn't work stably); plus blocks use of remotely controlled panel by LV run-time engine (error #26:"window.cpp", line 11518

    1) "3D Surface Graph" does not work stably; sometimes it changes its properties (e.g. plot style) without me doing anything prior to that; a couple of times it lost a complete sense so that I had to delete the graph and install it again
    2) I tried to remotely run a VI which contains a 3D Surface Graph in it. It turns out, the use of the "3D Surface Graph" somehow blocks the remote control over the panel. As a result of that, I got the following error message: Error #26: "window.cpp", line 11518 (with LabVIEW version 6.1).
    3) Is it possible to plug into the 3D Surface Graph a few plots at
    the same time since there is a built-in control "plot number" (somehow by bundling them up or putting into an array - I tried both but didn't work) or it can be done merely by use of 'case' structure preceding the Graph, where case structure decides which plot to pass into the 3D graph?
    Attachments:
    3D_Graph_ver_1.bmp ‏214 KB

    Hello mjoler,
    Thank you for contacting National Instruments.
    The following example will show you how to plot multiple 3D plots on a single 3D graph. Modeling your VI after the example may also alleviate the instability that you have been experiencing.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B123AE0CBA19111EE034080020E74861&p_node=DZ52038
    As far as the error you are receiving, it's difficult to say what could be causing this. ActiveX controls embedded on a front panel sometimes do not display on a remote client because they draw and operate almost completely independent of LabVIEW. If possible, try remotely controlling your VI with a client computer that has a complete installation of LabVIEW. The error could also be a bu
    g. Try downloading the evaluation version of LabVIEW 7.0 from http://www.ni.com/labview. By doing this, we can determine if it is a bug in the older version that has been fixed in the latest version.
    Let me know how this goes.
    Matthew C
    Applications Engineer
    National Instruments

  • Plotting data from sequence structures.

    Hi all,
    I have a program that contains two pages in a sequence structure. On each page, I am generating data and I would like to plot this data in real-time on an XY graph. I understand that once I've executed Page 0 in the sequence structure, I cannot go back to this page. As such, once this page has finished executed I would need to pass the data to the next page. However, I would like to plot both datasets on *one* XY graph. Is this possible? I've tried putting the graph outside the sequence structure, but the data is not allowed to pass to graph until the page is executed (so it is not real-time plotting). I've included the VI I've been working on.
    Attachments:
    appendgraphs.vi ‏30 KB

    Hi,
    if you really want to use sequence, you can use a local variable of the graph to add points on the second frame, see modified.vi.
    Anyway you can get the same functionality without sequence, see optimized.vi.
    Good luck,
    Alberto
    Attachments:
    modified.vi ‏33 KB
    optimized.vi ‏27 KB

  • Data Display table along with Graph

    As per my knowledge we are not having any option currently for displaying data table along with graph.
    This plot data table can have plot name along with current data.
    See the sample below. Many times I need to display number of parameters on graph and current value need to see along with graph.
    It will very useful if I get something like this in next version.

    Hi chameli,
    well, you gave the chart as an example to your question - but didn't specify your question any further!
    What's wrong with a little coding to have your data presented as you like to?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can I change the order plots are written to an XY graph without changing their order in the plot array?

    In LV6.1 the order in which plots are written to an XY graph is in reverse order from the order they appear in the array of plots that is feed to the XY graph control. Thus at places where �Plot 0� intersects �Plot 1�, the �Plot 0� data appears in front of the �Plot 1� data. I would like to reverse this without switching the order the plot array is built-up. Is this possible? I�ve attached a vi that demonstrates what I�m taking about. In my application I have many �highlights� that I do NOT want to list in the plot legend but that I wish to plot �over� the channel data that IS listed in the legend.
    Thanks
    Attachments:
    plotOrder.vi ‏42 KB

    Thanks for this idea. I misunderstood what you meant until Jeremy responded saying you were �right on the money�. I thought you meant that putting another plot in the array but making it transparent was going to help somehow, but now I understand that you mean plotting the �up front� data to a separate XY graph indicator which is transparent and overlaying the original XY graph. I may wind-up doing this. I�m just not excited about linking all the scaling info from one graph to the scaling of the transparent graph and creating the necessary event handling so that when the user scales one graph or changes the auto-scaling, the other graph�s scales gets updated, but perhaps it�s the only way. Thanks again for your input.

  • "Copy data" fails to copy entire graph image

    Formerly "Copy Data" when right clicked would copy a graph together with the data for pasting as an image file into other applications.
    I have an application that used to work fine like this but now if you "Copy Data" you only get the graph background, grid, axis, etc. No plot lines.
    A graph which does copy correctly in a sub VI if running stand alone (not in the main VI), will not copy correctly when running from the main VI.
    Export Simplified image works and preserves the data plot, but fails to preserve the same graphical look to the plot, so is not desired for this use.
    Running 8.2.1. Many different development versions of this application had working "Copy Data" for months, so its a new occurance. Problem occurs in multiple office apps: Word, PPT, Paint, and on multple computers. Occurs on both development version and executables built in 8.2.1

    I am having similar problem. Using "copy data" gives only a blank background. See attachment; export simplified image options works but copy data option does not. I am usiing LV 2009 SP1. Any help will be highly appreciated.
    Attachments:
    copy data.JPG ‏34 KB
    export simplified image.JPG ‏70 KB

  • How can I plot multiple curves using the XY graph?

    Hai,
    I want to plot  XY graphs for 2 diffrent datas in a single XY graph , to compare both the graphs, how to do. i attached my file & vi
    thanks
    sasi  
    Attachments:
    vi3.zip ‏55 KB

    Okay...so if I descide on rewiring my layout and not saving the entire array, how big is the buffer? because I want to be able to see the whole graph and be able to zoom and return to full view during runtime (possible right now).
    Also, you mentioned I could plot the 2D data directly? without adding timestamps to each Y-value? Will it only buffer one timestamp instead of my solution right now that saves as many timestams as I have channels in an array? Maybe the best would be to keep my value-array and then just add timestamps to the last values and then pass it to the XYgraph? If the buffer can handle that many values that is.
    If I were to abandon buffering the entire array (would be real nice indeed, since it frees up a lot of memory), I then need something to call on excel to import my semicolon separated textfile at the end. (textfile logged separatly) Right now I just call a new sheet and insert my array values.
    (look at last 2 frames of VI)
    Attachments:
    Untitled 11.vi ‏273 KB

  • How to print very long data series (wrap multiple XY graphs)

    I'm working a data logger project where each file usually contains 5 - 10 minutes of data but sometimes may go up to 3 hours +. The customer needs the ability to print out all of the acquired data in XY charts.
    If the amount of data recorded exceeds 15 minutes, printing all of the data on a single chart is not an option (granularity) so they want to print as many 15 minute chunks as necessary to cover the entire range. Ideally, they want to print out two 15 minute graphs stacked on top of each other on a landscape page. I can split the data into chunks (that's the easy part) but I need a way to create an arbitrary number of XY graphs and format/size them for mult-page print out (2 per page).
    I'm looking for some ideas on how to solve this problem - any ideas are welcome as long as they involve LabVIEW and maybe Excel because it needs to be something i can integrate into the application. I can't use offline post-processing like Diadem in this situation.
    Philip
    CLD

    Philip,
    I would probably create one VI with two graphs formatted for printing. Then loop through the data, write segments to the graphs, print, repeat until all data is printed.  This method allows one very simple VI to present the data for printing and allows the user control over what is printed via the calling VI. For example if they decided that 10-minute graphs were better for certain data sets than 15-minute graphs, all the calling VI needs to do is change the amount of data written to the graphs.
    Write the data to a file to protect the data in the event of power failures or other unplanned events. Read it back to print if there may be too much data to keep in memory.
    Lynn

  • How do I change the number of plot areas in a Mixed Signal Graph

    How do I *programatically* change the number of plot areas in a Mixed  Signal Graph?  I recognize that the developer can choose to add or  remove a plot area during edit mode but I want to select between 2 or 3 visible plot areas and scale the plot areas appropriately.  Is there a property that tells me how many plot areas (or yscales) there are?  I also need a property that I can write to as to set the number of plot areas available.
    Aside from manually making too many plot areas and then hiding the unneeded plot areas how can I do this?
    Jonathan

    Hello,
    I don't think that is possible - I searched the property and invoke nodes but didn't find something to do that.  This would make a great product suggestion though, which you can submit (it goes directly to R&D) by clicking the word feedback in the bottom left corner of the Contact NI page linked below:
    Contact NI:
    http://sine.ni.com/apps/utf8/nicc.call_me
    Best Regards,
    JLS

Maybe you are looking for

  • How to manually add second detail on master detail page

    Hi, Apex 4.1 can anyone tell me which steps to take excactly to manually create a second detail region on a master-detail form ? So far I've copied the first detail region and customized it to the second detail table. Copied the processes and adjuste

  • Cannot choose UDF created in profit center for XLR

    Hi, Customer required additional analysis in profit center. We had created U_Outlettype and U_Salestype in Profit center but it is not able to make these 2 UDF in profit center under Tools\User defined field. May I know how to make it visible for sel

  • Newbie Question, MacBook Air with Micro DVI to 24" Cinema display, possible

    How can I connect a MacBook Air with the old Micro DVI to the new 24" Cinema display? What adapter do I need or is it simply not possible? Thanks.

  • Problem with the mic that comes with iphone

    Hi, I am having problems talking on the mic that comes with iphone. Does any one have the same problem. The other person somehow is not able to listen to what I am talking. It has become quite common now, i tried plugging it in and out but not change

  • Finding out what Subtype a reference is

    Hi! I'm trying to bulid an applicaton with abab g and as a Java developer I'm doing it with Abap Objects. Now I have a nice abstract superclass and now I have to check references what type they have, before casting them into the subclasses. I'm looki