umair-hassan / best-toolbox

Brain Electrophysiological recording and STimulation (BEST) Toolbox, is a MATLAB based open source software that interfaces with a wide variety of EEG, EMG, TMS and other stimulating devices, and allows to run flexibly configured but fully automated closed-loop protocols.
26 stars 9 forks source link

Interface error for TUS Brain state #37

Open achetverikov opened 2 years ago

achetverikov commented 2 years ago

When selecting "Dependent" in the "Brain state" list, Matlab (2017b) throws an error:

Error using uix.VBox/set.Heights (line 67)
Size of property 'Heights' must match size of contents.

Error in best_application/pi_rtus/cb_SetHeights (line 7116)
                        set(obj.pi.rtus.r0v1,'Heights',[40 390 75 -3 55])

Error in best_application/pi_rtus (line 7105)
            cb_SetHeights;

Error in best_application/RefreshProtocol (line 11317)
                    obj.pi_rtus;

Error in best_application/pi_rtus/cb_UniversalPanelAdaptation (line 7108)
                obj.RefreshProtocol;

Error while evaluating UIControl Callback.
umair-hassan commented 2 years ago

Hi Andrey,

The brain-state dependent protocols in the BEST toolbox are meant for closed-loop EEG analysis based protocols in which the real-time brain-state can be estimated, at the moment using EEG only. Since real-time EEG triggered TUS is a new combination, therefore this feature is not functional yet, but with the advances in TUS-EEG, this feature will also be growing in the future.

Your use case of using the TUS in a time dependent fashion relative to behavioral task would fall in the category of brain-state independent protocol.