Failure to save variables between boots

Discuss issues and ideas you have to configuring displays with PowerVision
Hamsteh
Posts: 42
Joined: Wed Sep 21, 2011 3:31 am

Failure to save variables between boots

Post by Hamsteh » Tue Oct 18, 2011 11:18 pm

In our current config we are featuring an odometer and tripmeter utilising wheel-based-vehicle-speed.

The calculations are working correctly and tripmeter resets properly.

However, we would like odometer and tripmeter variables to be saved to NVRam so as to retain information between boots.

We first set "Save Values" every 1 second for our user defined variables in the database but were surprised to find that only the tripmeter value appears to be saved when hardware is restarted.

We have since checked multiple times for any differences in settings as well as deleting and reading the problematic odometer distance variable to no avail.

We have also tried a state machine with recurring 1000ms timer that calls NVRmgr save for the odometer variable in question but this too does not seem to work.

At this point we are unable to come up with any reasons why the odometer variable should not be saved just like the tripmeter variable is.

Variables
* UserDefinedVariable.Distance.Odometer
---- Unit km
---- Save Values [tick] every 1 second

* UserDefinedVariable.Distance.Tripmeter
---- Unit km
---- Save Values [tick] every 1 second

Thankyou for your time.
www.ajbarry.com.au Bespoke Control Systems
BEng (Robotics and Mechatronics) & BSci (Computer Software Engineering)
Melbourne, Australia
bmcrae
Enovation Controls Development
Enovation Controls Development
Posts: 75
Joined: Thu Sep 09, 2010 11:20 am

Re: Failure to save variables between boots

Post by bmcrae » Wed Oct 19, 2011 11:14 am

Hamsteh,

I would like to look at a copy of your configuration if possible. I will review it to see if I see anything. Also, if this is a bug, I will enter an issue in our issue tracking system.

Brian McRae
Software Test Leader
FW Murphy
Hamsteh
Posts: 42
Joined: Wed Sep 21, 2011 3:31 am

Re: Failure to save variables between boots

Post by Hamsteh » Wed Oct 19, 2011 7:02 pm

Hi Brian,

Attached is a stripped-down version of our config.

Display has a single gauge displaying vehicle-speed and two text gauges displaying our tripmeter and odometer values.

Top left button is mapped to resetting tripmeter.

Data simulation has vehicle-speed sitting at a constant 150km/h.

You should notice that on shutdown and restart that only tripmeter values are stored.

Thankyou for your time,
Alex
Attachments
JAAB - OdometerVariableSave.db3
(4.21 MiB) Downloaded 16 times
www.ajbarry.com.au Bespoke Control Systems
BEng (Robotics and Mechatronics) & BSci (Computer Software Engineering)
Melbourne, Australia
Hamsteh
Posts: 42
Joined: Wed Sep 21, 2011 3:31 am

Re: Failure to save variables between boots

Post by Hamsteh » Sat Oct 22, 2011 10:45 pm

Was wondering if there is any update on this?

We have been unable to rectify the fault at this point.
www.ajbarry.com.au Bespoke Control Systems
BEng (Robotics and Mechatronics) & BSci (Computer Software Engineering)
Melbourne, Australia
Hamsteh
Posts: 42
Joined: Wed Sep 21, 2011 3:31 am

Re: Failure to save variables between boots

Post by Hamsteh » Mon Oct 24, 2011 12:02 am

Please note that problem has been resolved.

There was an error in odometer script.
www.ajbarry.com.au Bespoke Control Systems
BEng (Robotics and Mechatronics) & BSci (Computer Software Engineering)
Melbourne, Australia