LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

request an example for adjustable analogue clock by needles

Solved!
Go to solution

hi 

i have found a lot of analogue clock examples but thing that i want is adjustable analouge clock which I can adjust time via needles to set hour , minutes and second in example in the file attached on 00clockmainUI i want to make the clock adjustable via spinning needles by the user.

does any one has a proper example?

thank you

0 Kudos
Message 1 of 9
(2,517 Views)

Hi ehsan,

 

two notes:

  1. Attach your files in a ZIP archive. Don't force other users to install some proprietary software just to access your files…
  2. When you replace those 3 stacked gauge indicators by just one gauge control with 3 needles you get your request for free!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(2,504 Views)

your right.I didn't realize that , i'm sorry.

your second statement is correct but now the problem is the maximum scale range for 3 needles is the same whereas i want maximum for second and min become 60 and for the hour become 12.

0 Kudos
Message 3 of 9
(2,486 Views)

Hi ehsan,

 

you can do the scaling on your own:

  • seconds/minutes from 0 to 59
  • hours from 0 to 11: you need to scale by 12/60…

 

After all it's simple math!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(2,484 Views)

i don't understand. how? 

i choose properties then scale tab i see only one maximum scale range as the picture attached. how can i make for each needle separated maximum range?

0 Kudos
Message 5 of 9
(2,479 Views)

Hi ehsan,

 


@ehsan75 wrote:

i don't understand. how? 

i choose properties then scale tab i see only one maximum scale range as the picture attached. how can i make for each needle separated maximum range?


You can't apply different scales for the different needles, all share one scale range in the gauge control.

But in your code you can apply another scale on the hour needle: it's simple math…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(2,472 Views)

alright.

i'll be grateful if you show me an example. 

0 Kudos
Message 7 of 9
(2,462 Views)
Solution
Accepted by topic author ehsan75

Hi ehsan,

 

simple math to scale the values for those 3 needles:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 9
(2,451 Views)

thanks a lot

0 Kudos
Message 9 of 9
(2,442 Views)