LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build-in 3d plotter of ActiveX plotter (LV 2011)

Hello,

 

For my thesis I need to work with LV. The thesis is about 3D-imaging.

I have just started learning LV, and found out that for 3d plotting, one can use the built-in 3D-graph object or the activeX component.

What are the differences between the two?

The eventual program should read intensity of light in a certain point (x,y,z coordinate) and depening on the value show a shade of gray.

 

Which of the 3D plotters would be more suited for this?

I have plotted both in a VI, and the ActiveX one seemed to be faster in refreshing.

 

Also, I have read the book LV for engineers, which was very beginner I think. Which LV books are more in depth, preferably in 3d-imaging?

 

Thank you

0 Kudos
Message 1 of 12
(4,084 Views)

@kev91 wrote:

Hello,

 

For my thesis I need to work with LV. The thesis is about 3D-imaging.

I have just started learning LV, and found out that for 3d plotting, one can use the built-in 3D-graph object or the activeX component.

What are the differences between the two?

The eventual program should read intensity of light in a certain point (x,y,z coordinate) and depening on the value show a shade of gray.

 

Which of the 3D plotters would be more suited for this?

I have plotted both in a VI, and the ActiveX one seemed to be faster in refreshing.

 

Also, I have read the book LV for engineers, which was very beginner I think. Which LV books are more in depth, preferably in 3d-imaging?

 

Thank you


 

 I know of no books that will help.

 

In this thread you will find an index I created from the varoius 3d threads on this forum.

 

Most of those examples use the ActiveX version.

 

The thread with the car image

 

 

is probably a good place for you to start. The code in that thread uses a set of front panel controls to define the surface and the colors ploted at each point on that surface. I strongly urge you down-load that example code and play with the code until you get a good feel for how the various arrays work together.

 

When you get a mastery of that then take a look at the other threads to see how "the whistles and bells" can be used.

 

Re: the non-ActiveX version...

 

The onyl peopl that answer questions on the other version are NI people (search for yourself) and those threads generally end in "you can't do that." or "I will report the bug."

 

Have fun!

 

Ben

 

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

Ok thank you I will look into your car.

On my own I have tried to make a VI that uses both the LV 3D graph and the activeX one. I create 100 points for a torus (using its parametric function). I can add a color per generated point for the LV 3D graph fine, but for the ActiveX one I can't, it has a color for every time the second for loop has finished (the nested one)(see the VI) resulting in the "stacked ring" appearance.

 

color.png

 

In your example of the car, something called "colorMapValues" are used, I don't understand what that is or how to implement it.

The VI is in the attachment.

Sorry if the code looks bad, I am a very beginner, and most of the activeX things I copy of other threads without understanding it.

 

 

 

0 Kudos
Message 3 of 12
(4,064 Views)

The ActiveX verions (ComponentWorks) uses BGR (red Green Blue) while LV uses RGB (Red Green Blue) for its color.

 

The sub-VI maps LV colors to CW colors.

 

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 12
(4,061 Views)

Thank you for your help so far.

 

In that thread you gave me, this link intrest me.

 

http://forums.ni.com/t5/LabVIEW/redering-a-3d-image-from-an-intensity-stack/m-p/430148#M211266

 

But 1 question, for that program you posted, what value do you give the magnitude so it shows up transparant on the 3D graph?

0 Kudos
Message 5 of 12
(4,057 Views)

"NaN" (Not a Number) will plot a transparent.

 

Ben

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

This seems to have the opposite effect, it places a black dot. (I'm trying to make a quarter sphere)

NaN_Plot.PNG

0 Kudos
Message 7 of 12
(4,052 Views)

A nevermind, I should have given a coordinate NAN, I gave the magnitude NAN.

Thank you Ben! You are really helpfull.

0 Kudos
Message 8 of 12
(4,050 Views)

@kev91 wrote:

A nevermind, I should have given a coordinate NAN, I gave the magnitude NAN.

Thank you Ben! You are really helpfull.


You can be helpful as well!

 

If you post your code (messy is fine as long as it works) and an image of the result THEN you can update the Index thread I pointed you at to start out saying "I posted another example here" with a link to this thread...

 

You will be helping the next person that is following in your foot-steps.

 

I'll even give you Kudos for both posts just to sweeten the deal.

 

I'll watch for your update. Smiley Wink

 

Ben

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

See this thread for a laundry list of reasons why you should stick with the ActiveX implementation.

--
Tim Elsey
Certified LabVIEW Architect
Message 10 of 12
(4,044 Views)