by analog31 · 5y ago · 0 comments
Having to replace working equipment because the software that you paid for can't be transferred to a new computer is a nightmare Often, the old equipment works just fine because the laws of physics haven't changed.
But equally often, by the time it's that old, it's being used for a tiny subset of its original, perhaps for exactly one repetitive procedure. In those cases, it's often easy to whip up a little Python program that talks to the RS232 port via a USB-RS232 converter.
Will the Python program last any longer? Maybe not, but at least its source code is in text format.
Worked really well. One of the oldest machine was some 286 connected to some freaky gasoline density aparatus :)
In many cases you can't simply upgrade software, as software for such machines does not support anything else - and you can't really reverse engineer drivers for 50 different machines in sane amount of time.
Most of really expensive machines provide some kind of output over serial interfaces - it seems to be industry standard, but I forgot the name for it.
TCL and Expect would be much better for that than Python.