ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change scale in 3D graph

Hello everyone,
 
 
I am using LabVIEW 8.5 (which rules, by the way).  I am trying to change the scale on a 3D surface graph, but all I seem to be able to do is change the number of data points displayed on each axis.  I want to be able to change the axis scale without changing the size of the data array display, i.e., impose a multiplier and offset.  I've been unable to find a way to do this.  Is it possible?
 
Thank you,
 
Slowpoke
Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5

They don't call me "Slowpoke" for nothin'!
0 Kudos
Message 1 of 7
(4,637 Views)

IN reply #7 of this thread I started a series of posts that are intended to demo most of the 3d-graph stuff.

In post #10 of that same thread I mention the VI ilustrated below.

I hope that helps,

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 7
(4,629 Views)

Hi Ben,

It helps me change the range of the axes on the 3D surface graph, but it doesn't help me change the indicated scale with respect to the data.  I need the x and y axes to indicate something other than the dimensions of the z-array.  Is this possible for the surface graph?  However, I note with interest that your example uses a parametric surface plot.  Would this be the only way I'll be able to configure the x and y scales?

Thanks,

Slowpoke

Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5

They don't call me "Slowpoke" for nothin'!
0 Kudos
Message 3 of 7
(4,614 Views)

Hi Slowpoke,

I have been answering 3d- graph Q's for years and I have found that these are best answered if the questioner posts an example with some interesting data. This prevents us from having to guess at what you want or having to generate our own data.

So....

Please post an example that includes some representative data and you attempts at plotting same.

Also let us know what the data represents (thise will get the scientists amoung us curious).

And if neccessary an image of what you are after.

Once you post that, someone should be able to give you the psuh you need.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 7
(4,603 Views)
Hello Ben,
 
 
This code generates a one second history of power spectra, displayed as a 3D surface waterfall.  The data in this case are sine wave samples, meant to represent audio data from a noise tool lowered into a natural gas well.  The actual audio wouldn't be pure tones, of course, but the sinusoidal components of the signal and their amplitudes are what I wish to measure.  Attached is a current image of the front panel control; the image is that of a 2000 Hz signal.  (As you can see, the frequency scale does not match the display.)  Also attached is the block diagram of the code.
 
What I wish to do is rescale the x and y axes so that they correctly reflect frequency and time, respectively.
 
Thanks,
 
Slowpoke  
Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5

They don't call me "Slowpoke" for nothin'!
Download All
0 Kudos
Message 5 of 7
(4,598 Views)

Hi slowpoke,

Posting the coe will let us "poke" at it without having to re-build ti from scratch.

So based on the images alone.

I'd first suggets you squence the scale property such that it happens before the loop starts.

I'd also go with a parameteric plto since this let explicitly efine all of your point.

Trying to help,

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 7
(4,569 Views)

Hi Ben,

*Sheepish grin*  Sorry about that.  At any rate, I figured it out.  I needed to scale the graph using the x and y vectors, but I was thrown off a bit by the fact that they are optional inputs, forgetting that they have default values based on the size of the z-matrix.  All I needed to do was apply the appropriate scaling factor to each member of the x and y vector arrays, and voila.

Thank you very much for your help!  This n00bian moment brought to you by...

Slowpoke 

Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5

They don't call me "Slowpoke" for nothin'!
0 Kudos
Message 7 of 7
(4,562 Views)