Comment on page
Uploading programs to several TRIK robots from Sublime Text
This article discusses the possibility of simultaneous loading of programs on a group of robots using the external text editor Sublime Text. The article is a continuation of the next material
Before starting the program for the first time, you should log in to the TRIK controller via WinSCP. Instructions on how to do this are available here. After that WinSCP will remember that it was allowed to establish a connection with this robot and will not require confirmation. This step must be repeated each time a new controller is connected.
1. Start Sublime Text.
Tools → Build System → New Build System
3. A window with a text file will open. In it, you need to erase everything and insert the following code instead:
"cmd": ["D:\\TRIKStudio\\send_filesl.cmd", “<path to scripts dir>”, "<file with ip addresses>"],
<path to scripts dir>— the full path to the folder with the programs to be loaded onto the robots,
<file with ip addresses>— the name of the
.txtfile that contains the IP addresses of the robots to upload the files.
- There must be one IP address per line. The file must be in the same folder as the programs to be uploaded.
4. Specify your path to the
send_files.cmdfile instead of the one specified in the code.
"cmd": ["C:\\TRIKStudio\\send_files.cmd", "C:\\Users\\Admin\\myfiles", "ip_addr.txt"]
5. Save the file in the suggested directory
<system directory>\Sublime Text 3\Packages\Userunder the name
Tools → Build Systemand then in the list opened choose
7. To start sending programs to robots, just click
Tools → Buildor the corresponding key combination
Ctrl+B. In order to return to start the 2D model, select
Tools → Build Systemand select
TRIKin the list that opens.