A hardware and software system for MRI applications requiring external device data