Author Topic: Program that can log/control many multimeters and other devices.  (Read 1106182 times)

homico, Gertjan, HKJ and 11 Guests are viewing this topic.

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4425 on: August 22, 2025, 11:15:36 am »
It's no the prettiest thing, but its reliable.
I used a generic ir phototransistor with a 1k pullup, a USB cable for the supply with a MCP1700 LDO and a 10uF tantalum capacitor.

The ESP32 board is not the same as the ones I have, do it have a name?

I believe photos makes it much easier to decide to do the build or not, they show clear what can expected and how difficult or not it is to build.
 
The following users thanked this post: Ruprect

Offline eelliott

  • Contributor
  • Posts: 12
Re: Program that can log from many multimeters.
« Reply #4426 on: August 22, 2025, 05:34:51 pm »
Is it possible to format the following SCPI commands so that TC does not split the SCPI command based upon the embedded space?

Code: [Select]
#askValues FETC? @1[mode:VoltageDC,VoltageAC,VoltageACDC,CurrentDC,CurrentAC,CurrentACDC,Resistance,Capacitance,Temperature,Frequency,Period,Conductance,DutyCycle,Decibel_m,Decibel_V,0-20mA,4-20mA,PulseWidth,HighResistance];FETC? @2[mode:VoltageDC,VoltageACDC,CurrentDC,CurrentACDC,DistanceMeter,DistanceFoot]

#askMode CONF? @1,CONF? @2

The Keysight U1461A requires the space.  For example, CONF?@1 is rejected by the U1461A.

The reason the official KeysightU1461A.txt works is that it is using abbreviated forms of the commands, i.e., FETC? instead of FETC? @1 and CONF? instead of CONF? @1.  All of those forms reference the Primary display.  The secondary display, however, requires the @2 form of the commands (as shown above in #askValues and #askMode).

Surrounding the SCPI commands with double quotes or single quotes does not solve the problem.  Trying to fool TC with unQuote("CONF? @1") does not work.  "CONF?\s@1" and CONF?\s@1 do not work.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4427 on: August 22, 2025, 05:45:51 pm »
Is it possible to format the following SCPI commands so that TC does not split the SCPI command based upon the embedded space?

Code: [Select]
#askValues FETC? @1[mode:VoltageDC,VoltageAC,VoltageACDC,CurrentDC,CurrentAC,CurrentACDC,Resistance,Capacitance,Temperature,Frequency,Period,Conductance,DutyCycle,Decibel_m,Decibel_V,0-20mA,4-20mA,PulseWidth,HighResistance];FETC? @2[mode:VoltageDC,VoltageACDC,CurrentDC,CurrentACDC,DistanceMeter,DistanceFoot]

#askMode CONF? @1,CONF? @2

The Keysight U1461A requires the space.  For example, CONF?@1 is rejected by the U1461A.

The reason the official KeysightU1461A.txt works is that it is using abbreviated forms of the commands, i.e., FETC? instead of FETC? @1 and CONF? instead of CONF? @1.  All of those forms reference the Primary display.  The secondary display, however, requires the @2 form of the commands (as shown above in #askValues and #askMode).

Surrounding the SCPI commands with double quotes or single quotes does not solve the problem.  Trying to fool TC with unQuote("CONF? @1") does not work.  "CONF?\s@1" and CONF?\s@1 do not work.

TC do generally not split on space, but on semicolon (;), but that is possible to circumvent in the latest test version.

Special chars for TC are \ ( ) ; []

Try use log mode and see what TC transmit.
 

Offline Gulftown

  • Regular Contributor
  • *
  • Posts: 71
  • Country: de
Re: Program that can log from many multimeters.
« Reply #4428 on: August 22, 2025, 07:33:16 pm »
Its an ESP8266 called ESP-01.
Its really cheap and small.

I can draw a simple schematic when i have some spare time.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4429 on: August 22, 2025, 08:29:11 pm »
Its an ESP8266 called ESP-01.
Its really cheap and small.

I can draw a simple schematic when i have some spare time.

A schematic would be nice.

You can see what I have done with your project here: http://lygte-info.dk/project/TestControllerUserProjects1%20UK.html#Voltcraft_VC870_ESP32_based_interface_for_TC_by_Gulftown

Can I move the 3D box definition to my server?


I like this project, it would be nice if somebody would do something similar for newer UNI-T meters. Only issue is that it is both TX and RX, i.e. both a RX and TX IR diode is needed.
« Last Edit: August 22, 2025, 08:30:55 pm by HKJ »
 
The following users thanked this post: Gulftown

Offline Ruprect

  • Newbie
  • Posts: 5
  • Country: au
Re: Program that can log from many multimeters.
« Reply #4430 on: August 22, 2025, 11:33:56 pm »

I like my meters to be in the network for remote measurements so i use an IR phototransistor and an ESP8266 as a bridge.
The multimeter uses 9600 baud and a standard serial interface, so its pretty easy to implement.
I attached the code for the esp8266 and uploaded my case here:
https://www.thingiverse.com/thing:7124615

I admire your engenuity
I acheive remote logging and monitoring by just running TC on an old raspberry pi.
But I'm just boring :-DD
 

Online flash2b

  • Frequent Contributor
  • **
  • Posts: 355
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log from many multimeters.
« Reply #4431 on: August 23, 2025, 06:15:43 pm »
Is it possible to use one Hiistogram with multiple colors (like Chart) with a combined Y axis and X axis while measuring the different Values.

I like to compare 2 meters that measure VDC on the same object, but TC shows one Chart with color red + blue, but two separate Histograms with different scale and both in red color. Even having the second histogram in the same color as Chart is more consistent.
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4432 on: August 23, 2025, 07:09:03 pm »
Is it possible to use one Hiistogram with multiple colors (like Chart) with a combined Y axis and X axis while measuring the different Values.

I like to compare 2 meters that measure VDC on the same object, but TC shows one Chart with color red + blue, but two separate Histograms with different scale and both in red color. Even having the second histogram in the same color as Chart is more consistent.

TC cannot combine histograms, but I will think about it (That is no guarantee).
 

Online flash2b

  • Frequent Contributor
  • **
  • Posts: 355
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log from many multimeters.
« Reply #4433 on: August 24, 2025, 08:41:19 am »
When I save a chart to PNG, TC shows the filename as Title on the top of the PNG. However on Histogram, when there are more than 1 sources selected, it does not show he filename as Title on the top of the PNG. Is that on purpose or a bug ?
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4434 on: August 24, 2025, 11:36:27 am »
When I save a chart to PNG, TC shows the filename as Title on the top of the PNG. However on Histogram, when there are more than 1 sources selected, it does not show he filename as Title on the top of the PNG. Is that on purpose or a bug ?

Without checking:
I believe the title is part of the histogram, i.e. if I used it on 2 or 3 histograms, the top one would be smaller, due to the title.
I could program the title as a separate item and avoid that, but I was lazy when I made the histogram png save.
 

Offline Gulftown

  • Regular Contributor
  • *
  • Posts: 71
  • Country: de
Re: Program that can log from many multimeters.
« Reply #4435 on: August 25, 2025, 08:03:32 am »
Thanks for adding my project to your page!
If you like, you can store a copy of the adapter on your site.
I attached a schematic of the adapter.

I also use a similar code (attached) for a generic RS232 to telnet adapter, which i use with a HP 66311B, Korad KEL103 (because the LAN interface is only UDP and loosing packages sucks) in test controller as well as a Tektronix 2712 for screen grabs. This also works flawlessly using a UART to RS232 adapte like:

https://ebay.us/m/RiVh2u

The ESP-01 has 4 available GPIOs, so its very easy to use for this kind of basic stuff.
I can take pictures of my adapter when i have time, but essentially its just an AMS1117-3.3, ESP-01 and the UART to RS232 tranceiver board in a 3d printed package again.
The code should work fine with an IR diode on the TX pin of the ESP-01 (with matching resistor) for the UNI-T devices you mentioned.
 
« Last Edit: August 25, 2025, 08:24:33 am by Gulftown »
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4436 on: August 26, 2025, 08:27:30 am »
Thanks for adding my project to your page!

I have updated my project page.

I like keeping all files on my server, other services my reorganize invalidating the links.

...
The code should work fine with an IR diode on the TX pin of the ESP-01 (with matching resistor) for the UNI-T devices you mentioned.

The trick is the 3D printed box and a complete description of a working project.

 

Offline Messtechniker

  • Frequent Contributor
  • **
  • Posts: 892
  • Country: de
  • Old analog audio hand - No voodoo.
Re: Program that can log from many multimeters.
« Reply #4437 on: August 26, 2025, 09:32:22 am »
There is this WebHID api which you may possibly use to get HID equipment connected to Test Controller in some way.

https://developer.mozilla.org/en-US/docs/Web/API/WebHID_API
Agilent 34465A, Siglent SDG 2042X, Hameg HMO1022, R&S HMC 8043, Peaktech 2025A, Voltcraft VC 940, M-Audio Audiophile 192, R&S Psophometer UPGR, 3 Transistor Testers, DL4JAL Transistor Curve Tracer, UT622E LCR meter, UT216C AC/DC Clamp Meter
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4438 on: August 27, 2025, 06:21:19 pm »
There is this WebHID api which you may possibly use to get HID equipment connected to Test Controller in some way.

https://developer.mozilla.org/en-US/docs/Web/API/WebHID_API

I do not believe that will help me, it is for Javascript and webbrowser, not for Java.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4439 on: August 27, 2025, 06:24:05 pm »
Version  2.64 is up
Gulftown, Flash2b and a few other has added devices to TC. I added a way to bypass TC automatic splitting into single commands (See documentation for more information).
   Added: Voltcraft VC870 DMM, requires homemade interface see http://lygte-info.dk/project/TestControllerUserProjects1%20UK.html#Voltcraft_VC870_ESP32_based_interface_for_TC_by_Gulftown
   Added: Digitech QM1571 DMM, this driver probably support a lot of other DMMs (Thanks Ruprect)
   Added: Hameg HM8112_1, Hameg HM8112_2, Prema 4000, Prema 5000 Bench meter (Thanks Flash2b)
   Added: Gossen MetraHit PM XTRA Multipmeter (Thanks Gulftown)
   Added: HP 6811A, HP 6812A, HP 6813A AC power source (Thanks Gulftown)
   Added: Multiple commands can be combined in one line when transmitting to SCPI or SCPIx device.
   Added: Yokogawa 7563 and Omega 7563 Multimeter & Digital Thermometer (Thanks Flash2b)
   Added: Yokogawa 7551, 7552, 7561 and 7562 Digital Multimeter (Thanks Flash2b)
   Added: A secondary version of FeelElecFY6x00 has been added, it support newer software versions (Thanks marco58).
   Added: Analogic DP100 & R&S UDL45 Multimeters (Thanks Flash2b)
   Fixed: #modifyIDN in SCPIx did not work.
 

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 5951
  • Country: us
  • TEAS is real.
Re: Program that can log from many multimeters.
« Reply #4440 on: August 27, 2025, 08:57:43 pm »
I made a few AR488 GPIB adapters. I finally got them working with GPIB Configurator, but I'm having trouble with TC now.

I'm not sure if I found a bug, or if I'm configuring something wrong. The baud rate is supposed to be 115200, and that's how it's set in the GPIB popup. However, TC is setting the baud to 9600 anyway, and it's not communicating with the device. Is there a way to force that?

Thanks,
Josh
"Experience is something you don't get until just after you need it." - Steven Wright
Best Continuity Tester Ever
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4441 on: August 27, 2025, 09:14:49 pm »
I made a few AR488 GPIB adapters. I finally got them working with GPIB Configurator, but I'm having trouble with TC now.

I'm not sure if I found a bug, or if I'm configuring something wrong. The baud rate is supposed to be 115200, and that's how it's set in the GPIB popup. However, TC is setting the baud to 9600 anyway, and it's not communicating with the device. Is there a way to force that?

I have not checked if the baudrate is ok, but you do not show the address column, it must show B:12 (12 is the GPIB bus address) for the second adapter.
Note: id is case sensitive, i.e. b:12 will not work.

The checkmark in "Scan serial ports" forces TC to scan all unused serial port at 9600 baud, this is great if you have a couple of homemade Arduino devices connected, but not really useful in this case.
 

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 5951
  • Country: us
  • TEAS is real.
Re: Program that can log from many multimeters.
« Reply #4442 on: August 27, 2025, 11:35:17 pm »
The checkmark in "Scan serial ports" forces TC to scan all unused serial port at 9600 baud, this is great if you have a couple of homemade Arduino devices connected, but not really useful in this case.

You're correct, it appears it was scanning COM16 at 9600 because that checkmark was on (left over from previous stuff, never unchecked). That was a good clue!

So, I found the problem, and it was definitely a huge bug. About 6'5" tall, and sitting in my chair. Anyway, it was another checkbox that was the culprit. I'll let you figure which one. :-DD
"Experience is something you don't get until just after you need it." - Steven Wright
Best Continuity Tester Ever
 

Offline Slider-Z

  • Newbie
  • Posts: 1
  • Country: md
Re: Program that can log from many multimeters.
« Reply #4443 on: August 29, 2025, 07:38:30 pm »
Dear HKJ,
thank you so much for your program and your constant support. If my request isn't too inappropriate, I would like to ask to expand the list of supported Riden devices.
I have an RD6012P power supply, but the latest (2.64) version of the software cannot connect to the device. Apparently, the difference is that the 6012P version has two current ranges (0 - 6 A and 0 - 12 A), while the regular 6012 has only one.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4444 on: August 29, 2025, 07:55:22 pm »
Dear HKJ,
thank you so much for your program and your constant support. If my request isn't too inappropriate, I would like to ask to expand the list of supported Riden devices.
I have an RD6012P power supply, but the latest (2.64) version of the software cannot connect to the device. Apparently, the difference is that the 6012P version has two current ranges (0 - 6 A and 0 - 12 A), while the regular 6012 has only one.

I do not make the definitions for most devices, that is done by the users. They are all plain text files that everyone can read and modify. What I do is help and adapt TC when needed.
I.e. you can copy the original Riden definition file and do your own modification to support the RD6012P and then post it in this thread for inclusion in future versions of TC. I have published documentation on how to make definitions, one page is here: https://lygte-info.dk/project/TestControllerConfigDevice2%20UK.html#Modbus_serial_&_network
 

Online Gertjan

  • Frequent Contributor
  • **
  • Posts: 290
  • Country: nl
Re: Program that can log from many multimeters.
« Reply #4445 on: August 30, 2025, 12:45:03 pm »
Hi HKJ,

I updated the Siglent SDG definition with extra #metadefs for the new black Plus generators: Siglent SDG1022X Plus, SDG1032X Plus and SDG1062X Plus.


IMG_4486_Siglent_SDG1062X_Plus_front-2000pix.jpg]

Most work was the testing of all functions in this very nice and very comprehensive definition :). (It is an excellent example for other ARB definitions).
All functions in the definition are working perfectly with the new generatior. Very nice to see that Siglent is very consistent with the commands for all SDG generators!
I tested with a SDG1062X Plus, V1P.1.1.1.42R2 and TestController v2.64.

