Connect trackbar with Gauge

Support forum for MegunoLink
Post Reply
moisasebi10
Posts: 1
Joined: Wed Aug 04, 2021 12:38 pm

Wed Aug 04, 2021 12:43 pm

Hello!

I made a little project with somebody, a project which consists in a potentiometer that sends a value to the gauge from megunolink and when you rotate the potentiometer, the value increses/decreases and the "niddle" from gauge it's moving at the same time. But now i want to control this movement from a trackbar. How do I connect the trackbar with the gauge, such that when i move the trackbar, the needle's gauge modifies at the same time?

thank you!
philr
Posts: 378
Joined: Mon May 26, 2014 10:58 am

Sun Aug 22, 2021 7:39 am

Hi, it can be done but it will also send messages to your micro (we are looking at adding a way to avoid this spam). You can put this in the WhenValueChanges box:

[IPGauge1.Value=TrackBarWithIndicator1.Value]

This sets the gauge to the trackbar value.

Cheers
Phil
Post Reply