LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d plot w/ X and Z values interpolate for Y

Hi all,

 

I am working on a VI that takes column data from mutliple .txt files and concatenates them into a 2D array with two columns each with 20000+ elements. Numbers in the frist column run, say 1-200 and then repeat themselves. I would like to plot the first 200 X,Z pairs at Y=1, the next 200 pairs at Y=2, and so on. If that wasn't clear, my 2d array looks something like this

 

1         2

2         4

 .          .

 .          .

200  7

1        5

2        9

 .         .

 

So I would like to plot these sets of 200 XZ pairs at a y-interval of 1. Each set of 200 is measured (X is constant but Z is measured) once every second, so plotting at a y-intterval of 1 would create the timscale I want. I just don't have an array of time data and am hoping to bypass creating one.

 

The way the VI is running now, it plots 11 distinct peaks when viewing the XZ plane. It should show one peak in the XZ plane, extended 11 units in the y-direction. I think the problem is due to not wiring a y-array to the Plot Helper node, but I don't see a way of getting around this.

 

Thanks,

 

M

 

Edit: I am using LabView 2011

Download All
0 Kudos
Message 1 of 2
(2,948 Views)

Hi Miggy,

 

You have to create a Z matrix in order to use the 3D contour function. I have attached an example that shows how to do this.

 

Cheers,

     Jordan.

0 Kudos
Message 2 of 2
(2,897 Views)