First impression of the generator: very nice 16bits generator, but with a looong boot time (44sec!)

Please find the updated Siglent SDG definition here: SiglentSDGxxxxX.zip
As always, you are welcome to use my images for your website.

regards, Gertjan.
 
The following users thanked this post: tautech

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4446 on: August 30, 2025, 01:00:37 pm »
I updated the Siglent SDG definition with extra #metadefs for the new black Plus generators: Siglent SDG1022X Plus, SDG1032X Plus and SDG1062X Plus.

You forgot to include the definition   ;D
 

Online Gertjan

  • Frequent Contributor
  • **
  • Posts: 290
  • Country: nl
Re: Program that can log from many multimeters.
« Reply #4447 on: August 30, 2025, 01:06:38 pm »
I did not forget the definition. Please find the link here :)

.....
Please find the updated Siglent SDG definition here: SiglentSDGxxxxX.zip
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3908
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #4448 on: August 30, 2025, 01:16:04 pm »
I did not forget the definition. Please find the link here :)

I am gotten to used to included files.

I cannot find the 1022 in the file, but there is a 1025?
 

Online Gertjan

  • Frequent Contributor
  • **
  • Posts: 290
  • Country: nl
Re: Program that can log from many multimeters.
« Reply #4449 on: August 30, 2025, 01:42:16 pm »
I cannot find the 1022 in the file, but there is a 1025?

Hi HKJ,

This time I stand corrected :). Good thing you proof-red the definition...
I updated the definition, please re-download the ZIP file.

regards, Gertjan.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf