In which circumstances to use event, subinstr, UDO

Plleeeeaaassseee format your code. When you don’t it’s impossible to read it correctly. I’m not quite sure what you’re trying to do here, but you don’t start instrument 2 at all. However, it does sound like you are trying to achieve something similar to @Retornz in this thread. Or?