I try to load eeprom settings to JRK G2 using jrk2cmd --settings FILE (FILE = settings.txt) to change feedback mode. I can change the feedback mode from Configuration Utility-tool but not using command line commands. The settings file is basically the same that I use with Utility tool. Any hints how to apply the settings from command line since I use separate script to run sequences for linear actuator with feedback (LACT2P-12V-05). I need to change the feedback mode on the run and for conveniency I use command line only (WIN 11). If there is a way to change the feedback mode with a one-liner i.e. jrk2cmd ??? I would appreciate this info also.
Uploading a settings file using the --settings FILE option should work; are you sure the feedback mode in the settings file you are targeting with your command is set how you want?
Also, are you sure the command is running without an error? For example, if you are not running the command prompt from the location of the settings file, you will need to specify the whole file path. Additionally, you should double check that no other programs (including the Jrk G2 Configuration Utility) are connected to the Jrk controller’s USB port when you run your code. Both of those situations should result in an error response.
By the way, we generally do not recommend changing the EEPROM settings programmatically, since it can be easy to accidentally wear out the Jrk G2 controller’s EEPROM, which is rated for only 100,000 erase/write cycles. If it is practical for your application, you might consider using the Force duty cycle and Force duty cycle target commands instead of changing the feedback mode to none.
The --settings FILE does indeed work. The issue was…as usual…me. There was two additional lines of text in settings file, meaning “Pololu jrk settings file” and
“https ://www.pololu.com/docs/0J73”, that I copied from the vendor’s site. There was no error text that would have warned me about those but after cleaning up the text inside the file it worked like a charm.
The information about the wear out was very useful. I will not implement EEPROM programming to my script with this knowledge provided to me.