LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image manipulation

Hi, I found this example that I would like to use as a starting point to do a simple image rotation as an indicator. 

 

I would like to learn how to do this. Are there any NI courses or youtube videos that teach this? I may be searching for the wrong topic as I could not find what I was looking for

Thank you. 

 

https://forums.ni.com/t5/Example-Code/Artificial-Horizon-with-LabVIEW/ta-p/3498922?profile.language=...

0 Kudos
Message 1 of 2
(903 Views)

There are two main things you could try, a 2d picture control lets you draw a picture (basically a big array of pixel, there are good examples on how to use it). Once you had your arbitrary picture you can use math to rotate the the array of pixels.
The other option I would consider is to use use a picture ring. Its essentially an enum that has a picture for each value. This is handy if the thing you want to rotate has a set number of fixed positions like a key switch. 

_0-1633466644509.png

_1-1633466714834.png

Then you just pick which angle you want it to be at and set the enum accordingly. I usually use a program like gimp/photoshop to create the images I need. These are also reasonably fast because you dont have to do any math on the fly to redraw your picture. 

0 Kudos
Message 2 of 2
(877 Views)