News:

  • June 28, 2026, 07:14:11 PM

Login with username, password and session length

Author Topic: Trend View Decimals Going Missing  (Read 16482 times)

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Trend View Decimals Going Missing
« on: September 25, 2017, 01:12:24 PM »
Trend View decimals going missing.

I just noticed this in v2.1, but when I went back and checked in v2.0, I found it doing the same thing.

If I set the scaling for the Left Axis Scaling manually for a pane with float elements, I lose the decimal and values to the right of it for any span greater than or equal to 500. This is also true for auto-scaling if the span goes to or above 500. Worse, the decimals are also missing in the left click snapshot of the values (and in the clipboard as well.) It's not rounding either, just lopping them off.

However! - If I manually set the span (Max - Min < 500) the decimals are back even in the snapshot, even when the element values are off the chart (overrange).

Surely I would have caught this earlier, but I don't remember it at all.  ???

This is really messing with my testing of a program at the moment.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Trend View Decimals Going Missing
« Reply #1 on: September 25, 2017, 03:03:38 PM »
Look at the Trend View Options page and tweak the Specify decimal places for floating point data setting.

Don't forget to check the Apply options to: New Views

Right click on a Trend View and select "Options for ALL Trend Views..."

See the attached screen shot.

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Trend View Decimals Going Missing
« Reply #2 on: September 25, 2017, 03:42:01 PM »
Well, two things. I did try that already and it did nothing for my problem. It also says it is for exported data and logging, so I wasn't sure. But it is still "broken" in all three versions even after a reboot. I haven't tried another computer yet.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Trend View Decimals Going Missing
« Reply #3 on: September 25, 2017, 03:51:55 PM »
You said it was broken also in 2.0.  So then 1.4.x is the last version that it worked as desired.  Will look into it...

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Trend View Decimals Going Missing
« Reply #4 on: September 25, 2017, 04:19:48 PM »
No, 1.4.x is the same as the others. I really can't believe I just missed this before as much time as I have spent trending things.

Any chance 2.1 install would affect the previous version trending? This is Win XP BTW. I will try Win 10 this evening. I wish I hadn't wholesale installed all my machines now... makes it harder to check.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Trend View Decimals Going Missing
« Reply #5 on: September 25, 2017, 04:33:13 PM »
Any chance 2.1 install would affect the previous version trending?

No.  Each executable is pretty much autonomous. Although when you upgrade, we do try to bring some settings forward (new 2.1 setting will be based on a 2.0 setting).

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Trend View Decimals Going Missing
« Reply #6 on: September 25, 2017, 05:32:42 PM »
One more place to check.

Look at your DmDesigner2_1.ini file (make sure you use the Launchpad Applications entry to open the right one)

[SETUP]
DecimalDigits=4

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Trend View Decimals Going Missing
« Reply #7 on: September 25, 2017, 06:03:42 PM »
Yes, I had already double checked that too.

And this Windows 10 machine does the same thing.

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Trend View Decimals Going Missing
« Reply #8 on: September 25, 2017, 08:11:14 PM »
Another computer without V2.1 ever installed does the same thing in V2.0.3.

The magic is at the axis scaling reaching a span of 500. Min -489.9 and Max 10 gives 2 decimals on scale and however many are in the View Option Trend in the snapshot. But make it -489.9 and 10.1 (or whatever you want for 500 or more for span) and it drops all hints of decimals.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Trend View Decimals Going Missing
« Reply #9 on: September 26, 2017, 08:14:37 AM »
I can duplicate this in 2.0.3 and 2.1.  ???

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Trend View Decimals Going Missing
« Reply #10 on: September 26, 2017, 10:45:07 AM »
I can duplicate this in 2.0.3 and 2.1.  ???

Figured it out and fixed.  The "Snapshot" dialog was not properly formatting the values correctly.  It will be in the next release.  However, it appears to work correctly in the Trend data Export CSV, showing to 2 decimal places by default in 2.0.  And when I change the option to 4 decimal places, the Export CSV file shows 4 decimal places.  So the issue is just with the Snapshot dialog.  Note that the tick mark labels on the Y axis is behaving correctly since a pixel resolution can't tell the difference between 500.1 and 500.0, so it just shows 500 to save the screen real estate.

Work-around (as you figured out) is to keep the Y axis range to something less than 500.  You can set the Y axis scale manually on the Pane Properties in the Trend View's configuration option dialog.  When it is less than 500, the Snapshot dialog will show to 2 decimal places (regardless of the Options setting, however).  The Y axis range SHOULD have nothing to do with it, but for now, that's the work-around   :-[.

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Trend View Decimals Going Missing
« Reply #11 on: September 26, 2017, 11:25:50 AM »
Figured it out and fixed.

Cool.

Quote
When it is less than 500, the Snapshot dialog will show to 2 decimal places (regardless of the Options setting, however).

If it is less than 500 I can get up to 10 decimal places if that's what I have in the View settings. I did notice if it was unchecked there I would see only 2 decimals even though the greyed out value was 3. Checking the box and setting to 3 gives 3 decimals max, 10 gives 10.