User Input / Configuration
-
Morning,
So I have a task to do some calculations on various data point with user configurable scalar variables.
I am imagining right now that I can create some meta data points, and set the value of these points to a constant, and then use those as the variables for other meta data point calculations.
My question is, how might I allow a user to adjust the value of the static scalar meta data points?
Or, is there a better way to do this?
Thanks,
Alex -
I dont see anything wrong with this method. You will have the added advantage of being able to trend the variables. If a point is made settable. One can set it on the data point details page. If you plan on making a UI where they can set the points and preview the outcome then you will use
<ma-set-point-value point="myPoint"></ma-set-point-value>
In your HTMLEdit: forgot to mention virtual data points will work best for the variables.
-
Great, thanks for the pointer to
<ma-set-point-value point="myPoint"></ma-set-point-value>
that is what I needed.
Are virtual data points different than meta data points?
Thanks,
Alex -
Thanks Craig!
Alex,
Are virtual data points different than meta data points?
Yes, briefly,
Virtual points can:
- Have simple change types to simulate data easier.
- Performs a 'change' when refresh point value is called
- Not be polled so that they're only user updated (data source setting)
While Meta points can
- Have a script executed on cron patterns or from point events (updated, changed, logged)
- Have a script executed when the point's value is refreshed
return UNCHANGED;
to not update their value
So very different!