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

GingGangGooly, HKJ and 7 Guests are viewing this topic.

Offline oz2cpu

  • Frequent Contributor
  • **
  • Posts: 850
  • Country: dk
    • webx.dk private hobby and diy stuff
Re: Program that can log from many multimeters.
« Reply #2475 on: June 03, 2022, 07:12:53 am »
you can also see here :

http://webx.dk/oz2cpu/TemperatureSensorTC/TempLogger.htm

using another temperature sensor, TMP275
but you get the point quite fast, anything that can read temperature, can be used, simply modify the arduino code
NTC for example, if you dont need it to be super accurate
Radioamateur OZ2CPU, Senior EE at Prevas
EMC RF SMPS SI PCB LAYOUT and all that stuff.
 

Offline SpottedDick

  • Regular Contributor
  • *
  • Posts: 91
  • Country: ie
Re: Program that can log from many multimeters.
« Reply #2476 on: June 04, 2022, 12:03:27 pm »
Yeah, the issue with the DS1820 is that it's far too big in the TO-92 package to place in suitable locations. When I have some time on my hands, I'm going to write it to use the Arduino ADC. I've some wonderfully tiny 10k B3950 NTCs here that would be far better suited to the job.

Using the DS1820 for now though as I've already spent way too much time on this project!

I'll pass on the NTC version to OP when I get it done so others can use it as well.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2477 on: June 04, 2022, 01:42:09 pm »
I've some wonderfully tiny 10k B3950 NTCs here that would be far better suited to the job.

TestController has the math for NTC's buildin, at least when you have the actual resistance of it:
https://lygte-info.dk/project/TestControllerFunctions%20UK.html#Temperature_sensors_thermistor/NTC
 

Offline SpottedDick

  • Regular Contributor
  • *
  • Posts: 91
  • Country: ie
Re: Program that can log from many multimeters.
« Reply #2478 on: June 05, 2022, 10:44:01 pm »
Thanks for this.

I'm just about to start this project, is there a reason I'd try and calculate resistance and pass it back instead of making ardunio code that simply lets you define the sensor there?

I still think passing the temperature back so it can work with the same DS1820 project makes the most sense to me?
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2479 on: June 06, 2022, 05:14:48 am »
I'm just about to start this project, is there a reason I'd try and calculate resistance and pass it back instead of making ardunio code that simply lets you define the sensor there?

I still think passing the temperature back so it can work with the same DS1820 project makes the most sense to me?

To get the most precise temperature from a NTC you need to measure/calculate the resistance and then use the NTC math to get the temperature.

It is best to have everything in the Arduino, but as a temporary solution the NTC math in TestController can be used and it can also be used to verify the Arduino calculations.

The reason I have put the different temperature sensor calculations in TestController is multimeters, i.e. you can basically use any standard temperature sensor with a multimeter and TestController can convert from ohms or volts to the actual temperature.
 

Offline SpottedDick

  • Regular Contributor
  • *
  • Posts: 91
  • Country: ie
Re: Program that can log from many multimeters.
« Reply #2480 on: June 06, 2022, 11:08:38 pm »
Quote
The reason I have put the different temperature sensor calculations in TestController is multimeters, i.e. you can basically use any standard temperature sensor with a multimeter and TestController can convert from ohms or volts to the actual temperature.

Ah of course!

I have an Arduino program ready along with the Test controller device file for using an NTC with the Nano. Did some calibration tests on it and it's very accurate. To give an idea of why I wanted to use a small NTC instead of a DS1820 for temperature measurement, here's what temperatures you get from both when attached to a 3W resistor where I slowly ramped up the load and then let it sit at around 100°C



Bead NTC reading just over 100 Degrees and the ds1820 was only reading around 70!

Once I have this code cleaned up a bit I'll upload both the Arduino ino and test controller device file.

I left the DS1820 code in, so you can request both temperatures from the unit, this is as I want to use a DS1820 to track ambient temperature as well :)

I also added the code for a screen to display the measurements, but of course connecting that is optional, you can just use it for NTC measurement and nothing else (which was the original goal).

https://streamable.com/ibg2kx
« Last Edit: June 06, 2022, 11:13:39 pm by SpottedDick »
 

Offline SpottedDick

  • Regular Contributor
  • *
  • Posts: 91
  • Country: ie
Re: Program that can log from many multimeters.
« Reply #2481 on: June 06, 2022, 11:18:53 pm »
Posting this as a separate comment as to not muddy the waters.

Anyone here an expert on Test controller and want to earn €10 via revolout/PayPal :-DD

The Mastech 6514 is a dual channel thermocouple device that spits out temperature measurements over USB (serial to USB converter). I tried for over an hour today, but I just can't get my head around writing the device file for it. It just fires out a series of bytes about every 30 seconds with a bunch of information, but all we really want is the two temperature measurements.

https://sigrok.org/wiki/MASTECH_MS6514

Should be handy enough for someone who knows what they're doing.

 

Offline Messtechniker

  • Frequent Contributor
  • **
  • Posts: 782
  • Country: de
  • Old analog audio hand - No voodoo.
Re: Program that can log from many multimeters.
« Reply #2482 on: June 07, 2022, 06:50:40 am »
Had an old NI1000 temperature sensor lying
around unused due to a mispurchase :palm:.
Got it going again thanks to Test Controller with its
built-in math for such sensors. :-+
Something even my 34465A does not have.
Agilent 34465A, Siglent SDG 2042X, Hameg HMO1022, R&S HMC 8043, Peaktech 2025A, Voltcraft VC 940, M-Audio Audiophile 192, R&S Psophometer UPGR, 3 Transistor Testers, DL4JAL Transistor Curve Tracer, UT622E LCR meter
 

Offline HighVoltage

  • Super Contributor
  • ***
  • Posts: 5473
  • Country: de
Re: Program that can log from many multimeters.
« Reply #2483 on: June 07, 2022, 07:48:55 am »
Had an old NI1000 temperature sensor lying
around unused due to a mispurchase :palm:.
Got it going again thanks to Test Controller with its
built-in math for such sensors. :-+
Something even my 34465A does not have.

What is a NI1000 sensor?
There are 3 kinds of people in this world, those who can count and those who can not.
 

Offline Messtechniker

  • Frequent Contributor
  • **
  • Posts: 782
  • Country: de
  • Old analog audio hand - No voodoo.
Re: Program that can log from many multimeters.
« Reply #2484 on: June 07, 2022, 09:22:16 am »
The Ni1000 is a resistive temperature sensor based
on nickel material for the resistve element having
in this case a resistance of 1000 Ohms at Zero Deg. C.
More commonly used are Pt100 or Pt1000
with platinum as the resistive material.

Agilent 34465A, Siglent SDG 2042X, Hameg HMO1022, R&S HMC 8043, Peaktech 2025A, Voltcraft VC 940, M-Audio Audiophile 192, R&S Psophometer UPGR, 3 Transistor Testers, DL4JAL Transistor Curve Tracer, UT622E LCR meter
 
The following users thanked this post: HighVoltage

Offline Pukker

  • Regular Contributor
  • *
  • Posts: 148
  • Country: nl
Re: Program that can log from many multimeters.
« Reply #2485 on: June 10, 2022, 12:04:04 pm »
Made an (simple) script for testing several
type of power-supplies. So I can test for example
an wall-adapter if it does work according the specification.
You can specify the nominal voltage, min. en max. current,
number of test steps, maximum voltage drop in percents
The minimum voltage (start Voltage - max. Voltage drop)
is controlled by the Load.
For example, an adapter with transformer, rectifier en caps
has much more drop than an SMPS.
In my case I'm using DL24 or PX100 electronic load.
« Last Edit: June 10, 2022, 12:21:58 pm by Pukker »
 

Offline rachdatu

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ch
Re: Program that can log from many multimeters.
« Reply #2486 on: June 10, 2022, 02:43:40 pm »
Hello

I have decoded a sentence that contains 20 variables in HEX format:

Code: [Select]
Rx <4B94 1E99 0012 0000 0000 0000 0000 0000 0000 1E9B 0000 0000 0000 0000 0000 019E 0000 0000 0000 0000>
#askValues values? returns the following:
Code: [Select]
Rx as numbers <NaN Infinity 12.0 0.0 0.0 0.0 0.0 0.0 0.0 NaN 0.0 0.0 0.0 0.0 0.0 1.9E19 0.0 0.0 0.0 0.0>

Question: how do I convert each of these variables to decimal values?

Another question: I need to send different commands to a device in ASCII format with a CRC/Checksum.
How do I calculate that CRC?

As an example, this command generates the following CRC: (0A5F)
Code: [Select]
.0036030000000000010006000100010001000201180190000927100A5F.
Same command, in ASCII:
Code: [Select]
0x0c 0x30 0x30 0x33 0x36 0x30 0x33 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x36 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x32 0x30 0x31 0x31 0x38 0x30 0x31 0x39 0x30 0x30 0x30 0x30 0x39 0x32 0x37 0x31 0x30 0x30 0x41 0x35 0x46 0x0d
Thanks
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2487 on: June 10, 2022, 03:43:20 pm »
Made an (simple) script for testing several
type of power-supplies.

Interesting, I have a few comments:
1) End the filename with "Script" and save it in ..\TestController\ScriptLibrary , then it will be accessible in the right click menu.
2) Add a #autorun after the #scriptMenu line, then it will auto start.
3) Add #scriptInterface Load setCurrent SetVoltage setOn then the menu entry will only show if a load is loaded and has the listen functions in the interface
4) Clean it up, there is some unused code and lines in it.

When using SetVoltage on a load it will switch to constant voltage mode and may ignore the setCurrent value.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2488 on: June 10, 2022, 03:49:54 pm »
Hello

I have decoded a sentence that contains 20 variables in HEX format:

Code: [Select]
Rx <4B94 1E99 0012 0000 0000 0000 0000 0000 0000 1E9B 0000 0000 0000 0000 0000 019E 0000 0000 0000 0000>
#askValues values? returns the following:
Code: [Select]
Rx as numbers <NaN Infinity 12.0 0.0 0.0 0.0 0.0 0.0 0.0 NaN 0.0 0.0 0.0 0.0 0.0 1.9E19 0.0 0.0 0.0 0.0>

Question: how do I convert each of these variables to decimal values?

You will have to return integers, not hex. In math expressions 0xaaaa is a valid integer, but not in the #askValues

Another question: I need to send different commands to a device in ASCII format with a CRC/Checksum.
How do I calculate that CRC?

As an example, this command generates the following CRC: (0A5F)
Code: [Select]
.0036030000000000010006000100010001000201180190000927100A5F.
Same command, in ASCII:
Code: [Select]
0x0c 0x30 0x30 0x33 0x36 0x30 0x33 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x36 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x31 0x30 0x30 0x30 0x32 0x30 0x31 0x31 0x38 0x30 0x31 0x39 0x30 0x30 0x30 0x30 0x39 0x32 0x37 0x31 0x30 0x30 0x41 0x35 0x46 0x0d

There is no easy way to make a CRC. What driver do you use? Maybe I can add it to the driver, another option is a function to calculate crc.
 

Offline rachdatu

  • Regular Contributor
  • *
  • Posts: 54
  • Country: ch
Re: Program that can log from many multimeters.
« Reply #2489 on: June 10, 2022, 08:35:46 pm »
Quote
There is no easy way to make a CRC. What driver do you use? Maybe I can add it to the driver, another option is a function to calculate crc.
This is the block driver.

 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2490 on: June 11, 2022, 12:11:38 pm »
Quote
There is no easy way to make a CRC. What driver do you use? Maybe I can add it to the driver, another option is a function to calculate crc.
This is the block driver.

In next version you can change you "s" specified to "h" and get the hex converted to integers.
There will also be a optional crc/checksum calculation you can activate.
 

Offline vladobac

  • Contributor
  • Posts: 43
  • Country: sk
Re: Program that can log from many multimeters.
« Reply #2491 on: June 11, 2022, 06:21:06 pm »
I bought an electronic load Atorch DL24M-H. After the first start, I connected to your program without any problems. Everything worked, only there were occasional drops in the recorded voltage. The program offered me an upgrade, so I implemented it. Everything works when controlled from the display. Even when installing the original application from Atorch, the load is connected and everything works. However, this is unsatisfactory for me. I want to use your program for recording and it can no longer connect.
I also have a 150W version of the Atorch DL24P, this one works very well for me with your program. I don't know what happened to the DL24M-H upgrade, but it can't connect to TestController (ver.2.6). Don't have any idea how to liven it up?
 

Offline Pukker

  • Regular Contributor
  • *
  • Posts: 148
  • Country: nl
Re: Program that can log from many multimeters.
« Reply #2492 on: June 11, 2022, 06:27:11 pm »
Made an (simple) script for testing several
type of power-supplies.

Interesting, I have a few comments:
1) End the filename with "Script" and save it in ..\TestController\ScriptLibrary , then it will be accessible in the right click menu.
2) Add a #autorun after the #scriptMenu line, then it will auto start.
3) Add #scriptInterface Load setCurrent SetVoltage setOn then the menu entry will only show if a load is loaded and has the listen functions in the interface
4) Clean it up, there is some unused code and lines in it.

When using SetVoltage on a load it will switch to constant voltage mode and may ignore the setCurrent value.
Thanks HKJ,

1 Done
2 Done
3 When I do that, script is not listed  in the right click menu. In List and Manage Scripts it is marked with an IF.
even when load is ready and connected.?
4 Done (as far as possible for an programmer with low programming skills. (Trial and Error programmer)

"When using SetVoltage on a load it will switch to constant voltage mode and may ignore the setCurrent value."
I use DL24 or PX100 and it doesn't happen to me. Stays in CC mode. Don't know how to bypass
both settings when I want to tell the load to shutdown by low voltage.

Did also some rework, made minimum voltage setting selectable by setting in absolute voltage drop of percents of starting voltage.

Added shutdown load when Testcontroller detects under minimum voltage, for the case the Load doesn't.
(overload protection for the powersupply.
« Last Edit: June 11, 2022, 06:35:21 pm by Pukker »
 

Offline Pukker

  • Regular Contributor
  • *
  • Posts: 148
  • Country: nl
Re: Program that can log from many multimeters.
« Reply #2493 on: June 11, 2022, 06:34:26 pm »
I bought an electronic load Atorch DL24M-H.

DL24M-H is not listed in the "ATorchPX100Devices.txt" device file.
Maybe you can ad the DL24M-H metadef?
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2494 on: June 11, 2022, 06:47:26 pm »
I bought an electronic load Atorch DL24M-H. After the first start, I connected to your program without any problems. Everything worked, only there were occasional drops in the recorded voltage. The program offered me an upgrade, so I implemented it. Everything works when controlled from the display. Even when installing the original application from Atorch, the load is connected and everything works. However, this is unsatisfactory for me. I want to use your program for recording and it can no longer connect.
I also have a 150W version of the Atorch DL24P, this one works very well for me with your program. I don't know what happened to the DL24M-H upgrade, but it can't connect to TestController (ver.2.6). Don't have any idea how to liven it up?

I have no idea why it has problems now.
TestController requires a serial port (or a couple of other types of connection) to work.
A definition includes a protocol/driver for the actual device, if a software/firmware update changes the communication this may not work anymore.

I try to help with different devices, but I do seldom buy them, i.e. the only way to make TestController work with then is when users make the definition and tell me about the problems. Then I can try to improve TestController to handle it.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2495 on: June 11, 2022, 06:48:01 pm »
DL24M-H is not listed in the "ATorchPX100Devices.txt" device file.
Maybe you can ad the DL24M-H metadef?

I do usually not change definition files for stuff I do not own, but instead look for people posting updated definitions in this thread
 

Offline vladobac

  • Contributor
  • Posts: 43
  • Country: sk
Re: Program that can log from many multimeters.
« Reply #2496 on: June 11, 2022, 06:53:16 pm »
I watched the file, but I dare not modify it.
 

Offline Pukker

  • Regular Contributor
  • *
  • Posts: 148
  • Country: nl
Re: Program that can log from many multimeters.
« Reply #2497 on: June 11, 2022, 07:00:06 pm »
I watched the file, but I dare not modify it.

If you add an section like this, and make name and handle according your device,
no serious problems can happen.

#metadef
; 180Watt discharge power
#idString ATorch,ATorch DL24P,
#name ATorch DL24P
#handle ATDL24P
#replaceText MinCurrent 0.2
#replaceText MinVoltage 0
#replaceText MaxCurrent 10
#replaceText MaxVoltage 200

If the values are wrong only wrong measurement can happen.
But when you can make connection, you know what to do.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2498 on: June 11, 2022, 07:06:16 pm »
3 When I do that, script is not listed  in the right click menu. In List and Manage Scripts it is marked with an IF.
even when load is ready and connected.?

Silly mistake, setVoltage must be with a lower case s
Note: I do not say you are silly, only that the mistake is silly (I do that kind of upper/lower case errors frequently)

4 Done (as far as possible for an programmer with low programming skills. (Trial and Error programmer)

It is not bad, but check these lines:

#popupNumber "Max. Temperature load(°C)" maxTempSave...
You do not use maxTempSave anywhere else in the script and the stuff after the = would work better on a separate line.

#if Percents then {
The script language do not know anything about {

I try to make the script language forgiven, i.e. it will not crash a script on a lot of minor mistakes, just ignore them.
 

Online HKJTopic starter

  • Super Contributor
  • ***
  • Posts: 2904
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #2499 on: June 11, 2022, 07:11:18 pm »
I watched the file, but I dare not modify it.

If you add an section like this, and make name and handle according your device,
no serious problems can happen.

#metadef
; 180Watt discharge power
#idString ATorch,ATorch DL24P,
#name ATorch DL24P
#handle ATDL24P
#replaceText MinCurrent 0.2
#replaceText MinVoltage 0
#replaceText MaxCurrent 10
#replaceText MaxVoltage 200

If the values are wrong only wrong measurement can happen.
But when you can make connection, you know what to do.

Don't worry that much about adding a #metadef, it will only affect stuff when you select the #name defined.
With the DL24M it may be necessary to define a couple devices depending on how many you run in parallel.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf