cbAircraftDescription Is not a variable as such in this case but a function name. But yes if it’s there because he is thinking it will force the callback in another instrument to fire, then it is incorrect as you mention. The posted code is not complete so it’s anyone’s guess as to what other code is in each of the instruments.Tetrachromat wrote: ↑Fri Nov 05, 2021 11:28 am @Detlef In your server instrument the request_callback references the variable 'cbAircraftDescription'. But there is no variable in scope with that name. That vraiable is defined in the user instrument.
Although as global variable, but it is not shared between instruments.
Each instrument has it's own environment. They do not share anything else than the lua libraries and API.
Paul
I’ve lost track of what the intended purpose of this is now but whatever it is this seems over complex. KISS principals.