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

HKJ, tautech, flash2b, pivous and 243 Guests are viewing this topic.

Offline Dread

  • Regular Contributor
  • *
  • Posts: 154
  • Country: us
Re: Program that can log/control many multimeters and other devices.
« Reply #6150 on: March 29, 2026, 04:49:59 am »
That was a pretty good video he did on this electronic load.
Just to update you, I got it working once after I changed the Watt value and did some other things but I cannot get it to work again.   The sad part is that the crappy software East Testers provides just turns on the Load without an issue.

I know this is something I will just have to keep working on.
I did manage to figure out how to get the Battery Test menu option on the screen.  I had to start Logging and then stop Logging and then right click and the option shows up like on his video.
Unfortunately it does not engage the load when I tell it to start.

I was really hoping that someone who was using this software and the 5410A+ would have chimed in.
The Optimist says the glass is half full, the Pessimist says its half empty, an engineer only see's a glass that’s twice as big as it needs to be!
 

Online flash2b

  • Frequent Contributor
  • **
  • Posts: 938
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #6151 on: March 29, 2026, 06:27:18 am »
I am working on a definition that can output numbers, floats, characters or strings. For this I've made #interface commands.

Now I want to make a script that reads a temperature (from mt NT48A08) using readTemperature and write this value to my new device using setDisplaysFloat. Both functions work in the test interface popup.

How do I write a script that integrates this ?


They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6152 on: March 29, 2026, 06:42:57 am »
I am working on a definition that can output numbers, floats, characters or strings. For this I've made #interface commands.

Now I want to make a script that reads a temperature (from mt NT48A08) using readTemperature and write this value to my new device using setDisplaysFloat. Both functions work in the test interface popup.

How do I write a script that integrates this ?

Something like:
Code: [Select]
=var sourceDevice=""
=var targetDevice=""
#while 1
=var a=readTemperature(sourceDevice);
=setDisplaysFloat(targetDevice,a);
#delay 1
#endwhile

The #delay is rather important, without it one cpu core will go to 100% load!

You will generally want to run it in a separate thread, one way is to start it with #RUNSCRIPTASYNC

The actual data transfer could also be written:
=setDisplaysFloat(targetDevice,readTemperature(sourceDevice));
 

Online flash2b

  • Frequent Contributor
  • **
  • Posts: 938
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #6153 on: March 29, 2026, 07:14:51 am »
So this script I save as text file and then use Load and Run in TC to execute ?

(Sorry I have never used scripting, also wondering how I can use the scripts in the ScriptLibrary.dat)
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6154 on: March 29, 2026, 07:23:05 am »
So this script I save as text file and then use Load and Run in TC to execute ?

(Sorry I have never used scripting, also wondering how I can use the scripts in the ScriptLibrary.dat)

You put the script in the log window and then select "save as script" or "save as menu"

You do not edit the ScriptLibrary.dat file, TC will use other files for your scripts.
Menu scripts can have conditions on them that must be fulfilled before they are listed in the menu. Try right clicking in the log window and select "Generate scripts", "List and manage scripts". There TC will list user and system scripts and you can view/edit them.
 

Online flash2b

  • Frequent Contributor
  • **
  • Posts: 938
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #6155 on: March 29, 2026, 07:28:41 am »
Thank you.. never seen those menu's  ;D I must be a newbie on this topic  :-DD
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6156 on: March 29, 2026, 07:35:46 am »
Thank you.. never seen those menu's  ;D I must be a newbie on this topic  :-DD

TC has a lot of stuff build in. If you want to see somebody going crazy with scripts, check the "Enova Gyrfalcon" chargers. There are a lot of script in the device definition, both for controlling the charger and for handling the configuration of the charger. They have scripts opening their own windows asking for things.
 

Online flash2b

  • Frequent Contributor
  • **
  • Posts: 938
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #6157 on: March 29, 2026, 09:33:27 am »
My script:
Code: [Select]
=var sourceDevice="NT48A08"
=var targetDevice="DM18C04"
#while 1
=var a=readTemperature(sourceDevice);
=setDisplaysFloat(targetDevice,a);
#delay 1
#endwhile

And yes, the temperature is shown on the display !

Log trace below actually shows what I wanted to achieve...
Code: [Select]
;; NT48A08: Tx <readTempAll?>
;; NT48A08: Tx <holdingS? 0x00 8 /10>
;; COM10: Tx: 01 03 00 00 00 08 44 0C
;; COM10: Rx: 01 03 10 00 C9 F5 55 F5 55 F5 55 F5 55 F5 55 F5 55 F5 55 2B 8B
;; NT48A08: Rx <20.1 -273.1 -273.1 -273.1 -273.1 -273.1 -273.1 -273.1>
;; NT48A08: Rx as numbers <20.1 -273.1 -273.1 -273.1 -273.1 -273.1 -273.1 -273.1>
;; DM18C04: Tx <displayFloat 20.1>
;; DM18C04: Script start
;; DM18C04: Tx <holding 0x06 512 2010>
;; COM5: Tx: 01 10 00 06 00 02 04 02 00 07 DA F1 96
;; COM5: Rx: 01 10 00 06 00 02 A1 C9
;; DM18C04: Script end <>

Now this opens a new aspect of TC to discover.
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6158 on: March 29, 2026, 09:40:10 am »
Now this opens a new aspect of TC to discover.

You can build the script into the device definition and it can ask what value to display.
It would be a two step approx, first you ask the parameters, then you build the script and launch it in the background, the code to do all this is in the device definition.
 

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 8193
  • Country: us
  • TEAS is real.
Re: Program that can log/control many multimeters and other devices.
« Reply #6159 on: March 29, 2026, 12:59:50 pm »
I was really hoping that someone who was using this software and the 5410A+ would have chimed in.

I have the ET5420A+. When I have time, I'll connect it and try it out with TC.
"Experience is something you don't get until just after you need it." - Steven Wright
Best Continuity Tester Ever
 
The following users thanked this post: Dread

Online flash2b

  • Frequent Contributor
  • **
  • Posts: 938
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #6160 on: March 29, 2026, 02:18:18 pm »
In the #pgm# section when I do

#scpiCmd readDisplayText? #pgm#
outputString = deviceRead(handle,"readDigit1?")
outputString = outputString + deviceRead(handle,"readDigit2?")
print(outputString)

How can I force the output to be a string and not add the numbers when both arguments are numbers ?

A+B="AB" works, but 1+3=4 I would like it to be "13"
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6161 on: March 29, 2026, 02:31:07 pm »
In the #pgm# section when I do

#scpiCmd readDisplayText? #pgm#
outputString = deviceRead(handle,"readDigit1?")
outputString = outputString + deviceRead(handle,"readDigit2?")
print(outputString)

How can I force the output to be a string and not add the numbers when both arguments are numbers ?

A+B="AB" works, but 1+3=4 I would like it to be "13"

The simplest method is usually:
" "+1+2+3
The string at the start usually forces everything to strings.
TC support + and * operators on strings, the multiply is nice for repeating a symbol: "."*80
But if the string only contains a number it may (most likely will) convert it to a number!
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6162 on: March 29, 2026, 03:04:51 pm »
How can I force the output to be a string and not add the numbers when both arguments are numbers ?

A+B="AB" works, but 1+3=4 I would like it to be "13"

Thinking about it, why do you want to do it as strings?
I would do:
Code: [Select]
#scpiCmd readDisplayText? #pgm#
outputString = deviceRead(handle,"readDigit1?")*10+deviceRead(handle,"readDigit2?")
print(outputString)
 

Online flash2b

  • Frequent Contributor
  • **
  • Posts: 938
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #6163 on: March 29, 2026, 03:35:50 pm »
Well " " worked for me.

My registers contain ascii values that I want to display as a string in the setup menu.

I have another problem

if (value % 10 == 0)
   Special100 = 1
endif

is % not supported ?

How do I check if my value is a multiple of 10 in another way ?
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6164 on: March 29, 2026, 03:46:56 pm »
Well " " worked for me.

My registers contain ascii values that I want to display as a string in the setup menu.

I have another problem

if (value % 10 == 0)
   Special100 = 1
endif

is % not supported ?

How do I check if my value is a multiple of 10 in another way ?

Using:
=var special100=0;var value=20;if (value % 10 == 0);special100 = 1;endif;special100
on the command line works fine and return 1
But if value is a string I need:
=var special100=0;var value="20";if (int(value) % 10 == 0);special100 = 1;endif;special100
 

Online flash2b

  • Frequent Contributor
  • **
  • Posts: 938
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #6165 on: March 29, 2026, 03:51:13 pm »
I was doing it in a #pgm# not in a script. My value was a number. (previous one was a string...  ;D)

I came up with ((value *0.1) * 10 == value)) as the boolean I needed.

I got a Java exception using % operation.

There are some bugs in the firmware on the device I am working with. I need to write around it which is annoying since I need to find the condition the firmware is having problems and use the next value, do the action, and correct the result. Sigggh... anyway getting there.

BTW I use the Param Sweeper to step to all my float values... that is how I spot the mistakes on some combinations. I also added some rounding logic since sometimes there are more decimals from the sourceDevice that won't fit in the targetDevice.
« Last Edit: March 29, 2026, 04:00:38 pm by flash2b »
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6166 on: March 29, 2026, 03:59:18 pm »
I was doing it in a #pgm# not in a script.

I came up with ((value *0.1) * 10 == value)) as the boolean I needed.

Nice workaround.
You are aware of the ? operator, it can be used in a expression to select between two different values or expressions.

I got a Java exception using % operation.

That is often the case when a error happens in the programming language. There is ways to catch them, without the program fails.

There are some bugs in the firmware on the device I am working with. I need to write around it which is annoying since I need to find the condition the firmware is having problems and use the next value, do the action, and correct the result. Sigggh... anyway getting there.

That is annoying  ;D
 

Offline Dread

  • Regular Contributor
  • *
  • Posts: 154
  • Country: us
Re: Program that can log/control many multimeters and other devices.
« Reply #6167 on: March 29, 2026, 11:07:37 pm »
I am becoming more and more convinced that Test Controller does not work with the newer firmware in the East Controller ET5410A+
I am using a November 2025 manufactured model with
Hardware Version: 2.06.2247.016
Software is Version 2.01.2529.028

I know very little about SCPI commands and the Video by Kerry Wong where he says you need to change the E-Loads serial number to xxxxxx makes no sense to me because I see no way to change the units serial number.


The Optimist says the glass is half full, the Pessimist says its half empty, an engineer only see's a glass that’s twice as big as it needs to be!
 

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 8193
  • Country: us
  • TEAS is real.
Re: Program that can log/control many multimeters and other devices.
« Reply #6168 on: March 30, 2026, 12:33:58 am »
I was really hoping that someone who was using this software and the 5410A+ would have chimed in.

I think you're probably using the wrong driver version, or it's not compatible with your firmware version.

I had to modify the ET5410A+ definition to work with my ET5420A+.

Anyway, in the working definition, there is no Mode button. Everything is done from the Setup button. Which is odd, and probably not how HKJ would prefer it's done (especially since Mode should be locked out during logging).

Anyway, see the attached screenshot. I set the Mode, then set the current, and then I set Input to On, and it works as expected- as you can see on the Current values tab in the background.

I might add the ET5410A+ to my modified definition as an alternative and release it here when I have some time. If I do that though, I might want to correct the way it works. We'll see.

Thanks,
Josh
"Experience is something you don't get until just after you need it." - Steven Wright
Best Continuity Tester Ever
 
The following users thanked this post: Dread

Offline Curious

  • Contributor
  • Posts: 19
  • Country: us
Re: Program that can log/control many multimeters and other devices.
« Reply #6169 on: March 30, 2026, 01:17:43 am »
RidenRD60xx.txt
Add RD6024 and RD6030.
Minor improvements.

RidenRD6012P.txt
Works in 2 ranges: 0-6A and 0-12A.
(Attachment Link)

Thanks you!
I've got RD6024, works great with TC. Also have an RD6006P, not explicitly in the device list.  Tried RD6006 and RD6012P and got error ";; USB Serial (COM6) Device "Riden,Riden RD6012P" do not match answer: "**Device do not match** <60065>"
Any suggestions?  I'm not smart enough to modify RidenRD60xx.txt and/or RidenRD6012P.txt to add the RD6006P...perhaps you could explain how?  Thanks
 

Offline Dread

  • Regular Contributor
  • *
  • Posts: 154
  • Country: us
Re: Program that can log/control many multimeters and other devices.
« Reply #6170 on: March 30, 2026, 02:40:15 am »
I was really hoping that someone who was using this software and the 5410A+ would have chimed in.

I think you're probably using the wrong driver version, or it's not compatible with your firmware version.

I had to modify the ET5410A+ definition to work with my ET5420A+.

Anyway, in the working definition, there is no Mode button. Everything is done from the Setup button. Which is odd, and probably not how HKJ would prefer it's done (especially since Mode should be locked out during logging).

Anyway, see the attached screenshot. I set the Mode, then set the current, and then I set Input to On, and it works as expected- as you can see on the Current values tab in the background.

I might add the ET5410A+ to my modified definition as an alternative and release it here when I have some time. If I do that though, I might want to correct the way it works. We'll see.

Thanks,
Josh

Hi Josh

Well thanks for the screen shot.
I can see  the problem now.  Besides looking different I have no On/Off Button on mine.  :-/O
Also with all this tinkering I have also picked up some kind of device on Com5 that I cannot get rid of. it does not show up under devices. 

Thanks
Rob
The Optimist says the glass is half full, the Pessimist says its half empty, an engineer only see's a glass that’s twice as big as it needs to be!
 

Offline Dread

  • Regular Contributor
  • *
  • Posts: 154
  • Country: us
Re: Program that can log/control many multimeters and other devices.
« Reply #6171 on: March 30, 2026, 06:21:53 am »

I think you're probably using the wrong driver version, or it's not compatible with your firmware version.

Thanks,
Josh

What Driver are you using?
I am using the ch34 driver that they supply.
The Optimist says the glass is half full, the Pessimist says its half empty, an engineer only see's a glass that’s twice as big as it needs to be!
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6172 on: March 30, 2026, 07:56:11 am »
I am becoming more and more convinced that Test Controller does not work with the newer firmware in the East Controller ET5410A+
I am using a November 2025 manufactured model with
Hardware Version: 2.06.2247.016
Software is Version 2.01.2529.028

It might be the case, some brands do sometimes change the protocol. It is very rare.

I know very little about SCPI commands and the Video by Kerry Wong where he says you need to change the E-Loads serial number to xxxxxx makes no sense to me because I see no way to change the units serial number.

TC do not use the serial number, but can list it.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6173 on: March 30, 2026, 07:59:55 am »
I've got RD6024, works great with TC. Also have an RD6006P, not explicitly in the device list.  Tried RD6006 and RD6012P and got error ";; USB Serial (COM6) Device "Riden,Riden RD6012P" do not match answer: "**Device do not match** <60065>"
Any suggestions?  I'm not smart enough to modify RidenRD60xx.txt and/or RidenRD6012P.txt to add the RD6006P...perhaps you could explain how?  Thanks

TC uses a identifying byte from the power supply to confirm you have selected the right model.
If a new model is compatible with an existing model, it is only a few lines that need to be added to a definition to support it.
At the start of each definition is a list of models it support, this list contains the model name and number, identifying byte and some parameters for the definition.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4776
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #6174 on: March 30, 2026, 08:02:25 am »
Also with all this tinkering I have also picked up some kind of device on Com5 that I cannot get rid of. it does not show up under devices. 

Check the "Load device"s page, you must have check marked more devices or "Scan serial ports".
 
The following users thanked this post: KungFuJosh


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf