LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to rotate objects or pictures on my FP?

Hi there,

i'd like to rotate objects on my front panel programmatically, e.g. a pasted arrow to indicate a direction . As an alternative i could imagine to rotate a picture in some kind of AcvtiveX control. does anybody got a clue?

thanks
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 1 of 24
(9,328 Views)
You could make a small picture of each arrow, then use a picture ring indicator to display the one appropriate for the current situation.

You could also use a picture indicator and generate an arrow image (A very simple version 1x1 of the vector plot I made for this recent thread.) 😉

Message Edited by altenbach on 03-22-2005 08:46 AM

Message 2 of 24
(9,322 Views)
thx altenbach for your reply

i tried the picture ring thing too, but if you want to avoid flickering you need a lot of pictures to achieve a good angular resolution, and i need to rotate the 10s of pictures by hand with an external app..

by the way: would be nice to get/set the bitmaps of a picturering by a property node.

your example of the image control should do the job, i'll do it that way if i can't find a solution letting me rotate an arbitrary picture, e.g. for a fancy FP.

thx and best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 24
(9,316 Views)
The easiest way to get an arrow to rotate is to use a knob control. You can customize it to show an arrow by copying the arrow decoration and then replace the standard knob needle in the control editor.
Message 4 of 24
(9,307 Views)
Rotating an arbitrary picture is just a transformation, should also be easy.

I made a quick example (LabVIEW 7.1), see if it makes sense. 🙂

Message Edited by altenbach on 03-22-2005 10:11 AM

Message 5 of 24
(9,304 Views)
thx altenbach

thats it;-)

dennis: thats brilliant too!
but when i replace the needle with my bitmap, the picture just moves, i.e. the center of the picture follows the head of the needle while the upside is still upside (using LV 7.1 FDS). i'll try it again tomorrow.

thx all & best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 6 of 24
(9,296 Views)
Yeah, that's why I used a decoration instead of a bitmap. My technique only works with true LabVIEW objects.
0 Kudos
Message 7 of 24
(9,289 Views)
>but when i replace the needle with my bitmap, the picture just moves, i.e. the center of the picture follows
>the head of the needle while the upside is still upside (using LV 7.1 FDS). i'll try it again tomorrow.


You need an emf, not bmp.

George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 8 of 24
(9,285 Views)
..can't find any words to express my pleasure...
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 9 of 24
(9,269 Views)

Looking for a possibility to rotate a Valve on the frontpanel I found this thread.

Unfortunatly with LV8.6.1  I simply can´t get a .emf file to rotate.

It just moves in a circle.

I swapped the needle with an emf graphic in the control editor using "Dial with Arrow.ctl"

I even used emf2vec.exe to assure that the emf file is vectorized.

Maybe someone can upload this control with a swapped needle?

 

What am I doing wrong?

 

Thanks a Lot!!

 

tom

0 Kudos
Message 10 of 24
(7,878 Views)