[UPDATED] Mastech MAS-345 digital multimeter Windows GUI
Hello,
I had some time to improve my software for my MASTECH MAS-345 multimeter. Now it has a lot of features, such as:
- save/load to an own binary format
- export to excel own binary format (reloadable)
- graph (had to change the platform to .NET 4.0)
- comment and color all measurement
- check for update (notifies when a more recent version is available)
Here is the screenshot:
Now it’ under GPL.
There might be bugs, so if You notice any fault, you can comment here or use GitHub issue tracker. All precompiled binary versions will be published here:
Release Notes and Downloads:
- 1.0.0.0 First version
- 1.0.0.1 Fixed issue when exporting to Excel (non-english)
There are 22 Comments to "[UPDATED] Mastech MAS-345 digital multimeter Windows GUI"
Nice Program, but i’ve got a little issue with it…
I can´t Export the Data to Excel.
Every time i try it i got an Error Message.
Like this…
System.Runtime.InteropServices.COMException (0x8002000B): Ungültiger Index. (Ausnahme von HRESULT: 0x8002000B (DISP_E_BADINDEX))
bei Microsoft.Office.Interop.Excel.Sheets.get__Default(Object Index)
bei MAS345_GUI.MainForm.exportHistoryToExcelToolStripMenuItem_Click(Object sender, EventArgs e)
bei System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
bei System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
bei System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
bei System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
bei System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
bei System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
bei System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
bei System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei System.Windows.Forms.ToolStrip.WndProc(Message& m)
bei System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Please Help me…
I use Excel 2010 Version 14.0.6129
Hello,
Thanks for the comment, now it’s fixed! It was a piece of code which depends on the english version of the Excel, but now it’s removed. You can download the new version from this page.
Hi, i’ve been read your post about de MAS-345 Windows GUI. Let me tell you that i have a multimeter too (same model)… could you send me all the information to develop a GUI software about this equipment (command, rs232 configuration, etc). Thanks in advance
Hello,
You can check the details in the C# code at github:
https://github.com/libesz/MAS345_GUI
You can see the “protocol” in the MAS345Lib.cs file. The measurement is started when the PC sends an empty line (a newline character) and the response is coming in a second in a 14 byte long character stream. The response is human readable, not binary. The communication parameters are 600bps, 7n2. Hope this helps.
Cheers.
Yeah, once you know the communication settings it is fairly straight forwards. Last year I created my own GUI as a way to teach myself JavaFX. Probably several orders of magnitude easier to just create it in Matlab, but not nearly as fun.
You can check it out here if interested:
http://nooleanbot.blogspot.com/2013/07/mas-345-digital-multimeter-data.html
Cheers Libesz, keep up the good work!
Thanks a lot for your comments. I’ll getting work to develop my own application. First on Java SE and later on LABView (i’ll help to my friend, because she need to communicate via LABView)
Best Regards Libesz & Kris
Ah, LabView should be just as easy as Matlab. I recall a helpful thread, has the whole LabView DAQ build out posted.
Found it, here it is:
http://lavag.org/topic/4375-multimeter-serial-communication/
Have fun!
I am trying to establish communication of MAS 345 with a PC using Matlab. I used Matlab TM tool and NI MAX with SCPI command *IDN?\n ….without success. Any thoughts communication with Matlab?
The Matlab code from http://lavag.org/topic/4375-multimeter-serial-communication/ is not working:
s = serial(‘COM4’);
s.BaudRate=600;
s.StopBits=2;
s.Timeout=10;
s.Terminator=”;
s.DataBits=7;
s.ReadAsyncMode = ‘continuous’;
get(s,{‘BaudRate’,’DataBits’,’Parity’,’StopBits’,’Terminator’});
fopen(s);
fprintf(s,’D’);
s.BytesAvailable;
out = fscanf(s) % es DC -0.000 V
fclose(s);
Thanks, TS
Hi,
Sorry for the late reply. Unfortunately I don’t have any experience with matlab at all. Maybe you should monitor the COM port somehow to figure out that even the MAS345 got the request or not.
I tried to follow the instructions and success. Thank so much
best multimeter 2015
Thanks, I tried setup for my digital multimeter, and It can get great data. Keep going.
And learn more with me at Multimeter guide and things consider
Thank for your instruction. It’s wonderful. I have done.
Тайланд. Любые туры в Паттайя. Такси От тайской тур компании Русалочка. Все описания путешествий, цены и фото нужно перейти по ссылке Телефон в Таиланде (WhatsApp, Viber, Line, Telegram): +66–861559142 http://www.rusalochka.asia/tseny-prajsy-i-stoimost-3/tailand-tseny-ekskursij-v-pattaje
Hi,
I installed the version 1.0.0.1 on Windows 10 and I tried to export the datas to excel but it returned an error: (Exception on HRESULT:0*80010001 (RPC_E_CALL_REJECTED)). When I looked at the error details and at the source code you changed for the version 1.0.0.1, I made the hypothesis that the packages Microsoft .NET Frameworks were incompatible (too recent maybe) with the programme. I had version 4.5 of Microsoft .NET Frameworks.
For those who got the same problem, try to repair or reinstall the packages Microsoft .NET Frameworks. I did it with “Microsoft .NET Framework Repair Tool” from the Microsoft website and the bug was fixed.
This is a great software for professional and non-professional. It’s will guide me thanks
Wow, this paragtaph is nice, my sister is analyzing thedse things,
so I am going to tell her.
Je viens d’installer la version 1.0.0.1 et ça fonctionne parfaitement avec mon Velleman DVM345DI , merci beaucoup cela faisait des années que mon multimètre séchait, export vers EXCEL 2007 français aussi.
Thank you for taking the time to refresh what I learned years ago. I purchased a multimeter meter recently and needed it for some simple tasks around my shop. 🙂
Good topic with great explanation….
Its a great article. Thanks for sharing such informative information. It will really help.
please check this out for more about safety gear tips. click here