LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot 2D in activex 3D graph like a waterfall

How can I Plot 2D in activex 3D graph like a waterfall. The plot simple surface function connects all the plots together since its a suface. How can I just plot a line with XYZ coords? XY can be the graph data then Z and Y will raise/lower forward/back to put in a waterfall like order.
 
Thanks.
0 Kudos
Message 1 of 10
(5,320 Views)
Hi sergsergserg,

You would have to extract the Z data and put the XY data on planes at different values of Z. 

If you have LabVIEW and the Sound and Vibration Toolkit, you can build a LabVIEW DLL, that uses the waterfall plot, to call from CVI.

Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 2 of 10
(5,289 Views)
I dont have labview Smiley Sad. I am looking for an alternative to building a DLL from labview.
0 Kudos
Message 3 of 10
(5,278 Views)

Hi sergsergserg,

Which version of LabWindows do you have?  The version I use, 8.0.1, has a nifty OpenGL 3D plotting control, which I prefer since the ActiveX 3D control seems to have a memory bug.  Unfortunately I don't know if the OpenGL control comes with LabWindows or if it's a download.

Slowpoke

 

 

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

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

Yes, CVI comes with an Open GL fp.

Take a look at  ..toolslib\custctrl\cviogl.fp. I also see a 3DGraph fp there too...

Good luck!

0 Kudos
Message 5 of 10
(5,246 Views)
Slowpoke,

Can you give us some details on what you meant by "since the ActiveX 3D control seems to have a memory bug"?
Is it in version 8.0.1 that are you seeing this?
What is going on when you see this behavior?
What are the symptoms that lead you to believe it is a memory bug?
Thanks.
Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 6 of 10
(5,227 Views)

Hi Gavin,

I've already made National Instruments aware of the problem:

http://forums.ni.com/ni/board/message?board.id=180&message.id=26633#M26633

Sorry, should've posted the link earlier.

Slowpoke

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

They don't call me "Slowpoke" for nothin'!
0 Kudos
Message 7 of 10
(5,218 Views)
Hi Slowpoke,

This was actually an issue with the examples and not the graph itself.  The examples were not discarding a variant type used for the graph.  You can modify the example to discard the variant type, or use the graph outside of the example.

I also replied (with the same message) to your other thread for other viewers.

Gavin Fox
Systems Software
National Instruments
0 Kudos
Message 8 of 10
(5,211 Views)
I have labwindows 6.0 and can only see activex 3d graph. I cant even find which command will graph a 2D line on it without trying to create a surface. I have approximately 20 arrays with x/y coordinates.
0 Kudos
Message 9 of 10
(5,164 Views)
Hi sergsergserg,

You will need to set the plot style to point, or possibly line & point depending on your needs:
CW3DGraphLib_CWPlot3DSetStyle (plotHandle, NULL, CW3DGraphLibConst_cwPoint);
CW3DGraphLib_CWPlot3DSetStyle (plotHandle, NULL, CW3DGraphLibConst_cwLinePoint);


Please refer to the following 3DGraph example that ships with CVI 6.0:
..\MeasurementStudio\CVI\samples\userint\activex\3DGraph.cws

To actually plot the data you use (as seen on line 220 of the example):
CW3DGraphLib_CWPlot3DPlot3DSimpleSurface (plotHandle, NULL, vArray, CA_DEFAULT_VAL);

Even thought the name of this function implies you are plotting a surface, the display actually depends on the previously chosen plot style.

Regards,
0 Kudos
Message 10 of 10
(5,117 Views)