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

IanJ and 18 Guests are viewing this topic.

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4975 on: October 18, 2025, 07:42:25 pm »
Is there a way to get that from a SCPI command? If I could use stuff like :CHAN1:STATe == ON that would work.

You can do that, but I will not recommend it due to performance reasons.

Either that or if you made it work with defined variables (:setvar: CH1 ON etc).

I have been thinking about that and may make it.
 

Online KungFuJosh

  • Super Contributor
  • ***
  • Posts: 5935
  • Country: us
  • TEAS is real.
Re: Program that can log/control many multimeters and other devices.
« Reply #4976 on: October 18, 2025, 07:44:09 pm »
Is there a way to get that from a SCPI command? If I could use stuff like :CHAN1:STATe == ON that would work.

You can do that, but I will not recommend it due to performance reasons.

Either that or if you made it work with defined variables (:setvar: CH1 ON etc).

I have been thinking about that and may make it.

So, in your opinion, it seems the latter option is the best option for me. I think I agree. ;)

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

Online KungFuJosh

  • Super Contributor
  • ***
  • Posts: 5935
  • Country: us
  • TEAS is real.
Re: Program that can log/control many multimeters and other devices.
« Reply #4977 on: October 19, 2025, 01:31:59 am »
My definition is ready for when the advCombobox supports set variables. I set it up so a variable called CHsOn has the 4 channels in sequence with Y or N values.

Activating or deactivating channels updates the variable.

Then I can set (for example) the maximum memory depth:
327.2M is CHsOn==YNNN
164M is CHsOn==NYNN || CHsOn==NNYN || CHsOn==NNNY
82M is CHsOn==NNYY || CHsOn==YYYN || CHsOn==YYNY || CHsOn==YNYY || CHsOn==NYYY

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

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4978 on: October 19, 2025, 06:50:01 am »
Another update to TC, now v2.84

Params is: label foregroundcolor backgroundcolor expression icon command

Use attached device with these settings in the dummy driver to test it:


This new 2.84 version does not log (I can setup logging, but TC hangs) when I have a setup menu open or a setup menu opened and was closed. Version 2.77 does not have this problem.
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4979 on: October 19, 2025, 08:09:09 am »
This new 2.84 version does not log (I can setup logging, but TC hangs) when I have a setup menu open or a setup menu opened and was closed. Version 2.77 does not have this problem.

I do not see this problem and I have not been in that part of the code either.
« Last Edit: October 19, 2025, 08:19:37 am by HKJ »
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4980 on: October 19, 2025, 08:23:29 am »
This new 2.84 version does not log (I can setup logging, but TC hangs) when I have a setup menu open or a setup menu opened and was closed. Version 2.77 does not have this problem.

I do not see this problem and I have not been in that part of the code either.

But I am not kidding, it just hangs.... nothing on the debug log. The log button also does not get red. I see that TC does the internal askMode but then it hangs.

Java 8u461 64 bit on Windows 10.

What can I do to identify the problem since everything is ok on v2.77 for me. Same definition. Please help....
« Last Edit: October 19, 2025, 08:36:21 am by flash2b »
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4981 on: October 19, 2025, 08:39:19 am »
But I am not kidding, it just hangs.... nothing on the debug log. The log button also does not get red.

I do not like that kind of bug, they are mostly impossible to find.
I am testing with the Dummy I published before, but I have extended it a bit and I am also testing with R&S HMC8043 and do not see any issues.
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4982 on: October 19, 2025, 08:40:38 am »
Tested with my Hameg and Yokogawa defintions, same problem.

When I start logging right away, no problem. But when I have invoked the setup menu (open or open and then close) logging does not work.

I noticed that starting logging right away, the button gets RED color immediately, while when a setup menu is open it takes a few seconds (on 2.77).
« Last Edit: October 19, 2025, 08:46:52 am by flash2b »
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4983 on: October 19, 2025, 08:45:09 am »
Tested with my Hameg and Yokogawa defintions, same problem.

I can upload the current TC and Dummy definition and you can test with them also.
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4984 on: October 19, 2025, 08:47:26 am »
Yes please
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4985 on: October 19, 2025, 09:19:19 am »
Yes please

This version of Dummy can return a value using the read command, i.e. logging is a horizontal line.
The TC download is updated.

 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4986 on: October 19, 2025, 09:21:23 am »
Driver does not load: ;; Dummy Device "Dummy,Dummy" do not match answer: "null"

Code: [Select]
Starting
;; jSerialComm version: 2.11.2
Could not find advcomboboxhot
;; Start thread for: Dummy - TCTest
Tx input: *IDN?
Rx after processing: null
;; Dummy Device "Dummy,Dummy" do not match answer: "null"
;; Stopping thread for: Dummy - TCTest
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4987 on: October 19, 2025, 09:23:45 am »
Driver does not load: ;; Dummy Device "Dummy,Dummy" do not match answer: "null"

Try once more, I do have a issue with initially creating the definition file.
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4988 on: October 19, 2025, 09:26:31 am »
Same, and I am using v2.85 which also hangs the logging when a setup menu has been invoked.
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4989 on: October 19, 2025, 09:33:00 am »
Same, and I am using v2.85 which also hangs the logging when a setup menu has been invoked.

It creates attached file in ...\Documents\Testcontroller\Settings

I suspect something may be wrong with your Java
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4990 on: October 19, 2025, 09:37:28 am »
It did not create that file. If I copy the file in that directory, the same problem exists.

I just reinstalled Java 1h ago...
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4991 on: October 19, 2025, 09:42:17 am »
It did not create that file. If I copy the file in that directory, the same problem exists.

I just reinstalled Java 1h ago...

I do not know what to say or do, I have not had any problems, neither running the .jar file standalone or in my development system.
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4992 on: October 19, 2025, 09:54:45 am »
Well I guess I am stuck on v2.77 for now  :(

v2.84 and v2.85 do not work for me. Is there a location where I can download 2.78 true 2.83 so I can determine where the problem occurred the first ?
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4993 on: October 19, 2025, 09:58:22 am »
Well I guess I am stuck on v2.77 for now  :(

v2.84 and v2.85 do not work for me. Is there a location where I can download 2.78 true 2.83 so I can determine where the problem occurred the first ?

I do not keep the different .jar versions, I only keep the source for all full releases.
 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4994 on: October 19, 2025, 10:23:59 am »
I have retested it with the SDG2000x definition, and there is no problem there. So it may be related to the ascii driver only.

If i use my Hameg HM8112 definition, which is very simple. And if I type askMode? , range? and intTime? on the TC command line directly, logging is not affected. Well the setup menu uses only these 3 scpiCmd's so I am puzzled.

If i invoke the Log button on TC, it will become Stop Log in red straight away. This is different when a setup menu from an ascii definition is opened/was opened. It always takes 1-2 seconds, it was always that way. It does not happen with the SDG2000x definition which is not ascii.
« Last Edit: October 19, 2025, 10:38:05 am by flash2b »
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4995 on: October 19, 2025, 10:46:48 am »
I have retested it with the SDG2000x definition, and there is no problem there. So it may be related to the ascii driver only.

If i use my Hameg HM8112 definition, which is very simple. And if I type askMode? , range? and intTime? on the TC command line directly, logging is not affected. Well the setup menu uses only these 3 scpiCmd's so I am puzzled.

If i invoke the Log button on TC, it will become Stop Log in red straight away. This is different when a setup menu from an ascii definition is opened/was opened. It always takes 1-2 seconds, it was always that way. It does not happen with the SDG2000x definition which is not ascii.

You can try moving the dummy definition to the ascii base, if it locks there is something I can look for.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4996 on: October 19, 2025, 10:50:57 am »
My definition is ready for when the advCombobox supports set variables. I set it up so a variable called CHsOn has the 4 channels in sequence with Y or N values.

Activating or deactivating channels updates the variable.

Then I can set (for example) the maximum memory depth:
327.2M is CHsOn==YNNN
164M is CHsOn==NYNN || CHsOn==NNYN || CHsOn==NNNY
82M is CHsOn==NNYY || CHsOn==YYYN || CHsOn==YYNY || CHsOn==YNYY || CHsOn==NYYY

The current test version includes #scpiCmd vars and advComboBoxHot, use return0(printLog(getVarList(2))) to list them (0=Global, 1=local, 2=parent). I put the other script parser in as parent that prevent any issues if they are used concurrent.
You must use: CHsOn=="YNNN"
But why not: inList(CHsOn,"NNYY YYYN YYNY YNYY NYYY")
« Last Edit: October 19, 2025, 12:17:23 pm by HKJ »
 
The following users thanked this post: KungFuJosh

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4997 on: October 19, 2025, 10:53:50 am »
Change SCPIx to ascii in your dummy driver

Code: [Select]
;; jSerialComm version: 2.11.2
;; Start thread for: Dummy - TCTest
;; Dummy: Tx <pgm>
;; Dummy: Script start
;; Dummy: Script end <>
;; Found TCTest on Dummy

Loaded the driver !! It did not create the settings file.

The dummy setup menu also works, and does not influence the logging.

I hope others will also retest their definitions or will shed some light on what needs to be changed.
« Last Edit: October 19, 2025, 11:03:50 am by flash2b »
They say attention is a shovel. It's time to dig 'em out.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3892
  • Country: dk
    • Tests
Re: Program that can log/control many multimeters and other devices.
« Reply #4998 on: October 19, 2025, 11:02:20 am »
Change SCPIx to ascii in your dummy driver

Code: [Select]
;; jSerialComm version: 2.11.2
;; Start thread for: Dummy - TCTest
;; Dummy: Tx <pgm>
;; Dummy: Script start
;; Dummy: Script end <>
;; Found TCTest on Dummy

Loaded the driver !! It did not create the settings file.

The dummy setup menu also works, and does not influence the logging.

This means I do not know where to look, the ascii driver works.

You may even be able to redefine the dummy so it matches your device, starting usually only requires a few commands.
Note: You can change the configuration file for dummy, by specifying a name in the address field on the load page.


 

Offline flash2b

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: nl
  • Everything I like about myself is better with you.
Re: Program that can log/control many multimeters and other devices.
« Reply #4999 on: October 19, 2025, 11:22:31 am »
Well... that is very disappointing. Since it worked in v2.77 and now I feel it is my fault that is doesn't anymore.......
They say attention is a shovel. It's time to dig 'em out.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf