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

_Wim_, urs and 2 Guests are viewing this topic.

Offline jord4231

  • Contributor
  • Posts: 41
  • Country: au
Re: Program that can log from many multimeters.
« Reply #75 on: April 06, 2020, 08:53:28 pm »
I'm not sure what I've done wrong. I've written a config file for the Rigol dm3058e If I probe the TX from my pc com port when I first start the software I get a burst of serial data that is identical to sending a *IDN command from my ultra sigma but thats it, pressing reconnect does not or any other buttons I still have no serial data coming out again (I've got the scope set to single trigger on the tx to view it)

My meter goes in to remote mode when it sees that first burst of data but the program does not detect the meter or connect to it. I have my com port set correctly and my Baudrate. I've also disabled all other comports and bluetooth usb devices to be sure

The photo is of the one and only burst of serial data I get

I have also tried maukka s HP 34401A config with my meter set to emulate 34401a and found no difference.
I am able to communicate / read / change modes through ultra sigma so I know its talking.

It also seems to make no difference if I set my meter to "PRINT" except it has a constant data stream coming out of the meter

I'll do a bit more investigation tonight I'm not sure my meter is responding to the command the software first sends it, I'll try a different pc too
« Last Edit: April 06, 2020, 09:14:05 pm by jord4231 »
 

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 1471
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #76 on: April 07, 2020, 04:49:13 am »
A debug log from TestController would be more useful, then I would know what the program believe it do.

You must write "#debug *idn serial" on the command line in the program and then do a reconnect.
 
The following users thanked this post: jord4231

Offline Messtechniker

  • Frequent Contributor
  • **
  • Posts: 495
  • Country: de
  • Old analog audio hand - No voodoo.
Re: Program that can log from many multimeters.
« Reply #77 on: April 07, 2020, 05:39:08 am »
Running 027. Pulled the Bluetooth dongle --> Corresponding COM ports disappeared.
--> Equipment list now appears immediately upon startup (with scan serial ports enabled). :-+
 
Agilent 34465A, Siglent SDG 2042X, Hameg HMO1022, R&S HMC 8043, Voltcraft VC 940 M-Audio Audiophile 192, R&S Psophometer UPGR, 3 Transistor Testers
 

Offline jord4231

  • Contributor
  • Posts: 41
  • Country: au
Re: Program that can log from many multimeters.
« Reply #78 on: April 07, 2020, 08:19:16 am »
ok I have typed #debug *idn serial then pressed reconnect still no love. I've also tried a different usb to serial adaptor (although both work in other software with this meter)

I think what is happening is my meter is not quite happy responding to *IDN ....

In the rigol software I need to have \r\n selected in the serial settings for it to respond maybe this has something to do with it? If the meter receives a command it doesn't know it just ignores it
« Last Edit: April 07, 2020, 08:46:52 am by jord4231 »
 

Offline Messtechniker

  • Frequent Contributor
  • **
  • Posts: 495
  • Country: de
  • Old analog audio hand - No voodoo.
Re: Program that can log from many multimeters.
« Reply #79 on: April 07, 2020, 08:46:25 am »
It would help to avoid loss of data if the
program would ask "Save data" upon exiting. :horse:
Agilent 34465A, Siglent SDG 2042X, Hameg HMO1022, R&S HMC 8043, Voltcraft VC 940 M-Audio Audiophile 192, R&S Psophometer UPGR, 3 Transistor Testers
 

Online maginnovision

  • Super Contributor
  • ***
  • Posts: 1915
  • Country: us
Re: Program that can log from many multimeters.
« Reply #80 on: April 07, 2020, 08:55:59 am »
I have my programs open and close the file for every data point. Let the OS deal with the consequences of that.
 

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 1471
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #81 on: April 07, 2020, 09:02:03 am »
It would help to avoid loss of data if the
program would ask "Save data" upon exiting. :horse:

It would, but what I plan on it a option to directly log data to disk while collecting them. This would mean that even a crash would preserve data.
 

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 1471
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #82 on: April 07, 2020, 09:08:12 am »
V0.24 is up, changes are:
  • The 3 device definition posted above
  • Modified startup code to avoid missing device data in the comboBox
  • debug option on command line that will turn all debug options on, this includes a debug bat startup file
  • Command line options to change the directories used, see in bat file for a description
 
The following users thanked this post: jord4231

Offline jord4231

  • Contributor
  • Posts: 41
  • Country: au
Re: Program that can log from many multimeters.
« Reply #83 on: April 07, 2020, 09:09:15 am »
Ok this is interesting I just pulled my usb to serial left the program running when I plugged it back in this happened
#debug *idn serial
;; COM5: Set params: 9600
;; COM5: Tx: <*IDN?.> 2A 49 44 4E 3F 0A
;; COM5: Rx: timeout
;; COM5: Tx: <*IDN?.> 2A 49 44 4E 3F 0A
;; COM5: Rx: timeout
;; COM5: Set params: 9600
;; COM5: Tx: <*IDN?.> 2A 49 44 4E 3F 0A
;; COM5: Rx: timeout
;; COM5: Tx: <*IDN?.> 2A 49 44 4E 3F 0A
;; COM5: Rx: timeout

Could it be sending *IDN? then "."  that might be why the meter is not responding to it
« Last Edit: April 07, 2020, 09:12:55 am by jord4231 »
 

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 1471
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #84 on: April 07, 2020, 09:21:10 am »
In the rigol software I need to have \r\n selected in the serial settings for it to respond maybe this has something to do with it? If the meter receives a command it doesn't know it just ignores it

Can you check if it need a \r, a \n or \r\n?

Could it be sending *IDN? then "."  that might be why the meter is not responding to it

Look at the hex code, any control char is printed as .
 
The following users thanked this post: jord4231

Offline jord4231

  • Contributor
  • Posts: 41
  • Country: au
Re: Program that can log from many multimeters.
« Reply #85 on: April 07, 2020, 09:25:56 am »
 :-DD I'm an idiot yes your right I did not even think that was hex next too it bit of a noob sorry
Yeh it requires \r\n for the "end mark" these settings work with ultra sigma
« Last Edit: April 07, 2020, 09:28:55 am by jord4231 »
 

Offline jord4231

  • Contributor
  • Posts: 41
  • Country: au
Re: Program that can log from many multimeters.
« Reply #86 on: April 07, 2020, 09:34:24 am »
Update If I turn print on on my meter it shows the value in the RX so the info is coming in. Its just not replying to the *IDN? for some weird reason
;; Start thread for: COM5
;; COM5: Set params: 9600
;; COM5: Tx: <*IDN?.> 2A 49 44 4E 3F 0A
;; COM5: Rx: <-2.93634002E-05> 2D 32 2E 39 33 36 33 34 30 30 32 45 2D 30 35
;; COM5: Tx: <*IDN?.> 2A 49 44 4E 3F 0A
;; COM5: Rx: <-2.93634002E-05> 2D 32 2E 39 33 36 33 34 30 30 32 45 2D 30 35
;; Stopping thread for: COM5
;; Start thread for: COM5 - RIGOL DM3058E
;; Stopping thread for: COM5 - RIGOL DM3058E
 

Online maginnovision

  • Super Contributor
  • ***
  • Posts: 1915
  • Country: us
Re: Program that can log from many multimeters.
« Reply #87 on: April 07, 2020, 09:38:12 am »
What kind of adapter are you using? Sometimes the USB-rs232 adapters buffer and so you may get some readings before it gets to the *IDN? response. I had this issues with my own programs requiring to read until the buffer was empty.
 

Offline jord4231

  • Contributor
  • Posts: 41
  • Country: au
Re: Program that can log from many multimeters.
« Reply #88 on: April 07, 2020, 09:43:07 am »
I have a cheap usb to rs232 but I've also tried a trimble one both have the same response. It seems like I'm very close now. As showen it can get a reply as in a reading if I have print on however its just not seeing or sending the responce to the IDN? very odd as it does it in the rigol software
 

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 1471
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #89 on: April 07, 2020, 09:52:45 am »
I added a #eol option to the device configuration.

This is V0.25, but only the .jar file. The code is NOT TESTED:
http://lygte-info.dk/pic/Projects/TestController/TestController.jar

A:
#eol \r\n
Just below the #port parameter will hopefully work.
 
The following users thanked this post: jord4231

Offline jord4231

  • Contributor
  • Posts: 41
  • Country: au
Re: Program that can log from many multimeters.
« Reply #90 on: April 07, 2020, 10:00:51 am »
Awesome, Thank you so much we are connected!!!
I'll Finnish the config file and share it with you.
 
;; Start thread for: COM5 - RIGOL DM3058E
;; COM5: Set params: 9600
;; COM5: Tx: <*IDN?..> 2A 49 44 4E 3F 0D 0A
;; COM5: Rx: <Rigol Technologies,DM3058E,DM3R211300363,01.01.00.02.03.01> 52 69 67 6F 6C 20 54 65 63 68 6E 6F 6C 6F 67 69 65 73 2C 44 4D 33 30 35 38 45 2C 44 4D 33 52 32 31 31 33 30 30 33 36 33 2C 30 31 2E 30 31 2E 30 30 2E 30 32 2E 30 33 2E 30 31
;; Found RIGOL DM3058E on USB2.0-Ser! (COM5) sn: DM3R211300363

Thanks again for your help with this :)
 

Offline IanB

  • Super Contributor
  • ***
  • Posts: 9764
  • Country: us
Re: Program that can log from many multimeters.
« Reply #91 on: April 08, 2020, 08:00:30 pm »
I do have example code running under Windows if you would like to see it. Just let me know and I can send it along.

It may give me some ideas, so yes please.

Hi, did you receive my code sample and were you able to see it working?
I'm not an EE--what am I doing here?
 

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 1471
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #92 on: April 08, 2020, 08:48:09 pm »
Hi, did you receive my code sample and were you able to see it working?

I did not see the email, but have found it now. I do not have time to play with it the next few days.
 

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 1471
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #93 on: April 08, 2020, 08:54:26 pm »
The command used is different than the documentation:

Documentations says: 0x00 0x00 0x82 0x66
Your code uses: 0x00 0x00 0x86 0x66

That may also be a reason my tests did not work
 

Offline klausES

  • Regular Contributor
  • *
  • Posts: 203
  • Country: de
  • restore Sony ES/Esprit era
Re: Program that can log from many multimeters.
« Reply #94 on: April 08, 2020, 10:15:58 pm »
Adding the Siglent SDM3055 to the device list would be very nice.  :)
regards klaus. "Art is when you can't do it ... because if you can, it's not art"
 

Offline IanB

  • Super Contributor
  • ***
  • Posts: 9764
  • Country: us
Re: Program that can log from many multimeters.
« Reply #95 on: April 08, 2020, 10:50:28 pm »
The command used is different than the documentation:

Documentations says: 0x00 0x00 0x82 0x66
Your code uses: 0x00 0x00 0x86 0x66

That may also be a reason my tests did not work

Hmm. That either means I had a different version of the documentation, or I screwed up, or that the command doesn't actually matter as long as the meter receives something...  :-\

OK, I found the document. This is what I was working from:

[attachimg=1]
« Last Edit: April 08, 2020, 11:49:17 pm by IanB »
I'm not an EE--what am I doing here?
 

Offline MikeLud

  • Regular Contributor
  • *
  • Posts: 210
  • Country: us
Re: Program that can log from many multimeters.
« Reply #96 on: April 08, 2020, 11:47:28 pm »
klausES,

Below is a file for Siglent SDM3055 that should work. I do not have the SDM3055 to test it so please try it and let us know if it works.
[attach=1]
« Last Edit: April 08, 2020, 11:57:59 pm by MikeLud »
 
The following users thanked this post: tautech, klausES

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 1471
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #97 on: April 09, 2020, 05:30:52 am »

Hmm. That either means I had a different version of the documentation, or I screwed up, or that the command doesn't actually matter as long as the meter receives something...  :-\

I was not aware the code changes between the meters. I was working with the 525 and looking in that document, now I will have to dig out the 869 before I test more (They use the same USB interface).
 

Offline klausES

  • Regular Contributor
  • *
  • Posts: 203
  • Country: de
  • restore Sony ES/Esprit era
Re: Program that can log from many multimeters.
« Reply #98 on: April 09, 2020, 10:22:33 pm »
... I do not have the SDM3055 to test it so please try it and let us know if it works...

It works.

Thanks a lot.  :-+
regards klaus. "Art is when you can't do it ... because if you can, it's not art"
 
The following users thanked this post: tautech, MikeLud

Offline HKJ

  • Super Contributor
  • ***
  • Posts: 1471
  • Country: dk
    • Tests
Re: Program that can log from many multimeters.
« Reply #99 on: April 10, 2020, 05:08:02 am »
I will include the above SDM3055 file with the next release.
 
The following users thanked this post: tautech, MikeLud, klausES


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf