Author Topic: Program that can log from many multimeters.  (Read 649959 times)

0 Members and 9 Guests are viewing this topic.

Offline gby

  • Regular Contributor
  • *
  • Posts: 248
  • Country: us
Re: Program that can log from many multimeters.
« Reply #650 on: June 01, 2020, 12:13:51 pm »
HKJ thanks for the update.  I can confirm:

    Fixed: #eol can be used on Ascii devices.

now works with the ascii driver.  The device I am trying to talk to just never responded to communications before and is now replying with the #eol \r\n setting and the ascii driver.

Now I just need to work through all the details before sharing a device setup file...except now is time for my day job.

Thanks for all your work.
 

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #651 on: June 02, 2020, 01:20:40 am »
Hi @HKJ, I have a HP 34401A connected to my PC via CH340 RS232 to USB adapter. I tried to connect to TestController with no success.
I have used this setup with Agilent DMM Utility so I know it works.
Any advice?
enut11
an electronics nut from wayback...
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3038
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #652 on: June 02, 2020, 04:39:16 am »
Hi @HKJ, I have a HP 34401A connected to my PC via CH340 RS232 to USB adapter. I tried to connect to TestController with no success.
I have used this setup with Agilent DMM Utility so I know it works.
Any advice?

The first thing to try is starting in debug mode, you can post the output here or send me a mail.
 

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #653 on: June 02, 2020, 06:01:28 am »
Not sure what you mean by debug mode.
When I enter the 34401A meter info in the Load Devices screen I see this:
an electronics nut from wayback...
 

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #654 on: June 02, 2020, 06:04:56 am »
then, when I click Reconnect I hear a beep from the 34401A and 'Rmt' and 'Error' appear on the 34401A display but I do not see my meter in the Commands screen.
an electronics nut from wayback...
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3038
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #655 on: June 02, 2020, 06:12:37 am »
Not sure what you mean by debug mode.

There is a "testControllerDebug.bat" file that can be used to start testController.
If you are running on a non-windows system you need to start it with a command line something like this: "java -jar TestController.jar debug"

Then it will list all steps it do to connect.

When using debug mode it is best only to enable the device being debugged, to keep the debug output as simple as possible.


Can it be that the baudrate setting is wrong?
« Last Edit: June 02, 2020, 06:14:25 am by HKJ »
 

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #656 on: June 02, 2020, 06:37:41 am »
Thanks, I will try now. Baud rate is always 9600. Also looking at the AgilentHP34401A.txt file
an electronics nut from wayback...
 

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #657 on: June 02, 2020, 06:49:46 am »
is this what you need?
an electronics nut from wayback...
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3038
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #658 on: June 02, 2020, 07:39:47 am »
is this what you need?

Yes, you only need to copy the text, not the full picture.

It looks like baudrate or parity/bits. You can specify something like "9600O71" instead of just 9600, if that is required.
Note: I do not have a 34401A meter, the definition was made by "maukka".
 

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #659 on: June 02, 2020, 07:42:18 am »
This is what my PC reports
How do I get in touch with "maukka"
an electronics nut from wayback...
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3038
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #660 on: June 02, 2020, 08:18:05 am »
This is what my PC reports
How do I get in touch with "maukka"

If that is the correct setting, just try using it in the baudrate field on the "load devices" page:
9600E72

I found the manual for the 34401A, the baudrate and parity is a setting in the meter, factory default is 9600E72

maukka is a name here on EEVBlog.
 
The following users thanked this post: enut11

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #661 on: June 02, 2020, 09:12:46 am »
No, it did not work for me. :(
an electronics nut from wayback...
 

Offline maukka

  • Supporter
  • ****
  • Posts: 107
  • Country: fi
Re: Program that can log from many multimeters.
« Reply #662 on: June 02, 2020, 09:44:35 am »
Here's how my settings looks like.



Please check that the connection is working with a terminal program such as Coolterm.



 
The following users thanked this post: Marco1971

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3038
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #663 on: June 02, 2020, 10:36:08 am »
It may be a good idea to check the actual settings in the 34401A.
 

Offline maukka

  • Supporter
  • ****
  • Posts: 107
  • Country: fi
Re: Program that can log from many multimeters.
« Reply #664 on: June 02, 2020, 10:42:50 am »
My 34401A settings under I/O menu:

Interface: RS-232
Baud rate: 9600 baud
Parity: none 8 bits
Language: SCPI
 

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #665 on: June 02, 2020, 09:02:29 pm »
Hi @maukka
Thanks for responding.

I can talk to my 34401A using Keysight connection expert  and log using Agilent dmm utility so the r3232/usb interface works.

When I start TestController I get an 'ERROR' on the 34401A.

My Com port setting is the same on my PC and TestController but I note that you use different com port in TestController (Com8) compared to your PC (Com3).
an electronics nut from wayback...
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3038
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #666 on: June 03, 2020, 04:29:27 am »
I can talk to my 34401A using Keysight connection expert  and log using Agilent dmm utility so the r3232/usb interface works.

Are you sure the Agilent tool uses the PC parameters and not its own?
The best way is to check the baud settings directly on the meter.
 

Offline maukka

  • Supporter
  • ****
  • Posts: 107
  • Country: fi
Re: Program that can log from many multimeters.
« Reply #667 on: June 03, 2020, 04:50:22 am »
My Com port setting is the same on my PC and TestController but I note that you use different com port in TestController (Com8) compared to your PC (Com3).

Looks like the program finds the meter just fine automatically even when the com port settings are wrong.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3038
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #668 on: June 03, 2020, 05:30:25 am »
Looks like the program finds the meter just fine automatically even when the com port settings are wrong.

Only happens when you have checked "Scan serial ports" and you devices answers a *idn? on 9600 baud.
 

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #669 on: June 03, 2020, 05:49:15 am »
I can talk to my 34401A using Keysight connection expert  and log using Agilent dmm utility so the r3232/usb interface works.

Are you sure the Agilent tool uses the PC parameters and not its own?
The best way is to check the baud settings directly on the meter.

@HKJ, yes my 34401A reports 9600 baud when queried through its front panel menu.
an electronics nut from wayback...
 

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #670 on: June 03, 2020, 05:54:55 am »
Given that @maukka can use his 34401A with TestController program and I cannot, there must be a difference in the way my CH340 RS232/USB interface works compared to the Keyspan USB Serial interface.
an electronics nut from wayback...
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3038
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #671 on: June 03, 2020, 06:04:43 am »
@HKJ, yes my 34401A reports 9600 baud when queried through its front panel menu.

What about parity and bits?
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 3038
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #672 on: June 03, 2020, 06:09:49 am »
Given that @maukka can use his 34401A with TestController program and I cannot, there must be a difference in the way my CH340 RS232/USB interface works compared to the Keyspan USB Serial interface.

That may be, but TestController can probably handle it. The only other options I can think of is handshake signals and you can also specify them in the baud rate setting.
At the end of the baud rate string you can add:
D to force DTR high or d to force DTR low.
R to force RTS high or r to force RTS low.

But as long as you receive data from the meter it is not the handshake signals.
 
The following users thanked this post: Marco1971

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #673 on: June 03, 2020, 06:57:29 am »
OK, I can now connect my 34401A to TestController

I copied the Agilent file and made some changes to the TXT file. I think a mistake on my part in not correctly specifying the #idstring line for the meter.

Currently logging and it seems to work. I will test it further.

Meanwhile, how do I re-scale the Y-axis on the Chart window?

BTW, fantastic program @HKJ. Thank you for making it available to Forum members. Much appreciated :)  :-+
« Last Edit: June 03, 2020, 07:00:55 am by enut11 »
an electronics nut from wayback...
 

Offline enut11

  • Super Contributor
  • ***
  • Posts: 1025
  • Country: au
  • Love building/modifying/restoring test equipment
Re: Program that can log from many multimeters.
« Reply #674 on: June 03, 2020, 07:12:20 am »
@HKJ, yes my 34401A reports 9600 baud when queried through its front panel menu.

What about parity and bits?

I have set my meter and PC to 9600 Baud, 8 Data, 1 Stop, No Parity

BTW, I found how to re-scale the chart thanks.
« Last Edit: June 03, 2020, 07:28:41 am by enut11 »
an electronics nut from wayback...
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf