Hi,
Scripts in MetaPoints:
1. Context's points - you can add some points to your MetaPoint for access from script.
2. Final value - result, have to save with commnad return value.
3. You cannot save value to other points from script
4. You cannot get others values from points, only last value. You cannot take previous value from Metapoint in your script without simple hack.
Hack for previous value from MetaPoint
1. create your metapoint with some simply script
2. save your metapoint and activate it and activate datasource - green light
3. go to another screen on Mango - views, lists and return back to MetaDataSource and metapoint. Now you can add this metapoint as source point for your script.
4. disable alarm level - Context point disabled = NONE
I am working in ScadaBR, clone of Mango. Yesterday I modified MetaDataPoints and I added new functions for scripts - last(limit) ... gets last point values and list(from, to) ... gets list of values between ....
It works good.
|
| Filename |
example_metapoint_increment.png |
Download
|
| Description |
|
| Filesize |
148 Kbytes
|
| Downloaded: |
70 time(s) |
This message was edited 1 time. Last update was at 11/11/2011 11:21:23
|