Hello wire workers,
I am fairly green when it comes to dynamic event registration, so my understanding of it is probably quite flawed, but what I have implemented seems to work fine.
Assuming a fairly typical queued producer/consumer state machine architecture.
Up till now, I have done the dynamic event registration outside (i.e. to the left of) the UI loop, so all events get registered before the UI loop starts to run.
My question is:
How can I register events from inside one of the consumer loops? I cannot wire it...
Maybe an example will make my scenario more clear.
I have a DAQ loop (queued state machine). In the init state of this loop I want to register a digital input such that changes on a line are handled by my main event structure (in the totally separate UI loop). Is this possible?
I look forward to hearing positive answers