
PRO
Andy Roid
USA
Asked
— Edited
Is there a way to save the servo Speed settings. I can't seem to find any info on it. I loose the settings when I re-load a project.
Ron
So in essence they are saved...
Code:
Thanks for the suggestion. I do have need to make adjustments so I wanted to keep the sliders. I wanted to have the last settings saved. Similar issue to the camera grid lines.
Ron
Look to use FileWrite and fileRead commands... see below from the script editor. You can save your settings in a plain text file when you run your init script it can read the saved settings (servo speeds or positions or whatever) from the previously saved text file... You will need to create a "shutdown" script in order to save your new settings to the text file...
Code:
Specifically, why the value doesn't save. Because the servo position must be initialized before the servo speed. Also, servo positions are not maintained either by their respective controls. This must all be done with an initialization script in the connection control.
By using this script I will not only be able to save last positions, and speeds of the servos but also variables, like counters and their stored data. This will help in more than what I posted.
Ron
This loads the saved data, as an example...
Code:
And saving the data, such as...
Code:
This saves and loads each setting as a different line. The order of the lines is important. You can always load the file into notepad after to see what it saved.