Author Topic: UltraDMM Software Project  (Read 132025 times)

0 Members and 2 Guests are viewing this topic.

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11622
  • Country: my
  • reassessing directives...
Re: UltraDMM Software Project
« Reply #100 on: September 04, 2012, 05:24:33 pm »
its very hard to get to the other side of the board, its stuck on its probe lead, maybe next time i have to unsolder those. iirc no other main mcu around, if its easier, i can just simply provide the photo, i'll surrender for now :(
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: UltraDMM Software Project
« Reply #101 on: September 04, 2012, 05:40:59 pm »
Yes, give us photos.
 

Offline BThunderWTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: ca
Re: UltraDMM Software Project
« Reply #102 on: September 04, 2012, 11:52:00 pm »
New Update: http://www.ultradmm.com/release/wip/UltraDMMPatch.7z

Added ES51978 (ISO-Tech IDM 98II)
Fixed ranging for ES51986
Fixes for FS9922DMM4
Hopefully squashed the no-exit bug, could never reproduce it.

Cheers,

Tom
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: UltraDMM Software Project
« Reply #103 on: September 05, 2012, 12:19:32 am »
New Update: http://www.ultradmm.com/release/wip/UltraDMMPatch.7z


Checked on new version with APPA 71

Out by 10 display bug = confirmed FIXED

Unhanded exception with no meter setup = confirmed FIXED.

Application close bug = Still happening
(However i noticed that if i click "Yes" you get the saved successfully popup then it quits fine when you click ok.
It seems the close bug only occurs when you click "no" to saving).

Bugs still to be fixed

- Continuity/diode range
2.4 kV displayed when open circuit (meter is showing OL)
0-6.000V jumping around when shorted (meter is showing 0.00)


NOTE:
Is there supposed to be a minimized client window at the bottom of the main form called "Alerts"
It can be expanded to a white window but cannot be closed.
« Last Edit: September 05, 2012, 12:21:40 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline BThunderWTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: ca
Re: UltraDMM Software Project
« Reply #104 on: September 05, 2012, 12:21:31 am »
Can you detail the exact steps to reproduce the fail-to-exit?

Tom

New Update: http://www.ultradmm.com/release/wip/UltraDMMPatch.7z


Checked on new version with APPA 71

Out by 10 display bug = confirmed FIXED

Close bug = Still happening
(However i noticed that if i click "Yes" you get the saved successfully popup then it quits fine when you click ok.
It seems the close bug only occurs when you click "no" to saving).

Unhanded exception bug with no meter setup = confirmed FIXED.


Bugs still to be fixed

- Continuity/diode range
2.4 kV displayed when open circuit (meter is showing OL)
0-6.000V jumping around when shorted (meter is showing 0.00)
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: UltraDMM Software Project
« Reply #105 on: September 05, 2012, 12:30:05 am »
Sure,

(Assuming you have one APPA 71 meter setup in the application before launching)

Step 1
Launch application

Step 2
Click Meter
Click Connect

Step 3
Click Meters
Click Add Gauges
Click Digital meter

Step 4
Select "Meter 1" in the meter1 drop down box
(everything else is grayed out except)
- combined meter values (unticked)
- Value (set to value)
Click Accept
A value will be displayed on the digital meter, for this example it is 0.0000V DC (matches meter)

Step 5
Click the close X on the digital meter
Click "Yes" to the confimation

Step 6
Click the UltraDMM windows close X
Click "no" to the save prompt

Bug reproduced
At this point the save confirmation dialog disappears but the app does not close.
You can continue to use the application and everything works as normal. (except it wont close unless you click "Yes" to saving)

Side Note:]/b]
I just tried to do the same as above except also show the "raw output" log so i could copy the data out for you however when i try this it always closes fine.
Something about showing the raw log seems to fix the problem

Further investigation shows the bug only occurs when the only window in UltraDMM is that minimized "alert" window bottom left of the app.
« Last Edit: September 05, 2012, 12:46:58 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline David_AVD

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: UltraDMM Software Project
« Reply #106 on: September 05, 2012, 12:46:33 am »
Side Note:
I just tried to do the same as above except also show the "raw output" log so i could copy the data out for you however when i try this it always closes fine.
Something about showing the raw log seems to fix the problem

Could it be some silent exception (in closing the raw log) is causing the exit procedure to not complete?
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: UltraDMM Software Project
« Reply #107 on: September 05, 2012, 12:50:55 am »
Could it be some silent exception (in closing the raw log) is causing the exit procedure to not complete?

Its not just the raw output window, showing other windows seem to fix the problem too, like the application log and meter log.

I think it has something to do with that minimized "alert" window bottom left.
I noticed that just after clicking "no" to saving (when the app should close) that "alert" window gets focus back.
With any other windows showing, like the meter log, it gets focus instead and the app closes fine.

I suspect its to do with the alert window because if you try and maximize the alert window and click its close X it doesn't close but instead minimizes back to the bottom left. (its close event is blocked)

So maybe if the alert window gets focus when the app tries to exits the application close event is being blocked by this window (since we know it blocks its own close events).

