Logic Machine Forum
Mosaic 3.0: Widget data types and converting - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Mosaic 3.0: Widget data types and converting (/showthread.php?tid=2981)



Mosaic 3.0: Widget data types and converting - dreamcatcher - 14.11.2020

I have just started to look at the visualization so this is all new to me. So forgive me for any stupid questions...

I've tried a couple of the widgets like the CO/humid/temp widget and weather station widget. However, I've noticed that not all objects are available for selection. E.g. for humidity I had to change my object type to 09.001 temperature. 09.002 did not work. Besides when I found out this and could select the correct object the displayed percentage does not match the object parameter so there appears to be some scaling. 45% on group object is displayed as 18% in the widget.

The latter seems strange. Is there some sort of scaling/conversion in the widget? If so, how can you identify this property?
I would also like to identify what kind of object datatypes are allowed in the widget parameters. It takes some time just experimenting with the object type settings...


RE: Mosaic 3.0: Widget data types and converting - admin - 16.11.2020

Looks like an issue between 1-byte unsigned and 1-byte scaled datatype. Both types have a 0..255 range but scaled converts this to 0..100. That's why you get 45%, because it's 18% * 255 / 100.


RE: Mosaic 3.0: Widget data types and converting - Daniel - 16.11.2020

Each widget has predefined dpt type to help in quick selection. There is too many of them to make documentation. Ask for any particular one you are interested.