LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D Graphs: various issues

I had some issues when I first tried to use LV 5.1's 3D Graph. The NI
applications engineer who helped me was great. Just wanted to share some
tips:

1: In LV 5.1 but not in LV 6: if the user reinitializes to default, the
3D Graph stops working!
NI: "that's because the reinitialize to default incorrectly sets the
graph's refnum to 0, which is an invalid refnum."
Work-arounds:
* use LV 6.
* customize the menu to hide the reinitialize to default option.
* don't show the menus when running so the user can't accidentally
reinitialize to default.
* use a different VI which will call VI Server to programmatically
reinitialize your VI to default.

2: In LV 5.1 but not in LV 6: the graph does not appear in the
executable! Fix: search you
r system for a "ole_lv5container.dll". It
should be located in the

...\LabVIEW\RESOURCE

directory or in the \LabVIEW\shared\LabVIEW Runtime\5.1\ folder. Place a
copy of this DLL in the same directory as your executable.

3: The 3D Graph will update more quickly if you:
* Reduce the volume of data you pass to it.
* Get the best hardware you can.
* Don't do anything else to compete for the graphics / CPU.
* Change the color depth. To my surprise, the screen updated faster at
16-bit color than 256-color. I suspect that the CPU has to dither the
colors into the smaller palette, and that slows down the update.
* Changing screen resolution (1024*768, etc.) also made 50% difference.
* Right-click the graph, choose Properties, & check the "Use 3D
Acceleration" and "Fast Draw for Zoom/Pan/Rotate" options.

These are my findings, your results may vary depending on h-w & drivers.

Mark
0 Kudos
Message 1 of 2
(2,782 Views)
Wonderful post Mark.

If we could only rate questions.

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 2
(2,782 Views)