Send plain text out through a COM port (such as Labview, MATlab, Python or even a terminal emulator)

We have purchased a pump. And we would like to control the pump through Mathematica. The furnished has explained to us:

The KDS 410 is not compatible with the Adagio software.

This pump can be controlled by sending it 'Pump Chain' commands (plain ASCII) from any application that can send plain text out through a COM port (such as Labview, MATlab, Python or even a terminal emulator)


I think that if Matlab can do this, so Mathematica can do it also. But I didn't find any command in Mathematica to do this. Can someone help me? Thank you very very much.

• Look at the documentation for OpenWrite or OpenAppend for examples and the "file" you want to open is probably COM1 if you are using Windows.
– Bill
Jan 12 '21 at 9:24
• related Jan 12 '21 at 18:02

dev = DeviceOpen["Serial","COM1"];