Dashboard slider set value
-
Hi all,
I'm making some tests on modifying data values of a MODBUS data sources.In your demo about the dashboard's slider component, I'm seeing that each action on the slider entail directly a write data command towards the connected MODBUS slave.
In my dashboard I'd like to write MODBUS data by means of two following steps:
1 - modifying client-side data by using the slider;
2 - setting the MODBUS source data point with the client-side data values by means a "SET" button.Is there a way to do it?
Thanks a lot. -
@LarryVaredo I think this should accomplish what you are asking.
<div layout="column"> <md-input-container class="md-block"> <label>Choose a point</label> <ma-point-list limit="200" ng-model="myPoint"></ma-point-list> </md-input-container> <ma-point-value point="myPoint"></ma-point-value> <md-slider ng-disabled="!myPoint.enabled" md-discrete step="1" min="0" max="100" ng-model="ptValue"> </md-slider> <md-button ng-click="myPoint.setValue(ptValue)" class="md-raised">Set to slider value</md-button> </div>
-
@Jared-Wiltshire
Thanks, it works!