BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

LV Picture Control

This thread can serve for discusion of the LV Picture control and how it can be used or abused.

As mentioned in the "First Message" thread found here

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=2&jump=true

(see message from tst and myself)

The LV Picture control is a powerful tool that lets you "break rules" with LV FP's.

Let me first start by thanking Paul Austin, Principal Architect, LabVIEW R&D who invented the picture control and hold the patent on same.

When combined with the event structure and an "invoke node >>> Get image" virtual controls can be realized.

Notes:
1) If you have a control that can only take on a limited number of states (green, red) you can get the image at start-up time and just insetert the appropriate image when required.

2) A controls "bounds" will define the "sweet spot" for the control once you correct ofr it location in the picture.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 1 of 57
(42,613 Views)
I've used the picture control to make a few custom controls that were not possible with the standard controls by just customizing them.

The attached library is a fancy demo version of a slider I needed several years ago. The slider needed to act more like a potentiometer and output values that were in between the current value and the selected value. The standard slider will jump directly from the current value to the selected value with nothing in between. This caused a problem for the controller we were sending the values to.

So I came up with a slider using the picture control and some code to ramp the value up and down. I then made this demo version just to see how far I could take it. It adds settable min/max range and displays the scale, the ability to have the slider return to center/min/max when the mouse is released or stay put and you can change the displayed colors.

This was written (and saved) in 6.0.2, but runs fine in anything higher than that.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 57
(42,603 Views)
Hi Ed,

I like this example!

Molly found the original thread where JP suggested using an invoke node to get an image that is latter inserted were required.

http://forums.ni.com/ni/board/message?board.id=170&message.id=24151

His example is something that blew me away when I first saw it and realized that this saves me a lot of work.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 57
(42,578 Views)
Just for the record (and to help future browsing), I have posted an example that uses the picture control to move a bunch of booleans around in a "random walk" manner in this thread. The example is "Obfuse_Picture".

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=5&jump=true

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 57
(42,482 Views)
Ben,

How is the hierarchy tool coming along. Did you solve the complexities of using the picture controls?

BJD1613
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
Message 5 of 57
(42,400 Views)
Hi BJD,

That is secret!

It's nice to know you are well enough to prowl the Exchange.

Watch the Model railroad thread for an update this evening.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 57
(42,410 Views)
Hummmm...
To prowl...
That's again a word I ignored before. I'll add it to tst's "disgruntled" to start a nice collection. If any of you want to improve his French, just to maintain some symetry in the exchange, don't hesitate...

CC
Chilly Charly    (aka CC)
Message 7 of 57
(42,412 Views)
I think Parose is a better word... not prowl. I am sure that it is probably close to being done so someday I will have to see it!!! Take care.

BJD
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
Message 8 of 57
(42,412 Views)
OK BJD.

Nagging is good. I will get back to that project soon. The math was just starting to make my eyes cross, so I switched to something easier, i.e. the the 3-d railroad.

please look here

http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=296#M296

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 9 of 57
(42,442 Views)
The below link is to a discussion of the performance of guage controls with digital indicators.

http://forums.ni.com/ni/board/message?board.id=170&message.id=120315#M120315

In it PJM posted a concept VI that uses a picture control to give the impresion that a guage is on the FP.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 10 of 57
(42,353 Views)