Yes, you can do this. Read this page and scroll down to The Micro Manager Way.