LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Knob Eyeballs

Solved!
Go to solution

A hundred bucks to anyone who makes them roll when they hear the wife's voice!!!!!   Smiley Wink

 

 

Jeffrey Zola
0 Kudos
Message 21 of 34
(2,146 Views)

@Jeffrey_Zola wrote:

A hundred bucks to anyone who makes them roll when they hear the wife's voice!!!!!   Smiley Wink


What's the dominant frequency? 😄

Message 22 of 34
(2,134 Views)

Since they eyes are Knobs they never can look directly at you!

 

Example:

eyes.png

(Source: http://www.javascriptkit.com/script/script2/xeye.shtml )

 

Perhaps you could draw circles for eyes in a 2D Picture indicator, hmmm.

Craig H. | CLA CTA CLED | Applications Engineer | NI Employee 2012-2023
0 Kudos
Message 23 of 34
(2,133 Views)

@altenbach wrote:

@Jeffrey_Zola wrote:

A hundred bucks to anyone who makes them roll when they hear the wife's voice!!!!!   Smiley Wink


What's the dominant frequency? 😄


Not really sure.  But she's frequently dominant!   Smiley LOL

Jeffrey Zola
Message 24 of 34
(2,127 Views)

@Craig_ wrote:

Since they eyes are Knobs they never can look directly at you!

 

Perhaps you could draw circles for eyes in a 2D Picture indicator, hmmm.


Sounds simple enough - take the current coords of the cursor and convert that to picture coords (subtract the picture control's position and origin, etc., I don't think there's a dedicated method) and draw the circle at that point, but before you draw it, you need to use In Range and Coerce to keep those values within the circle. To do that, just use the reverse method of what I did in the earlier code to convert the r and theta to the X and Y of the edge of the circle.

 

You will probably have to account for the size of the circle you draw both for centering on the cursor and for not drawing over the actual circumference on the eye.

 

I'll leave the actual implementation to someone else.

 

Of course, if the eye itself is not a circle (in your Java example it's an ellipse), the story could be more complicated. Presumably in the case of an ellipse you would have to use the ellipse equation rather than the simple polar to XY conversion to get the edge.


___________________
Try to take over the world!
0 Kudos
Message 25 of 34
(2,103 Views)

@altenbach wrote:

Of course we could satirize the recent NSA scandal, showing the power of scalable code. 😄


Altenbach, that is the creepiest front panel I've ever seen.  And I can't seem to stop... staring back at... it...

Message 26 of 34
(2,071 Views)

@altenbach wrote:

Of course we could satirize the recent NSA scandal, showing the power of scalable code. :smileyvery-happy:


I always figured Altenbach had a lot of pupils following him around....

 

Especially here on the forums, with his wealth of LabVIEW knowledge and expertise!

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 27 of 34
(2,045 Views)

Thanks, tst.  That is similar to what I did, except I used altenbach's graphics rather than your more impressive ones.

 

While we all know who is fastest, we now know who blinks first as well.

 

Lynn

0 Kudos
Message 28 of 34
(2,044 Views)

So I was a little bored and I added a mouth that tries to eat the mouse.  As you get closer, it opens wider.  The appearance is pretty crude but o well.

 

Code is based on the radius from the top center of the bottom set of teeth (picture controls).  Constants used worked on my system.

 

 

Message 29 of 34
(1,988 Views)

@pjr1121 wrote:

So I was a little bored and I added a mouth that tries to eat the mouse.  As you get closer, it opens wider.  The appearance is pretty crude but o well.

 

Code is based on the radius from the top center of the bottom set of teeth (picture controls).  Constants used worked on my system.

 

 


 

Now I know when my wife rolls HER eyes at the likes of us.....

Jeffrey Zola
0 Kudos
Message 30 of 34
(1,961 Views)