LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d sphere inflating and deflating

I am trying to build a simple VI which when given a duration, will display a sphere increasing in size/scale and then decreasing in size/scale for the same duration.


Imagine this to be like a baloon that is inflating and deflating continuously. The inflatrion shuld start from 0.5 scale to 1 and then it should deflate in equal number of steps from1 down to 0.5

I have tried to implement this  using simple logic but the 3d display doesnt work correctly . Not sure if my logic is right.

Also, I have only managed to do a 0 to 1 scale increase instead of a 0.5 to 1

 

Code attached.

 

0 Kudos
Message 1 of 7
(4,043 Views)
I don't know if I over simplified this but here you go.
Message Edited by aeastet on 10-20-2009 01:07 PM
Tim
GHSP
0 Kudos
Message 2 of 7
(4,030 Views)

Hi Jaspal,

 

I attached a version of your VI in 8.6 that does what I think you'd like.

 

There were 2 problems with your VI that I saw, the first was you wired "N" from the loop instead of "i".  So you were always comparing 20>9 and never getting to your other case.

 

The other is it looks like you were splitting the 3D Picture Control reference and expecting it to treat all of your 3D Picture Controls independently.  With a reference any rotations/scales/translations will apply to the scene on that reference and all controls wired to it.

  

0 Kudos
Message 3 of 7
(4,024 Views)

Thanks aeastet!

 

But I can't open it. Still on 8.6. 😞

Can you save it for previous versions?

0 Kudos
Message 4 of 7
(4,022 Views)
Here is 8.6
Tim
GHSP
0 Kudos
Message 5 of 7
(4,018 Views)

I need to now add some more features to the above VI. I have to use a growing and shrinking balloon to simulate human lungs that inflate and deflate as we breathe in and out.

To do this, I want to show some boundaries in the 3D sphere which show the empty and full positions of the lungs (smallest and largest radius of the sphere)

I have implemented this using 10 LED's placed one above the other in concentric circles that are lit in order, but this is too clumsy and not a great visual.

 

Any ideas for implementing this on a sphere? I tried overlaying three different sphere's in 1 object but I cannot adjust transparency and can only see 1 at a time.

I tried pasting a circle created in word over the 3D sphere but LabVIEW doesn't allow that.

 

Would appreciate any help.

 

Thanks,

Jas

(using 8.6)

0 Kudos
Message 6 of 7
(3,892 Views)
Why not change the color of the sphere based on the size??
0 Kudos
Message 7 of 7
(3,857 Views)