LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plot 3 Numeric variables with 3D Surface

Hello,
now i'm in the last steps to finish my exam and i must show the results in 3D Surface.
I have x,y and z as Numeric Variables.The values changes every second!
When i run the programm and change the Variables, only the scala in x and y changes but i can't see any charts and graphs.
I attached a screenshot from the part where i wired the 3D Surface.
I read in the LabVIEW Reference the Array and the String Part, but it's not easy to see how i can wire it.
Maybe i make a mistake with the array Elements?

Thanks for your answer in advance!
Greetings,
Ender Ekinci
0 Kudos
Message 1 of 7
(3,547 Views)
It sounds like you are wiring the changing variables into the X and Y vectors. These are the ones which you want to keep constant (probably) and want to see the curve ( Z axis ) fluctuate. I'm attaching a VI called Simple Curve (it's a LabVIEW example program) that demonstrates how you want to do this. Hopefully it will get you started in the right direction.
J.R. Allen
0 Kudos
Message 2 of 7
(3,547 Views)
Hiya

It looks like you are wiring the x and y data into the x and y vectors. When you use the 3D surface graph you need to wire the x, y and z data into the z matrix as a 2D array. See the attached example (in LV 6.0) i quickly put together for you..

I hope this helps you

Kim
0 Kudos
Message 3 of 7
(3,547 Views)
Hello,
i can't find you attached example Programm, maybe you forget it ?
thx,
Ender
0 Kudos
Message 4 of 7
(3,547 Views)
Hello Kim,
thanks for the work and for the example.
It works but i can't see any charts on the screen, why ?
I programm the same again, but i became a error when i wire the array wit the z matrix.
please help.
Ender
0 Kudos
Message 5 of 7
(3,547 Views)
There should be a chart and an array indicator on the front panel i sent.

I'm not sure why you get an error when you wire your array into the Z matrix. Maybe you are not wiring the x, y and z data as 3 rows(or columns) in a 2D array? If you send your code or an example to illustrate your problem i may be able to help more. (NB. I can only open LV 6.0.2 files or below as i do not have LV 6.1).

Kim
0 Kudos
Message 6 of 7
(3,547 Views)
The three-d graphs in LabVIEW are activeX controls. So you can just have a problem with the controls and LabVIEW still function properly. When you say that you cannot see any charts, do you mean that the control is empty of any image, or that you see an axis but no plots? Best fix I can offer assuming your 3-d graphs are not working is to uninstall and reinstall LabVIEW. Although you will be removing properly installed software, this is the quickest and surest way to ensure you have a properly working version of LabVIEW. If that does not resolve the issue, give tech support a call at www.ni.com/ask .
0 Kudos
Message 7 of 7
(3,547 Views)