A flexible algorithm framework for closed-loop neuromodulation research systems | IEEE Conference Publication | IEEE Xplore