How to use Multi State Button when there are two control tags

To avoid a race condition:

Use two custom properties in the multistate indicator, each bound to Tag0.0 and Tag0.1 and bidirectional. Then use a property change script:

if event.propertyName == 'controlValue':
	event.source.startBit = event.newValue
	event.source.stopBit = not event.newValue

5 Likes