The reason clicking "yes" works to quit maybe directly because of the 'save confirmation' popup which you don't get for "no". It would add an extra window in the mix which may mean the alert window doesn't handle the app close event.
« Last Edit: September 05, 2012, 01:02:39 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline BThunderWTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: ca
Re: UltraDMM Software Project
« Reply #108 on: September 05, 2012, 01:02:16 am »
This is gonna drive me nuts. I can't reproduce this at all. Tried it on 4 machines already. I'll add some more code to perhaps fix the issue.

Tom
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: UltraDMM Software Project
« Reply #109 on: September 05, 2012, 01:03:34 am »
I can make a video of it happening, if that would help?
« Last Edit: September 05, 2012, 01:07:53 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline BThunderWTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: ca
Re: UltraDMM Software Project
« Reply #110 on: September 05, 2012, 01:10:06 am »
No worries. I think I might have found the problem. Will include in the next update.

Can you send me a raw dump of data for:

Continuity/diode range
2.4 kV displayed when open circuit (meter is showing OL)
0-6.000V jumping around when shorted (meter is showing 0.00)

The alerts window is where Trigger Alerts are being displayed. It is not meant to be closed. But will close when application is exiting.

Tom


Does anyone else get this close bug? or is it just me?

I can make a video of it happening, if that would help?
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: UltraDMM Software Project
« Reply #111 on: September 05, 2012, 01:26:58 am »
Can you send me a raw dump of data for:

Continuity/diode range
2.4 kV displayed when open circuit (meter is showing OL)
0-6.000V jumping around when shorted (meter is showing 0.00)

Note: On my meter the diode/continuity serial update rate is much faster, it seems like 10hz instead of 1hz
however ultraDMM doesn't seem to mind this and just displays data at the fast rate.


When the meter is showing 0.00V  (The ultraDMM whole number jumps around by a few volts eg  0.0000 and 3.0000, decimal data (0000) doesn't change)
30-30-30-30-30-31-3A-30-30-0A
30-30-30-30-31-31-3A-30-30-0A
30-30-30-30-32-31-3A-30-30-0A


When the meter is showing OL  (UltraDMM 2.4kV)
30-32-34-30-34-31-39-30-30-0A
30-32-34-30-35-31-39-30-30-0A
30-32-34-30-33-31-39-30-30-0A
30-32-34-30-32-31-39-30-30-0A

When the meter has a diode across it with ~0.51 showing (UltraDMM shows ~510V)
30-30-35-30-38-31-38-30-30-0A
30-30-35-30-37-31-38-30-30-0A

Seems to be out by 1000 on diode range as 2.4kV/1000 = 2.4V which would make sense for a diode range.
I guess 2.4V should be shown as OL
« Last Edit: September 05, 2012, 01:39:07 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline BThunderWTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: ca
Re: UltraDMM Software Project
« Reply #112 on: September 05, 2012, 03:20:33 am »
New update: http://www.ultradmm.com/release/wip/UltraDMMPatch.7z

Changed Logic. OL/UL no longer cause updates. Gauges will show Overload/Underload. Graph will stop updating until the condition is cleared.
Diode ranging fixed.
*Sigh* - No-Exit Issue hopefully fixed.

Tom

Any other meter requests?
 

Offline biggles

  • Newbie
  • Posts: 4
Re: UltraDMM Software Project
« Reply #113 on: September 05, 2012, 03:30:58 am »
I tried UltraDMM and it works (sort of) ... I cannot connect to the UT61E meter (via Uni-T UT-D04 USB cable), and I get the same shutdown hangs.

So, plugged in the USB cable (with meter turned on and measuring values. USB Input Device drivers installed by Win 7 Pro SP1 64-Bit.
 
Installed the Uni-T UT61E v 4.01 software that came with the meter and it runs ok. Press 'USB Connection' button and results are shown that agree with the meter. Press 'USB Disconnect' button and results display stops but are not cleared from screen. Press 'Quit' button and get popup 'Are you sure you want to quit this application?'. Press 'Yes' button and application shuts down.

Installed UltraDMM from UltraDMM.7z and applied latest posted UltraDMMPatch.7z.

Started UltraDMM. Application opens...

By the way... in windows registry HKEY_CURRENT_USER a key is created 'UltimateDMM\Program\LastPath' that holds the name of the XML save file when you Save on Exit. (I thought this program was UltraDMM?)

Now, how do I add the USB meter? I can't seem to be able to actually connect to the meter and get any output data... (It's not listed under a COM port but Device manager shows it as a HID USB Input Device.

Meters .. Connect turns round circle with red dot in it to a round circle with a red square in it. Then Meters .. Edit meters .. Add

This does list a number of meters out and specifies COM Ports but no USB option... Pressing 'Test' button returns a 'No Data' popup after about six seconds. Yes it's plugged in and sending data, verified with Uni-T UT61E software.

Sorry, but I must have missed some crucial step but I cannot find mention of it in this thread.

Any chance you could let me see the light?

Thanks
 

Offline BThunderWTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: ca
Re: UltraDMM Software Project
« Reply #114 on: September 05, 2012, 03:35:39 am »
Unfortunately. The USB meters that currently present themselves to the computer as a HID device are not currently supported. I need to get my hands on one so I can write a proper interface for it.

I have a few meters coming in the mail that I want to add but I can't justify buying every meter just so I can get it working :) I contacted Uni-T for some test units but got no response so far.

Originally the program was supposed to be called UltimateDMM, but I changed my mind, after I already registered the domain btw. http://www.ultimatedmm.com points to http://www.ultradmm.com

Tom
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5018
  • Country: ro
  • .
Re: UltraDMM Software Project
« Reply #115 on: September 05, 2012, 03:41:29 am »
Yeah, sorry to report the refusal to quit is back with this version in my case.

As for suggestions, is there a way to detect that the meter is discharging a capacitor? Right now it seems it's either detected as overload or there's no data sent by the chip.... I'm not sure if some bits are sent through serial...

To get the meter to discharge, just get a capacitor (i used a 3300uF/6.3v) and measure resistance for a few seconds. Then change to capacitance and the meter should say on it DiSC until capacitor goes below a threshold.
 

Offline BThunderWTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: ca
Re: UltraDMM Software Project
« Reply #116 on: September 05, 2012, 03:45:02 am »
Oh for crying-out-loud. What the heck is causing that.....I've tried it on 4 different machines and still can't reproduce it.
 

Offline biggles

  • Newbie
  • Posts: 4
Re: UltraDMM Software Project
« Reply #117 on: September 05, 2012, 03:46:41 am »
Oh... Sad for me as your program looked really really good...

Will just have to suck it with the Uni-T supplied software for the UT61E connected via Uni-T UT-D04 USB cable meanwhile.

I understand about the name change.. these things happen, just thought you might like to 'adjust' things when you're next in the neighbourhood...

But still thanks..

 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5018
  • Country: ro
  • .
Re: UltraDMM Software Project
« Reply #118 on: September 05, 2012, 03:49:31 am »
So far, it looks like it only refuses to close after opening the graph or the digital gauge

It closes fine with raw output open or closed, with just connecting to meter or connecting and disconnecting. I'd say test and make sure those objects are killed when closing the graph and gauge windows.
 
 

Offline biggles

  • Newbie
  • Posts: 4
Re: UltraDMM Software Project
« Reply #119 on: September 05, 2012, 04:00:45 am »
This 'Exit' problem... Windows permissions perhaps?

I seem to be getting it, even without actually getting any data from the meter (USB), when exiting with no gauges showing and 'Alerts' open or minimised. But 'Run as Administrator' did not exhibit the same problem. Now I have UltraDMM installed in 'Program Files (x86)\UltraDMM' just for wickedness... 
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: UltraDMM Software Project
« Reply #120 on: September 05, 2012, 04:08:53 am »
Oh... Sad for me as your program looked really really good...

Will just have to suck it with the Uni-T supplied software for the UT61E connected via Uni-T UT-D04 USB cable meanwhile.

I understand about the name change.. these things happen, just thought you might like to 'adjust' things when you're next in the neighbourhood...

But still thanks..

You got the USB cable by default? Lucky you!
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9930
  • Country: nz
Re: UltraDMM Software Project
« Reply #121 on: September 05, 2012, 04:54:47 am »
So far, it looks like it only refuses to close after opening the graph or the digital gauge

na, not just digital, analog does it too.  (at least 1 version ago, ive not tried the latest yet)
Just for testing, add a confirmation box for the "no" button when saving (like the yes button has)
I would be interested to see if this bypasses the bug.



Oh for crying-out-loud. What the heck is causing that.....I've tried it on 4 different machines and still can't reproduce it.

When you test it on another PC. Install the msi from page 1 and then copy the lasted patch files into the folder.
(As this is what we're doing)
If you copy your development folder over you may be getting files newer/extra files to what we have.
« Last Edit: September 05, 2012, 05:02:37 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline biggles

  • Newbie
  • Posts: 4
Re: UltraDMM Software Project
« Reply #122 on: September 05, 2012, 05:21:06 am »
T4P, no unfortunately not that lucky, I ordered the USB cable as a separate item when I purchased the UT61E knowing it came with a RS232 cable... which my lappy has no interest in. Now I see I am still out in the cold, as they say, at least as far as UltraDMM., and, yes, the Uni-T software does leave something.., well a lot really, to be desired. I will wait in eager antici......pation of UltraDMM's USB support.
 

Offline BThunderWTopic starter

  • Regular Contributor
  • *
  • Posts: 118
  • Country: ca
Re: UltraDMM Software Project
« Reply #123 on: September 05, 2012, 11:35:38 am »
I'm going to set up a clean VM just to test this. It is driving me nuts.



When you test it on another PC. Install the msi from page 1 and then copy the lasted patch files into the folder.
(As this is what we're doing)
If you copy your development folder over you may be getting files newer/extra files to what we have.
 

jucole

  • Guest
Re: UltraDMM Software Project
« Reply #124 on: September 05, 2012, 11:43:30 am »
I'm going to set up a clean VM just to test this. It is driving me nuts.

Sounds like a good plan!; have you thought adding a bug reporting system onto your site; sometimes it helps keep track of feature requests and bugs etc.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf