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

0 Members and 2 Guests are viewing this topic.

Offline Scheppo

  • Contributor
  • Posts: 23
  • Country: de
Re: Program that can log from many multimeters.
« Reply #2425 on: May 01, 2022, 05:28:24 pm »
I use now:
Code: [Select]
#value V1 V D2
#value V2 V D2
#value V3 V D2
#value V4 V D2
#value A1 A D3
#value A2 A D3
#value A3 A D3
#value A4 A D3
#value Status - DIGITAL(OFF,CV,CC)

#askValues getV? 1;getV? 2;getV? 3;getv? 4;getC? 1;getC? 2;getC? 3;getC? 4;[50];status? 1;[50];status? 2;[50];status? 3;[50];status? 4
#readingdelay 1

The Result (cut):
Code: [Select]
;; HAMEG7044: Delay: 50ms
;; HAMEG7044: Tx <status? 4>
;; HAMEG7044: Tx <txrx? READ
:readmath: getElement(value,2,";")
:readmath: getElement(value,0)
:string:>
;; COM3: Tx: <READ.> 52 45 41 44 0D
;; COM3: Rx: <12.00V 05.00V 30.00V 30.00V ;1.000A 1.758A 1.968A 3.000A ;OFF F1 OFF F2 OFF F3 OFF F4 > 31 32 2E 30 30 56 20 30 35 2E 30 30 56 20 33 30 2E 30 30 56 20 33 30 2E 30 30 56 20 3B 31 2E 30 30 30 41 20 31 2E 37 35 38 41 20 31 2E 39 36 38 41 20 33 2E 30 30 30 41 20 3B 4F 46 46 20 46 31 20 4F 46 46 20 46 32 20 4F 46 46 20 46 33 20 4F 46 46 20 46 34 20
;; HAMEG7044: Rx <OFF>
;; HAMEG7044: Rx as numbers <12.0 5.0 30.0 30.0 1.0 1.758 1.968 3.0 NaN NaN NaN NaN>

For using the last Output string the NaN must be a 0,1 or 2 (OFF, CV or CC)
So how can i change the OFF, CV and CC in 0,1 and 2?
I hoped the DIGITAL Parameter do this.
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2426 on: May 01, 2022, 05:33:32 pm »
For using the last Output string the NaN must be a 0,1 or 2 (OFF, CV or CC)
So how can i change the OFF, CV and CC in 0,1 and 2?
I hoped the DIGITAL Parameter do this.

No the digital format show bits as text, but it need a numeric input.
Use:
:readmath: listIndex(value,"OFF CV CC")
To do the conversion from string to number
 
The following users thanked this post: Scheppo

Offline Scheppo

  • Contributor
  • Posts: 23
  • Country: de
Re: Program that can log from many multimeters.
« Reply #2427 on: May 01, 2022, 05:52:08 pm »
Next Problem:
#cmdSetup buttonsOn CH-1
:read:
:updatealloff:
Off off
On on

This Buttons works ok, but i dont know which :read: Command i must use for the Red/Green Light?
Quote
The result from :read: must match the "on" value, then the indicator will turn on.

The ON value is only for switch the Output on/off:
#scpiCmd on tx ENABLE
#scpiCmd off tx DISABLE
I can not read this parameter in the PS.

The only way is to read out the status?
When Answer is "OFF" then output is off.
When Answer is "CC" or "CV" then Output is on.
But i am not able to make a Command for this :(
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2428 on: May 01, 2022, 05:58:28 pm »
The only way is to read out the status?
When Answer is "OFF" then output is off.
When Answer is "CC" or "CV" then Output is on.
But i am not able to make a Command for this :(

:readmath: value=="CC" || value=="CV"?"on":"off"

And if you change the status? to numeric output you can use:

:readmath: value>0?"on":"off"
 
The following users thanked this post: Scheppo

Offline Scheppo

  • Contributor
  • Posts: 23
  • Country: de
Re: Program that can log from many multimeters.
« Reply #2429 on: May 01, 2022, 06:10:18 pm »
The only way is to read out the status?
When Answer is "OFF" then output is off.
When Answer is "CC" or "CV" then Output is on.
But i am not able to make a Command for this :(

:readmath: value=="CC" || value=="CV"?"on":"off"

And if you change the status? to numeric output you can use:

:readmath: value>0?"on":"off"

Wow, you must be a Doctor or better.....
Thank you very much.

 

Offline rachdatu

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ch
Re: Program that can log from many multimeters.
« Reply #2430 on: May 02, 2022, 08:22:36 am »
Quote
You basically have to add a spy on the communication and then manually decode the protocol.

I often uses this terminal program for it: https://www.compuphase.com/software_termite.htm it has a pass-through  mode that can be used.
It requires 3 serial ports on the computer to do this: One for the original program and two for the terminal program (one in and one out). All can be done with usb adapters.

Thanks for the info. I will have a look in a few weeks.
 

Offline Scheppo

  • Contributor
  • Posts: 23
  • Country: de
Re: Program that can log from many multimeters.
« Reply #2431 on: May 02, 2022, 08:51:42 pm »
Hello again :)

is it possible to put more than one replace in one line?
Original value = OFF -1 CV  -2 CC  -3 CV  -4
Code:
#scpiCmd getStat? txrx? READ
:readmath: getElement(value,2,";")
:readmath: replace(value,"OFF","0")
:readmath: replace(value," -1","")
:readmath: replace(value," -2","")
:readmath: replace(value," -3","")
:readmath: replace(value," -4","")
Result = 0 CV CC CV
Is it possible to make replace(value," -*","") and all channel from 1-4 replaced by ""?

Same question for "getElement"
:readmath: getElement(value,2,";")
:readmath: getElement(value,0)
:readmath: listIndex(value,"OFF CV CC")
Is this possible in one Line? and is this then faster or same speed?


« Last Edit: May 02, 2022, 10:10:10 pm by Scheppo »
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2432 on: May 03, 2022, 06:38:00 am »
is it possible to put more than one replace in one line?
Original value = OFF -1 CV  -2 CC  -3 CV  -4
Code:
#scpiCmd getStat? txrx? READ
:readmath: getElement(value,2,";")
:readmath: replace(value,"OFF","0")
:readmath: replace(value," -1","")
:readmath: replace(value," -2","")
:readmath: replace(value," -3","")
:readmath: replace(value," -4","")
Result = 0 CV CC CV
Is it possible to make replace(value," -*","") and all channel from 1-4 replaced by ""?

There is no replace with wildcards, but it is a good idea and I will include it in the next release (replaceRX where the from can be regEx, i.e. replaceRX("OFF -1 CV  -2 CC  -3 CV  -4"," -[1234]","") -> OFF CV  CC  CV
)
You can put stuff on one line, you basically have to replace value with the expression from the line above:

replace(replace(replace(replace(replace(getElement(value,2,";"),"OFF","0")," -1","")," -2","")," -3","")" -4","")

It gets a bit messy if you do it too much.

Same question for "getElement"
:readmath: getElement(value,2,";")
:readmath: getElement(value,0)
:readmath: listIndex(value,"OFF CV CC")
Is this possible in one Line? and is this then faster or same speed?

Same way:

listIndex(getElement(getElement(value,2,";"),0),"OFF CV CC")

And it will be faster, because the calculator only need to be invoked once.
 
The following users thanked this post: Scheppo

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2433 on: May 03, 2022, 08:45:08 am »
V2.06 is up
It is a mixed bag of devices and a new popup that gives a visual interface to some chart based commands.
   Added: replaceRX() that is a RegEx version of the replace() function
   Fixed: Riden RD6012 power supply.
   Added: Riden RD6018 power supply (Thanks toddehawk)
   Added: Riden DPH5005 power supply (Thanks rachdatu)
   Added: Manson HCS-3404 power supply (Thanks Scheppo)
   Added: East Tester ET5301 electronic load (Thanks SebiTNT)
   Fixed: GridPanel color selection remembers last selected colors
   Fixed: Table column width can be adjusted.
   Changed: Keysight DS0X2214A to DS0X2024A, the 2214 do not exist according to WS.
   Added: Keysight U1242C DMM (Thanks WS)
   Added: Keysight U1211A, Keysight U1212A, Keysight U1213A Clamp meters (Thanks WS)
   Changed: HP/Agilent 34401A uses handshake for more reliable RS232 communication (Thanks WS).
   Added: Script generation with all settings from layout popup and a bit more to restore a chart layout.
   Changed: Increased maximum number of scale from 6 to 8 due to the easy way to combine scales.
   Added: Layout popup to chart, this can change colors and names, add annotations and reduce number of scales.
   Added: HP E3632A, HP E3633A, HP E3634A Power supplies (Thanks WS)
   Added: Support for RS232 flow control (Only fully supported on Windows)
   Added: HP 6631B, HP 6632B, HP 6633B, HP 6634B Power supplies (Thanks WS)



Colors can easily be changed on different elements on a chart.



Names of the curves can be changed on the chart (these changes will only affect the chart, not anywhere else)



Combine similar scales to get more chart area, due to this I have also increased the maximum from 6 to 8 simultaneous curves.



Annotations can be added here.



When this popup is open it is possible to generate a script with all chart settings
 
The following users thanked this post: coromonadalix, tubularnut, MikeLud

Offline Scheppo

  • Contributor
  • Posts: 23
  • Country: de
Re: Program that can log from many multimeters.
« Reply #2434 on: May 03, 2022, 06:25:17 pm »
is it possible to put more than one replace in one line?
Original value = OFF -1 CV  -2 CC  -3 CV  -4
Code:
#scpiCmd getStat? txrx? READ
:readmath: getElement(value,2,";")
:readmath: replace(value,"OFF","0")
:readmath: replace(value," -1","")
:readmath: replace(value," -2","")
:readmath: replace(value," -3","")
:readmath: replace(value," -4","")
Result = 0 CV CC CV
Is it possible to make replace(value," -*","") and all channel from 1-4 replaced by ""?

There is no replace with wildcards, but it is a good idea and I will include it in the next release (replaceRX where the from can be regEx, i.e. replaceRX("OFF -1 CV  -2 CC  -3 CV  -4"," -[1234]","") -> OFF CV  CC  CV
)
You can put stuff on one line, you basically have to replace value with the expression from the line above:

replace(replace(replace(replace(replace(getElement(value,2,";"),"OFF","0")," -1","")," -2","")," -3","")" -4","")

It gets a bit messy if you do it too much.

 :-+ :-+ ReplaceRX is very good

All what i want is now in one Line, and i have learned how this works.

#scpiCmd getStat? txrx? READ
:readmath: listIndex(getElement(replaceRX(getElement(value,2,";")," -[1234]",""),inputValue-1),"OFF CV CC")

I get now for every Channel 0,1 or 2
           
When the electronic Fuse in PS is active, then the value string changes from
"OFF -1 CV  -2 CC  -3 CV  -4" to "OFF F1 CV  F2 CC  F3 CV  F4"
So i change the Part " -[1234]" to " [-F][1234]"
And this works  :-+

                                                                 
thx HKJ
« Last Edit: May 03, 2022, 06:38:14 pm by Scheppo »
 

Offline rachdatu

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ch
Re: Program that can log from many multimeters.
« Reply #2435 on: May 12, 2022, 04:27:56 pm »
Quote
You basically have to add a spy on the communication and then manually decode the protocol.

I often uses this terminal program for it: https://www.compuphase.com/software_termite.htm it has a pass-through  mode that can be used.
It requires 3 serial ports on the computer to do this: One for the original program and two for the terminal program (one in and one out). All can be done with usb adapters.

Thanks for the info. I will have a look in a few weeks.


I have installed Termite and com0com (pass-through). It works pretty well with most of my devices ...except with the Hyperion EOS Suite.
The Suite does work with my device. I can change any parameters. However, as soon as I put the sniffer in between, the Suite doesn't recognized the device  :-//

I am kind of stuck. Do you have any suggestions?
Thanks
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2436 on: May 12, 2022, 05:44:31 pm »
I have installed Termite and com0com (pass-through). It works pretty well with most of my devices ...except with the Hyperion EOS Suite.
The Suite does work with my device. I can change any parameters. However, as soon as I put the sniffer in between, the Suite doesn't recognized the device  :-//

I am kind of stuck. Do you have any suggestions?

Baudrate or handshake. Termite must be set to same baudrate as the program uses.
I am not sure if it will echo the handshake signals or use some standard setting.
 

Offline Kean

  • Supporter
  • ****
  • Posts: 2089
  • Country: au
  • Embedded systems & IT consultant
    • Kean Electronics
Re: Program that can log from many multimeters.
« Reply #2437 on: May 12, 2022, 06:21:39 pm »
Quote
You basically have to add a spy on the communication and then manually decode the protocol.

I often uses this terminal program for it: https://www.compuphase.com/software_termite.htm it has a pass-through  mode that can be used.
It requires 3 serial ports on the computer to do this: One for the original program and two for the terminal program (one in and one out). All can be done with usb adapters.

Thanks for the info. I will have a look in a few weeks.


I have installed Termite and com0com (pass-through). It works pretty well with most of my devices ...except with the Hyperion EOS Suite.
The Suite does work with my device. I can change any parameters. However, as soon as I put the sniffer in between, the Suite doesn't recognized the device  :-//

I am kind of stuck. Do you have any suggestions?
Thanks

Instead of using the com0com software make up a passive spy/tap cable
https://www.compuphase.com/electronics/rs232split.htm
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2438 on: May 12, 2022, 07:12:20 pm »
Instead of using the com0com software make up a passive spy/tap cable
https://www.compuphase.com/electronics/rs232split.htm

That is a better solution, but with Termite having two COM ports you can ditch the diodes and resistors and simply directly use the two RX inputs.
 

Offline rachdatu

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ch
Re: Program that can log from many multimeters.
« Reply #2439 on: May 14, 2022, 01:49:06 pm »
From the screenshot, I have been able to decode the "button sound" (ON and OFF) as an example.

Code: [Select]
.000A8A0000020A
.0186CA0000003B000800004BD900000000000000000000F154000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049C3..000A8A0000020A
.0186CA0000003B000800004BDA00000000000000000000F144000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049CA..000A8A0000020A
.0186CA0000003B000800004BD900000000000000000000F134000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049C1..000A8A0000020A
.0186CA0000003B000800004BD900000000000000000000F13C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049D0..000A8A0000020A
.0186CA0000003B000800004BD900000000000000000000F148000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049C6..000A8A0000020A
.0186CA0000003B000800004BD900000000000000000000F136000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049C3..000A8A0000020A
.0186CA0000003B000800004BC200000000000000000000F148000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0036030000000000010006000100010001000201180190000927100A5F
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049BE...000A8A0000020A
.0186CA0000003B000800004BD500000000000000000000F140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049BA..000A8A0000020A
.0186CA0000003B000800004BD800000000000000000000F148000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049C5..000A8A0000020A
.0186CA0000003B000800004BA200000000000000000000F14E000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049C9..000A8A0000020A
.0186CA0000003B000800004B8F00000000000000000000F14E000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0036030000000000010006000000010001000201180190000927100A5E
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049D4...000A8A0000020A
.0186CA0000003B000800004B8F00000000000000000000F144000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049C3..000A8A0000020A
.0186CA0000003B000800004BAD00000000000000000000F14A000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049D7..000A8A0000020A
.0186CA0000003B000800004BD800000000000000000000F13C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049CF..000A8A0000020A
.0186CA0000003B000800004B8A00000000000000000000F13C000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049CC.



Here is a simplified view:

Code: [Select]
5333 IRP_MJ_WRITE - Request transfers data from a client to a COM port (COM23) - 60 bytes of 60
    STATUS_SUCCESS
            0c 30 30 33 36 30 33 30 30 30 30 30 30 30 30 30   .003603000000000
            30 30 31 30 30 30 36 30 30 30 31 30 30 30 31 30   0010006000100010
            30 30 31 30 30 30 32 30 31 31 38 30 31 39 30 30   0010002011801900
            30 30 39 32 37 31 30 30 41 35 46 0d               00927100A5F.     


5567 IRP_MJ_WRITE - Request transfers data from a client to a COM port (COM23) - 16 bytes of 16
    STATUS_SUCCESS
            0c 30 30 30 41 38 41 30 30 30 30 30 32 30 41 0d   .000A8A0000020A.



8507 IRP_MJ_WRITE - Request transfers data from a client to a COM port (COM23) - 60 bytes of 60
    STATUS_SUCCESS
            0c 30 30 33 36 30 33 30 30 30 30 30 30 30 30 30   .003603000000000
            30 30 31 30 30 30 36 30 30 30 30 30 30 30 31 30   0010006000000010
            30 30 31 30 30 30 32 30 31 31 38 30 31 39 30 30   0010002011801900
            30 30 39 32 37 31 30 30 41 35 45 0d               00927100A5E.     


10333 IRP_MJ_WRITE - Request transfers data from a client to a COM port (COM23) - 16 bytes of 16
    STATUS_SUCCESS
            0c 30 30 30 41 38 41 30 30 30 30 30 32 30 41 0d   .000A8A0000020A.



We can identify a few things:

The button change status, the "End sound melody" value, the Power values 28.0 and 40.0. These ones multiplied by 10 and convert to hex give
118 and 190). The input voltage value (10.000) multiplied by 1000 and converted to hex give 2710.

Before we go further, is that possible with this info to make a test with TC, create a dialog box and enable/disable the Button sound?

Thanks
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2440 on: May 14, 2022, 02:27:26 pm »

Before we go further, is that possible with this info to make a test with TC, create a dialog box and enable/disable the Button sound?

Yes, you will want to use the block driver: https://lygte-info.dk/project/TestControllerConfigDevice2%20UK.html#Binary_with_fixed_communication_blocks_(Block)

And you will want to run TC in debug mode (use testControllerDebug.bat) to see exactly what is going on.
 

Offline danielg

  • Contributor
  • Posts: 10
  • Country: is
Re: Program that can log from many multimeters.
« Reply #2441 on: May 14, 2022, 05:36:10 pm »
Hello HKJ and thanks for your effort and change for us to use your sw
I can see that you have support for UNIT UT61E (serial connection old type)
I have UNIT UT61E+ for USB connection and I cant find that it uses usb2serial.
Do you support this new type and if not do you think you will ?
I cant tell you verison of your sw because I cant find it (files since july of 2020)
Thanks alot
br Daniel  :)
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2442 on: May 14, 2022, 06:02:56 pm »
Hello HKJ and thanks for your effort and change for us to use your sw
I can see that you have support for UNIT UT61E (serial connection old type)
I have UNIT UT61E+ for USB connection and I cant find that it uses usb2serial.
Do you support this new type and if not do you think you will ?
I cant tell you verison of your sw because I cant find it (files since july of 2020)

The version can be seen if you select the Configuration page and press About. If you are using TestController with your computer online it will tell you if TestController has been updated.
I will generally recommend to update TestController every few months, i.e. at least 3 to 4 times a year and, of course, more often if you see a interesting feature or device in the update list.

I have not got any code that can handle the serial HID connections that UNI-T uses, I hope to fix that one day. Straight serial connections and socket connections are handled without any problems, it is only the HID connection that is a problem. The reason some DMM's uses HID interface is because it works without a driver, but it requires some special coding to access and that is not covered by standard Java or by the serial library I use.
You can see some of the (good) DMM's I support here: https://lygte-info.dk/info/DMMFrequencyResponse%20UK.html.
« Last Edit: May 14, 2022, 06:06:32 pm by HKJ »
 
The following users thanked this post: danielg

Offline Chernobyl

  • Contributor
  • Posts: 15
  • Country: ca
Re: Program that can log from many multimeters.
« Reply #2443 on: May 16, 2022, 03:21:01 am »
Thanks, HKJ, for an amazingly comprehensive program! Very handy for logging from my Keithley 2000 using the GPIB interface (works perfect).

I've crafted a basic configuration for an HP 6624A (four channel power supply) which is attached. I feel like there should be some way that I can simplify things so I don't need SCPI commands for each channel, but I haven't been able to figure out how to pass the channel as a parameter. Any suggestions?

 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2444 on: May 16, 2022, 06:23:37 am »
I've crafted a basic configuration for an HP 6624A (four channel power supply) which is attached.

Thanks, it will be included in the next release.
It is missing the #interface definitions, they are used for some functions in TestController.

I feel like there should be some way that I can simplify things so I don't need SCPI commands for each channel, but I haven't been able to figure out how to pass the channel as a parameter. Any suggestions?

The #scpiCmd only accept one parameter string, but this string contains all parameters. This means you can use a parameter with both channel and value and then split it up in the actual #scpiCmd definition (Using getElement()).
I.e. something like:
#scpiCmd setV tx VSET(getElement(value,0)),(getElement(value,1))
Would probably (I have not tested it) work with "setV 1 5"

 

Offline Chernobyl

  • Contributor
  • Posts: 15
  • Country: ca
Re: Program that can log from many multimeters.
« Reply #2445 on: May 17, 2022, 07:21:16 pm »
Thanks, it will be included in the next release.
It is missing the #interface definitions, they are used for some functions in TestController.

Thanks. I've attached a newer version that includes the #interface definitions. I had them in there originally, but took them out as removing them didn't seem to affect anything (to be honest I'm not sure what Test Controller uses them for).
 

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2446 on: May 17, 2022, 07:37:45 pm »
Thanks. I've attached a newer version that includes the #interface definitions. I had them in there originally, but took them out as removing them didn't seem to affect anything (to be honest I'm not sure what Test Controller uses them for).

The #interface is used in scripts, in LogEvent popup and in some panels on GridPanel. They are not required, but it adds some functionality.
In a script this:
=var ps=getDevice("ps");
=setVoltage(ps,5);
=setCurrent(ps,1);
=setOn(ps,1);
Will work with any power supply that as a working interface. Without the interface you would have to use the SCPI commands and they are not the same for all supplies.

You can use the popup "Test interface for current selected device" to test that the functions are working correctly
I doubt they are with this definition:
#scpiCmd setV tx VSET(channel),(value)

Try this one instead:
#scpiCmd setV tx VSET(getElement(value,0)),(getElement(value,1))

 

Offline Totoro

  • Contributor
  • Posts: 12
  • Country: de
    • The Belfry
Re: Program that can log from many multimeters.
« Reply #2447 on: May 26, 2022, 11:00:47 am »
Hi,
I recently purchased a Gossen Metrahit Energy with the USB IR interface cable and was excited to run across this software. Unfortunately, the cable doesn't seem to work with my MacBook running 10.15 Catalina or MacMini running Monterey. Normally, a device shows up in the /dev folder with the names cu.usbserial-xxxxx and tty.usbserial-xxxxx. I assume that is the address that the Test Controller program wants. At first I thought it was a FTDI driver problem but other FTDI devices I have do work. I did install the FTDI beta VCP driver 1.4.7 for MacOS 10.15 from their website but no luck.

Has anyone got the Metrahit USB X-Tra cable working with their Mac? I'm looking forward to trying out Test Controller. It looks pretty impressive. Thank you.

Edit:
I am beginning to think that the Gossen cable only works with the supplied driver in Windows. That would be a shame. I have asked Gossen about this and will let you know what they say.

Michael
« Last Edit: May 26, 2022, 11:27:56 am by Totoro »
 

Offline TheDefpom

  • Frequent Contributor
  • **
  • Posts: 705
  • Country: nz
  • YouTuber Nerd - I Fix Stuff
    • The Defpom's Channel
Re: Program that can log from many multimeters.
« Reply #2448 on: May 26, 2022, 10:13:29 pm »
Attached is a updated version of the Siglent SDL10xxXxx definition to fix the mAh vs Ah display and logging table, and incorrect label of the CR mode resistance setting.

Thanks for pointing out the error.
« Last Edit: May 26, 2022, 10:32:41 pm by TheDefpom »
Cheers Scott

Check out my Electronics Repair, Mailbag, or Review Videos at https://www.youtube.com/TheDefpom
 
The following users thanked this post: tautech, tubularnut

Offline HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2449 on: May 27, 2022, 04:12:15 pm »
I recently purchased a Gossen Metrahit Energy with the USB IR interface cable and was excited to run across this software. Unfortunately, the cable doesn't seem to work with my MacBook running 10.15 Catalina or MacMini running Monterey. Normally, a device shows up in the /dev folder with the names cu.usbserial-xxxxx and tty.usbserial-xxxxx. I assume that is the address that the Test Controller program wants. At first I thought it was a FTDI driver problem but other FTDI devices I have do work. I did install the FTDI beta VCP driver 1.4.7 for MacOS 10.15 from their website but no luck.

Has anyone got the Metrahit USB X-Tra cable working with their Mac? I'm looking forward to trying out Test Controller. It looks pretty impressive. Thank you.

Edit:
I am beginning to think that the Gossen cable only works with the supplied driver in Windows. That would be a shame. I have asked Gossen about this and will let you know what they say.

I do not know what chip Gossen uses, but I believe I have seen a user made interface for the Metrahit (Somewhere around here) that uses a standard chip.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf