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

Geoff-AU, ali_asadzadeh and 223 Guests are viewing this topic.

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4796
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #5400 on: January 13, 2026, 11:29:09 am »
Since I changed 2 of my controls from  #cmdSetup number to  #cmdSetup advNumber for Voltage and Current, these parameters do not show up in Param sweeper anymore. (they were there when they were number, and also 3 other controls show up but not the advNumber)

I believe this is a bug.

It is sort of a bug, but is related to how TC works. When using advNumber it may reference other values in the setup popup, they are not present in param sweeper and that prevents advNumber from initializing.
I have made a partial fix (I do not expect it to be fixed fully): If you open the setup popup, before param sweeper it will be included. Param sweeper will not update its limits, but use the limits that existed when you selected the control.
You need to download the latest test version for that to work.
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 949
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #5401 on: January 13, 2026, 11:45:11 am »
In my case the Vmax and Cmax parameters for Voltage and Current are retreived using 2 scpi commands (from their holding registers). I have two :invisible: #cmdSetup info that retrieve these values. They are then referenced in the #cmdSetuo advNumber range which works OK.

Both values are fixed, they don't ever change but retreiving them from the PSU is better than using a Metadef to set them. I could also load them into a var during init if that is better.

I there is another way to do this, let me know.

I will try your new version later this day and report back.

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

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4796
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #5402 on: January 13, 2026, 11:54:34 am »
In my case the Vmax and Cmax parameters for Voltage and Current are retreived using 2 scpi commands (from their holding registers). I have two :invisible: #cmdSetup info that retrieve these values. They are then referenced in the #cmdSetuo advNumber range which works OK.

Both values are fixed, they don't ever change but retreiving them from the PSU is better than using a Metadef to set them. I could also load them into a var during init if that is better.

I there is another way to do this, let me know.


I cannot base the code on how you use it in a specific device, it must work generally.
It is a bit of a PITA to require the setup popup to be open, especially because nothing tells you that is necessary, but it works.

Only other option would be to open a hidden version of the setup popup, but I do not want to do that.

I will try your new version later this day and report back.

I look forward to hearing what you think.
« Last Edit: January 13, 2026, 11:58:36 am by HKJ »
 

Offline 2X

  • Frequent Contributor
  • **
  • Posts: 725
  • Country: gr
Re: Program that can log/control many multimeters and other devices.
« Reply #5403 on: January 13, 2026, 12:15:29 pm »
Hi,
Can I use the Test Controller to log the four channels of the R&S RTB24 oscilloscope via ethernet cable?
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4796
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #5404 on: January 13, 2026, 12:24:34 pm »
Hi,
Can I use the Test Controller to log the four channels of the R&S RTB24 oscilloscope via ethernet cable?

TC can log voltmeter channels from a scope, it is way to slow to log scope data (It can handle up to about 100 samples/second).
But it do not have a definition for that Oscilloscope, you will have to write that definition first.

I believe the most advance scope definition for TC is the Magnavox scope and doing that level of definition is not easy or fast. It is possible to do much simpler definitions.
 
The following users thanked this post: 2X

Offline 2X

  • Frequent Contributor
  • **
  • Posts: 725
  • Country: gr
Re: Program that can log/control many multimeters and other devices.
« Reply #5405 on: January 13, 2026, 12:26:59 pm »
Hi,
Can I use the Test Controller to log the four channels of the R&S RTB24 oscilloscope via ethernet cable?

TC can log voltmeter channels from a scope, it is way to slow to log scope data (It can handle up to about 100 samples/second).
But it do not have a definition for that Oscilloscope, you will have to write that definition first.

I believe the most advance scope definition for TC is the Magnavox scope and doing that level of definition is not easy or fast. It is possible to do much simpler definitions.

Because I  have never use SCPI commands. How can I log voltmeter channels from this scope (there any example form a similar scope?) . Can i make it via ethernet cable?
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4796
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #5406 on: January 13, 2026, 12:44:26 pm »
Hi,
Can I use the Test Controller to log the four channels of the R&S RTB24 oscilloscope via ethernet cable?

TC can log voltmeter channels from a scope, it is way to slow to log scope data (It can handle up to about 100 samples/second).
But it do not have a definition for that Oscilloscope, you will have to write that definition first.

I believe the most advance scope definition for TC is the Magnavox scope and doing that level of definition is not easy or fast. It is possible to do much simpler definitions.

Because I  have never use SCPI commands. How can I log voltmeter channels from this scope (there any example form a similar scope?) . Can i make it via ethernet cable?

Ethernet is no issue, TC supports it.
I do not know about similar scopes, but here is a lit of supported: https://lygte-info.dk/project/TestControllerSupportedEquipment%20UK.html#Oscilloscopes

 
The following users thanked this post: 2X

Offline 2X

  • Frequent Contributor
  • **
  • Posts: 725
  • Country: gr
Re: Program that can log/control many multimeters and other devices.
« Reply #5407 on: January 13, 2026, 02:11:25 pm »
Hi,
Can I use the Test Controller to log the four channels of the R&S RTB24 oscilloscope via ethernet cable?

TC can log voltmeter channels from a scope, it is way to slow to log scope data (It can handle up to about 100 samples/second).
But it do not have a definition for that Oscilloscope, you will have to write that definition first.

I believe the most advance scope definition for TC is the Magnavox scope and doing that level of definition is not easy or fast. It is possible to do much simpler definitions.


Because I  have never use SCPI commands. How can I log voltmeter channels from this scope (there any example form a similar scope?) . Can i make it via ethernet cable?

Ethernet is no issue, TC supports it.
I do not know about similar scopes, but here is a lit of supported: https://lygte-info.dk/project/TestControllerSupportedEquipment%20UK.html#Oscilloscopes


Because I have no idea about ethernet connections and how to create a connection between the Test Controller and RTB24. I wrote this command where I found on the RTB24 manual but with no success. How can I establise a connection via ethernet or there is a guide?
I apologise for the too many questions.

RTB24 Manual
https://static.eleshop.nl/mage/media/downloads/RTB2_UserManual_en_01.pdf
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4796
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #5408 on: January 13, 2026, 02:21:29 pm »
Because I have no idea about ethernet connections and how to create a connection between the Test Controller and RTB24. I wrote this command where I found on the RTB24 manual but with no success. How can I establise a connection via ethernet or there is a guide?
I apologise for the too many questions.

You cannot connect without a definition, but TC can help you get started and there is a lot of documentation on the TC website.

To get started select "Load devices" page and right click in the search field at the bottom, there select "Create new SCPI device definition".
This will open a popup that you can fill out and a skeleton device definition is created.
 
The following users thanked this post: 2X

Offline 2X

  • Frequent Contributor
  • **
  • Posts: 725
  • Country: gr
Re: Program that can log/control many multimeters and other devices.
« Reply #5409 on: January 13, 2026, 03:01:15 pm »
Because I have no idea about ethernet connections and how to create a connection between the Test Controller and RTB24. I wrote this command where I found on the RTB24 manual but with no success. How can I establise a connection via ethernet or there is a guide?
I apologise for the too many questions.

You cannot connect without a definition, but TC can help you get started and there is a lot of documentation on the TC website.

To get started select "Load devices" page and right click in the search field at the bottom, there select "Create new SCPI device definition".
This will open a popup that you can fill out and a skeleton device definition is created.

Many Thanks.

 

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 8222
  • Country: us
  • TEAS is real.
Re: Program that can log/control many multimeters and other devices.
« Reply #5410 on: January 13, 2026, 05:08:08 pm »
I might buy a power supply like that. If you could try controlling the output voltage using the "Param Sweaper" function in the TC,,, that would be great.
---------
(u) Well, I figured it out: it's not for control, but for recording...
 This is weird: why can't I delete the post? 🤔

Param sweeper does both control and logging. If you need to sweep specific settings, you can do that, and you can also log while doing it. I usually use that feature to test 2 or more devices with each other at the same time, like when I used the V3500A and SMIQ06B to test each other. See attached for an example.
"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: flash2b

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 949
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #5411 on: January 13, 2026, 05:26:35 pm »
Thx KungFuJosh but the poster has deleted his/her post.

