10-20-2009 11:08 AM
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.
10-20-2009 12:02 PM - edited 10-20-2009 12:07 PM
10-20-2009 12:39 PM
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.
10-20-2009 12:43 PM
Thanks aeastet!
But I can't open it. Still on 8.6. 😞
Can you save it for previous versions?
10-20-2009 12:54 PM
06-08-2010 06:56 AM
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)
06-08-2010 10:24 AM