LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to insert numerical indicators in 3D picture

Solved!
Go to solution

Hello,

 

Let's say I have a *.wrl file which contains a room drawing.  Take into account that I know how manipulate the SceneObject and display it into 3D picture.  Is it possible to position different temperature indicators (numerical indicators) in the 3D Picture indicator, so that when I move around the room in the 3D picture the indicators follow there respective position (while updating their values) ?

 

Thanks,

 

Michel

0 Kudos
Message 1 of 7
(3,710 Views)
Solution
Accepted by Michel_Gauvin

A trick that I know is to get the image of the control you want and apply texture to a plane. I did this below:

 

RoomTemperature.PNG

 

In short what I did is:

1. Create a room using a box. Make it transparent and blend with other objects

2. Create a plane (a box with y = 0.001) and apply texture to it. The texture is the image of the control (the temperature control)

3. Do the scene and change the image (texture) as the value changes

4. close references.

 

Here is the code as a reference (using LV 2013). Does that work for you?

Barp - Control, Simulation, RTT and HIL - National Instruments
Message 2 of 7
(3,647 Views)

Hello Barp,

 

This looks good, can you save it in LabVIEW 2012 so I can review the code?

 

Thanks,

 

Michel

0 Kudos
Message 3 of 7
(3,627 Views)

attached

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

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

Thanks Jim,

 

But there is no 3D Picture in vi.lib in LabVIEW 2012 😞  so it's broken.  As an example there is no "Set Drawing Style.vi" in LV2012.

 

Michel

0 Kudos
Message 5 of 7
(3,568 Views)

In 2013, we instroduced several VIs for the 3D palette that will make the code very 'readable', but the functionality is the same.

 

See code in attachment using the 2012 API.... not as elegant as 2013, but should work the same....

Barp - Control, Simulation, RTT and HIL - National Instruments
Message 6 of 7
(3,528 Views)

Very neat example, thank you.

0 Kudos
Message 7 of 7
(3,016 Views)