デジタルマルチメーターの出力を取り出す

秋月で扱っている安いデジタルマルチメーター MAS-345がシリアル使えるみたい。
http://akizukidenshi.com/catalog/g/gM-02244/
3850円。
最安かな。


Winでは以下のツールがある。
Ts Digital Multi Meter Viewer
http://www.ts-software-jp.net/products/tsdmmview.html
232C出力のあるデジタルマルチメーターのデータを見やすく表示。


なんだ、MAS-345には、PerlとかPythonの例があるな。
https://github.com/mschilli/device-mas345-perl
http://cpansearch.perl.org/src/MSCHILLI/Device-MAS345-0.03/MAS345.pm
http://www.velocityreviews.com/forums/t617948-pyserial-and-a-mastech-mas-345-a.html


通信のスペックもあった。

MAS345
data format: 7n2 at 600 baud (7 bits, no parity, 2 stop bits).
Control lines:
DTR and RTS lines are used to power the TX line: RTS is clear
for -12 supply; DTR is set for +12 supply. Data transmission is
solicited sending whatever character to the RX line.
Data string format:
MAS-345 sends a 14 bytes string with:
< >< >
: two bytes with the oerating mode: DC, AC, OH, CA, TE ...
: one byte with - or space
: five bytes with four digits and one decimal dot.
: four bytes with the units: mV, A, kOhm, nF ...
: '\r'
One space is inserted between and , one between
and .
The data string (without the '\r') is sent to the output device.


http://d.hatena.ne.jp/kinneko/20130128/p1 に続く。