LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot 2 pictures moving

Solved!
Go to solution

HI Guys,

 

I'm facing a problem: I want to create a plot that shows me a car and a bus moving according the data I receive from telemetry.

So, I would like to know if you guys can help me on that.

What kind of graph I should use? How can I call a picture (car/bus) to be showed on the graph?

 

Hope somebody can help me

 

Regards

 

Kito

0 Kudos
Message 1 of 10
(4,052 Views)

As a start I'd suggest playing with a picture control - examples exist on these forums and probably the help files too.

You can control the position programmatically based on your telemetry using a property node.

 

To show a picture on a graph I would simply position the picture over the graph so that it appears to be 'on' the graph. The trick will be to work out the coordinates to place the picture based on the axes of your graph.

 

Ian

0 Kudos
Message 2 of 10
(4,031 Views)

Ok, But the ideia is to use 2D pictures. So what you've suggested I think it is for 3D, right?

 

But anyway, thanks for your attention

 

Regards

 

Kito

0 Kudos
Message 3 of 10
(4,025 Views)
Solution
Accepted by Kitofelipe

Nope, nothing to do with 3D pictures - just simple pictures, simple graphs.

See attached as a hasty example (V8.5)

Ian

Message 4 of 10
(4,015 Views)

Thank _Ian_....that's a very good start....

 

Just one more question....

 

Instead of those "white blocks", can I use only the car and bus pictures (.PNG)?  without lines ....

 

Regards

 

Felipe

0 Kudos
Message 5 of 10
(4,006 Views)

Thats a help file job - not difficult.

Use customize control and transparency to get rid of the border round the picture.

load picture.PNG

Message 6 of 10
(3,992 Views)

Everything's been working fine.....thanks a lot for your helping.,,,,,,

 

Is there any way to rotate the picture according to the movement the picture does?

 

for example....if the bus goes up the picture should be poiteded up, If the bus goes down (in diagonal direction)  the picture should be pointed down to that direction and so on....

 

Regards

 

Kito

0 Kudos
Message 7 of 10
(3,975 Views)

Maybe just monitor which direction the picture is moving and load a different image accordingly - i.e. create a few pictures: up, down, left, right and maybe some for the diagonals too. Then just work out which picture is closest to the direction it is moving.

Conceptually that feels easier than trying to rotate the picture programmatically.

Message 8 of 10
(3,955 Views)

For what its worth, heres what I meant - made using a combination of powerpoint clip art and adding transparency. I also tweaked the property nodes to keep the pictures on the plot area.

 

It is strangely soothing to watch... maybe I should add a bit of pond weed and replace the arrows with goldfish... hey presto, my very own office fish tank! Smiley Very Happy

0 Kudos
Message 9 of 10
(3,930 Views)

As its Friday lunch time, and everyone knows that you're supposed to have fish on Friday...Smiley Wink

 

swimming.PNG

 

(Had I intended to do this from the beginning I don't think I'd be doing it this way, but seeing as the code was there asking to be modified...)

0 Kudos
Message 10 of 10
(3,914 Views)