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
Can't you just use an init script in your project to set your servo speeds? You can also just use the script in the connection control. When the ezb connects all servo speeds will be set as required... So in essence they are saved...
Hi Richard,
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
This tutorial should help you... Reading and writing to files 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...
Richard is correct, you can save the last value to a text file to be reloaded. Otherwise, the value is hardcoded by script. See the servo Speed control manual help here, which has additional information: https://synthiam.com/Tutorials/Help.aspx?id=168
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.
Thanks Again,
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
You bet!
This loads the saved data, as an example...
And saving the data, such as...
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.