Page 1 of 1

Urgent issue in Builder option "Auto-save user configuration on exit"

Posted: Sun May 27, 2018 11:19 pm
by aqt
I am encountering the following issue with the MegunoLink Builder:
when exiting the program created by builder, the values of all fields in the program are saved. So, when I reopen the program it reverts to the last used values. However, what I want/need is that each time the program is restarted it reverts to the default values that I have set when creating the program in MegunoLink. This is to ensure that values loaded by the program are consistent with default value of variables in my Arduino code.
When creating the program with builder, there is a checkbox called "auto-save user configuration on exit". However, the above behavior occurs no matter if I check or uncheck this option.
Is this a bug?

Re: Urgent issue in Builder option "Auto-save user configuration on exit"

Posted: Tue May 29, 2018 10:34 pm
by philr
Hi aqt, that does sound like a bug which we will investigate. That autosave option basically means it will save changes to the interface without prompting. By unticking it there should be a dialog that asks if you want to save when you close.

What you are suggesting is something different. Defaulting to the values set in designer. That is currently not possible and we will have to add it as a feature in a future update.

I suggest you use the save configuration sets option which can be found down this page
https://www.megunolink.com/documentatio ... ace-panel/

It lets you save and restore configuration settings.



Another option is to get your arduino to restore the settings on the interface. You could have a button that you click which triggers the arduino to transfer its current settings to the interface. Or use our "SerialConnection" interface panel object which can send a message to your arduino automatically when a connection is established. So your interface could automatically request the settings from the device when the connection is established.

Cheers
Phil