The code might look something like this:
app.Gauge.Value = var;
Any time this code is called in your app, it will update the value of Gauge to be the current value of var.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!