This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Write in a Single Bit of a Word
#4
Example can be changed to accept any number of input objects.
If you want to convert boolean value to a number you can do this via an event script (1/1/2 is output object):
Code:
value = event.getvalue()
out = value and 1 or 0
grp.write('1/1/2', out)
Reply


Messages In This Thread
RE: Write in a Single Bit of a Word - by admin - 14.02.2020, 12:15

Forum Jump: