In Data Acquisition Toolbox you can define callback functions. The callback functions are running in the background and make some signal processing. I would like to modify parameters of the signal processing algorithms 'on-the-fly'(from workspace by calling an appropriate function). Studying example suggests to use global variables in the workspace.
My question is what is the safe way to communicate between the workspace and the callback function? I.e. how global variables can be protected?
In other sw environments you have semaphore, mutex, critical section, etc. But in Matlab or in Data Acquisition Toolbox I could not find the official solution to this problem.