Logic Machine Forum
Get value from ets - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Get value from ets (/showthread.php?tid=4109)



Get value from ets - stavros - 23.06.2022

Hello to everyone,
In a script i use the command
status1 = grp.getvalue('0/0/7')
but i noticed that with this command i just read the value from logic machine not from the bus(there is no refresh in the value). is there any command to make a read from the bus? I know that in the properties of the objects there is an option poll interval but i don't want to use this bacause of the traffic in the network.
Thank you in advance


RE: Get value from ets - Daniel - 23.06.2022

Code:
-- send read request to 1/1/1
grp.read('1/1/1')



RE: Get value from ets - admin - 23.06.2022

Also see this for a sync read-response request:
https://forum.logicmachine.net/showthread.php?tid=2139&pid=13364#pid13364