As explained my BSide I8 definition (v1.00) supports both setting and readback of voltage/current/power.


« Last Edit: January 13, 2026, 05:49:16 pm by flash2b »
They say attention is a shovel. It's time to dig 'em out.
 
The following users thanked this post: KungFuJosh

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 949
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #5412 on: January 13, 2026, 06:41:59 pm »
I will try your new version later this day and report back.

I look forward to hearing what you think.

With the setup menu open, the two parameters are back using v2.93:


The reason I was explaining how I implemented it in my definition, was to inform you that there is no calculation in my #cmdSetup advNumber. I believe you created the advNumber to support that the margins dynamically change based on some formula,  e.g. to keep power under a certain limit.

For me I just wanted to have a max value based on a real variable rather then a #replacetext from the metadef.

Can the popup 'see' if the setup menu is open, and if that is possible just put user alert out if it is not when a advNumber is present in the setup menu ?
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4796
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #5413 on: January 13, 2026, 07:03:56 pm »
The reason I was explaining how I implemented it in my definition, was to inform you that there is no calculation in my #cmdSetup advNumber. I believe you created the advNumber to support that the margins dynamically change based on some formula,  e.g. to keep power under a certain limit.

For me I just wanted to have a max value based on a real variable rather then a #replacetext from the metadef.

I do not analyze for expression or not, but assume there is, because that is the purpose of this control. In this case  #replacetext is the preferred method.

Can the popup 'see' if the setup menu is open, and if that is possible just put user alert out if it is not when a advNumber is present in the setup menu ?

I could do that and maybe I will, but it is not going in at this time. I do have something against silly popups and it comes close to that.
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 949
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #5414 on: January 13, 2026, 08:02:32 pm »
Ok, how about this:

Popup could check if advNumber == present .and. setup menu != open, open setup menu.

This way there is no silly popup with a user warning.
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4796
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #5415 on: January 13, 2026, 08:33:26 pm »
Ok, how about this:

Popup could check if advNumber == present .and. setup menu != open, open setup menu.

This way there is no silly popup with a user warning.

That is one way to do it (It will slow down opening the popup significantly), another way is to add a text to the selection combobox saying that you need to open the setup popup to get all controls.
There a multiple places in TC that uses these control to adjust parameters, param sweep is not the only one.
 

Offline 2X

  • Frequent Contributor
  • **
  • Posts: 725
  • Country: gr
Re: Program that can log/control many multimeters and other devices.
« Reply #5416 on: January 13, 2026, 08:40:22 pm »
Because I have no idea about ethernet connections and how to create a connection between the Test Controller and RTB24. I wrote this command where I found on the RTB24 manual but with no success. How can I establise a connection via ethernet or there is a guide?
I apologise for the too many questions.

You cannot connect without a definition, but TC can help you get started and there is a lot of documentation on the TC website.

To get started select "Load devices" page and right click in the search field at the bottom, there select "Create new SCPI device definition".
This will open a popup that you can fill out and a skeleton device definition is created.

Many Thanks.

With this command "DVM1:RESUIt?" I can read the value of the 1st Digital Voltmeter from the oscilloscope. How can I create a continuous graph in tab "Chart" like I do with my Keysight U1272A multimeter?

RTB24 Manual
https://static.eleshop.nl/mage/media/downloads/RTB2_UserManual_en_01.pdf
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 949
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #5417 on: January 13, 2026, 08:41:23 pm »
That is one way to do it (It will slow down opening the popup significantly), another way is to add a text to the selection combobox saying that you need to open the setup popup to get all controls.
There a multiple places in TC that uses these control to adjust parameters, param sweep is not the only one.

I am aware, that is why I called popups. The Param Sweep was just the example where I encountered "missing" parameters.

I would then opt for: "add a text to the selection combobox saying that you need to open the setup popup to get all controls".
They say attention is a shovel. It's time to dig 'em out.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4796
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #5418 on: January 13, 2026, 08:50:54 pm »

With this command "DVM1:RESUIt?" I can read the value of the 1st Digital Voltmeter from the oscilloscope. How can I create a continuous graph in tab "Chart" like I do with my Keysight U1272A multimeter?

RTB24 Manual
https://static.eleshop.nl/mage/media/downloads/RTB2_UserManual_en_01.pdf


You need to define a column with
#value

Documentation: https://lygte-info.dk/project/TestControllerConfigDevice%20UK.html#Data_type_definitions

and put the read command after
#askValues

Documentation: https://lygte-info.dk/project/TestControllerConfigDevice%20UK.html##askValues

You can define multiple columns by using multiple #value lines and you can put multiple commands after #askValues, just put a ; between them.

Restart TC and look at the "Current values" tab to see if it works, when it show the reading there you can log and do curves.

« Last Edit: January 13, 2026, 08:55:49 pm by HKJ »
 
The following users thanked this post: 2X

Offline 2X

  • Frequent Contributor
  • **
  • Posts: 725
  • Country: gr
Re: Program that can log/control many multimeters and other devices.
« Reply #5419 on: January 13, 2026, 09:59:50 pm »

With this command "DVM1:RESUIt?" I can read the value of the 1st Digital Voltmeter from the oscilloscope. How can I create a continuous graph in tab "Chart" like I do with my Keysight U1272A multimeter?

RTB24 Manual
https://static.eleshop.nl/mage/media/downloads/RTB2_UserManual_en_01.pdf


You need to define a column with
#value

Documentation: https://lygte-info.dk/project/TestControllerConfigDevice%20UK.html#Data_type_definitions

and put the read command after
#askValues

Documentation: https://lygte-info.dk/project/TestControllerConfigDevice%20UK.html##askValues

You can define multiple columns by using multiple #value lines and you can put multiple commands after #askValues, just put a ; between them.

Restart TC and look at the "Current values" tab to see if it works, when it show the reading there you can log and do curves.


#value name unit format {selector}// The selector what is?
#value Voltage V F3
Voltage(name): Variable where the read value from the DVM1 will be stored?
V(unit): Volt units
F3(format): float number with 3 decimal points?
{selector}: what is/defines the selector?

the commands will be:
#value Voltage V F3 {selector???}
DVM1:RESUIt?=voltage or the below line is corrrect?
#askValues DVM1:RESUIt?: #askValues SCPI commands if I place here the SCPI command DVM1:RESUIt? how will be stored in voltage variable?
Because I use me logic in C language where I am familiar I believe I totally mess it up.
Could you correct me please?



 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 4796
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #5420 on: January 13, 2026, 10:41:24 pm »

#value name unit format {selector}// The selector what is?
#value Voltage V F3
Voltage(name): Variable where the read value from the DVM1 will be stored?
V(unit): Volt units
F3(format): float number with 3 decimal points?
{selector}: what is/defines the selector?

the commands will be:
#value Voltage V F3 {selector???}
DVM1:RESUIt?=voltage or the below line is corrrect?
#askValues DVM1:RESUIt?: #askValues SCPI commands if I place here the SCPI command DVM1:RESUIt? how will be stored in voltage variable?
Because I use me logic in C language where I am familiar I believe I totally mess it up.
Could you correct me please?


A definition is not programming or script (TC can do that, but it is not needed here), it is a definition.

#askValues defines what SCPI commands TC must use to read actual values from the devices.
#value defines how to show a value in TC

Neither of these stores anything.

I.e.this will probably work:
#value Voltage V F3
#askValues DVM1:RESUIt?

When you select the "Current values" page, TC will issues the commands after #askValues repeatedly to update the tab with the actual value and also store the value for some statistic.
When you press "Log" on the "Commands" page, TC will will issues the commands after #askValues at the defined log interval and create a table with them (See Table tab) and when it has a table it can create a chart.

You first need to use the selector if same SCPI command can return different types values (Which it probably can on your scope), this makes the definition more complicated, because you need a #value for each type and a #askMode to read the actual type of value returned. You also need to define commands to select types of measurements (It is called modes in TC).
You can check other scope definition and DMM definition for examples on this.

 
The following users thanked this post: 2X

Offline ander7

  • Contributor
  • Posts: 13
  • Country: by
Re: Program that can log/control many multimeters and other devices.
« Reply #5421 on: January 14, 2026, 04:57:37 am »
Can you explain what's wrong with Hid4Java? I was able to convert python library (https://github.com/Aleks-nik-a/unit_ut61eplus) into Java code (https://github.com/tataranovich/ut61eplus-hid4java-example) and it can read UT61E+ and execute commands.

It do not work, at least that was my problem.
I will check your code and probably get the meter to test.

I can see that it has been updated since I included it.

Hello HKJ,

Did you had a chance to look into UT61E+ support?
 

Offline 2X

  • Frequent Contributor
  • **
  • Posts: 725
  • Country: gr
Re: Program that can log/control many multimeters and other devices.
« Reply #5422 on: January 14, 2026, 07:36:59 am »

#value name unit format {selector}// The selector what is?
#value Voltage V F3
Voltage(name): Variable where the read value from the DVM1 will be stored?
V(unit): Volt units
F3(format): float number with 3 decimal points?
{selector}: what is/defines the selector?

the commands will be:
#value Voltage V F3 {selector???}
DVM1:RESUIt?=voltage or the below line is corrrect?
#askValues DVM1:RESUIt?: #askValues SCPI commands if I place here the SCPI command DVM1:RESUIt? how will be stored in voltage variable?
Because I use me logic in C language where I am familiar I believe I totally mess it up.
Could you correct me please?


A definition is not programming or script (TC can do that, but it is not needed here), it is a definition.

#askValues defines what SCPI commands TC must use to read actual values from the devices.
#value defines how to show a value in TC

Neither of these stores anything.

I.e.this will probably work:
#value Voltage V F3
#askValues DVM1:RESUIt?

When you select the "Current values" page, TC will issues the commands after #askValues repeatedly to update the tab with the actual value and also store the value for some statistic.
When you press "Log" on the "Commands" page, TC will will issues the commands after #askValues at the defined log interval and create a table with them (See Table tab) and when it has a table it can create a chart.

You first need to use the selector if same SCPI command can return different types values (Which it probably can on your scope), this makes the definition more complicated, because you need a #value for each type and a #askMode to read the actual type of value returned. You also need to define commands to select types of measurements (It is called modes in TC).
You can check other scope definition and DMM definition for examples on this.

Hi again,
I give the below but says invalid commands (Picture: Invalid Commands).
DVM1:RESult?
;; 1.0258099E+02

#value Voltage V F3
;; Invalid command <#value Voltage V F3>

#askValues DVM1:RESult?
;; Invalid command <#askValues DVM1:RESult?>

#value Voltage V D3
;; Invalid command <#value Voltage V D3>
#value Voltage V D1
;; Invalid command <#value Voltage V D1>
#log 0
What I am making wrong?

Also, the {selector} field if I understand right is to choose if the TC will read a "DC or ACDCrms or ACRMs" (Picture: RTB24 Measurement types) or am I wrong?
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 949
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #5423 on: January 14, 2026, 07:46:56 am »
Change to #value Voltage V SI

The selector is used when you process more than 1 measurements from your device.

If you are going to add all channels, you need to use it. But for one channel you can do without.

It is nicely specified in the documentation of TC.
« Last Edit: January 14, 2026, 07:49:54 am by flash2b »
They say attention is a shovel. It's time to dig 'em out.
 
The following users thanked this post: 2X

Offline 2X

  • Frequent Contributor
  • **
  • Posts: 725
  • Country: gr
Re: Program that can log/control many multimeters and other devices.
« Reply #5424 on: January 14, 2026, 08:41:04 am »
Change to #value Voltage V SI

The selector is used when you process more than 1 measurements from your device.

If you are going to add all channels, you need to use it. But for one channel you can do without.

It is nicely specified in the documentation of TC.

I tried the below and also the exact example from the TC page but again invalid error.

#value Voltage V SI
;; Invalid command <#value Voltage V SI>
#value Voltage V D3
;; Invalid command <#value Voltage V D3>


 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf