12-07-2016 04:21 AM
Hi,
I need help in decorating my front panel. How do I insert arrows indicting directions. For e.g. if the output is a postive number point downwards else point upwards. I tried using 2D picture control but I am not able to drop the image into the box.
Thanks.
Solved! Go to Solution.
12-07-2016 04:36 AM
Hi S.,
I tried using 2D picture control but I am not able to drop the image into the box.
There are functions to load images (like JPG, PNG, BMP) and to display them in a 2D picture indicator - use them!
You can also customize a boolean button to show your arrow images. Then all you need to do is switching the boolean indicator…
12-07-2016 07:49 AM
Have you looked at the Silver Palette?
Bob Schor
12-07-2016 07:52 AM
Try using a Picture Ring.
You can customize it (right-click Customize) and import images of your choice. Once created you can picture the right image by passing the appropriate number to select same.
Try it, you will like it!
Ben
12-07-2016 08:56 PM
How do you customize the boolean LED ?
12-08-2016 12:24 AM - edited 12-08-2016 12:27 AM
Read this page about how to customize boolean controls/indicators: http://digital.ni.com/public.nsf/allkb/AD62483251BEDCDA86256DAB007AAB3C
What I usually do, I look for nice and sharp icons in png format, and in the required pixel size to match with the size of my buttons. There are lots of repositories where you can get such icons for free, and they look very good. Usually I prefer the icons with minimalistic design plus transparent background 🙂 Here is one such site: https://www.iconfinder.com/search/?q=png&price=free
Here I show some examples I created in this way (I designed these rather huge buttons for a large screen application):
EDIT: but re-reading your very first post, what you need is Picture Ring as Ben suggested (so depending on certain conditions, you can programmatically set a Picture Ring indicator to show you directions, etc.)
12-08-2016 12:52 AM - edited 12-08-2016 12:53 AM
@S.Neo wrote:
How do you customize the boolean LED ?
No. Do what Ben suggested. Yes, you could use a customized LED indicator for a simple up/down arrow marker, since you have only two states. But imagine if later you need to add more states: like left/rigth, etc. If you use a Picture Ring from the beginning, your code will be much more scalable.
I show an example here how to use a Picture Ring ( http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/addingpictitemstoringcntrl/ ). If you use a Picture Ring from the "Classic" palette, you can even hide the borders (by selecting the brush tool, and using the upper right x symbol representing "transparent colour")!
12-08-2016 01:11 AM - edited 12-08-2016 01:12 AM
Actually i was thinking of creating an animated arrow that will move up and down. I think pic ring is able to do it. But I'm not sure how to use it. Blokk, I am not able to open the vi as I only have LabView 2012.
12-08-2016 01:44 AM - edited 12-08-2016 01:45 AM
Hi Neo,
i was thinking
Well, we can't guess what you are "thinking" - we can only answer your question in written form… 😄
When you want to have an "animated" arrow you can also draw it in a 2D picture indicator.
Or use a XY graph to draw your arrow: use complex numbers for coordinates and rotate the arrow by applying "simple basic complex" math… 😄
12-08-2016 02:32 AM
Find the VI attached in version 2012. So could you clarify what you want? You want a kind of animation, or just to show two different pictures: arrow up and down?