I'm not sure but I'm guessing that something like that would differ for each device, and of course there's the possibility that it may have a domain-specific like language connected to it. I'm intrigued by the idea though. Not to digress but on a semi-related topic I recently came across this http://pyrorobotics.org/
That is interesting. I guess I'm somewhat disheartened to find that out, but it does make sense that a developer would only write system-specific code for a device. One way I can probably do it is that spectrometers can output files in real time. I'm sure I can write a program in python to monitor the output directory, grab the new data files, append them to a large matrix, replot etc...