LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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.
0 Kudos
Message 1 of 5
(3,986 Views)
Try wiring in an x vector and a y vector to 3d surface.vi in the case 0, frame 4. This makes the plot center in the visiable range.
0 Kudos
Message 2 of 5
(3,987 Views)
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).
0 Kudos
Message 3 of 5
(3,986 Views)
I need help plotting to a 3d Surface graph in Excel or Visual Basic.
I have used the Labview program to create nice plots of 2 dimensional data arrays from files.
My colleagues would like to use the 3-D graphing functionality without having to learn to use Labview.
Is this possible using vba or VB 6.0. I assume since Measurement Studio works with Visual Basic, that it would works with Excel macros also.
0 Kudos
Message 4 of 5
(3,842 Views)
Hi,

Measurement Studio is not officially supported with Excel Macros. Meaning, our R&D team has not tested the functionality of this. However, Measurement Studio does use ActiveX which can be used in VBA. Therefore, there is a large possibility that it may work. I would definitely give it a try but officially it is not supported.

Thanks,
Caroline
National Instruments
Thanks,
Caroline Tipton
Data Management Product Manager
National Instruments
0 Kudos
Message 5 of 5
(3,808 Views)