Blocks: all pages

Try the program in Sim

Probot Sim runs an FTC program on a virtual field, without uploading it to a robot. On this page you open your FTC Blocks program in Sim. The Sim docs explain how to use Sim itself.

Sim runs FTC Blocks programs and OpModes written in Java in Android Studio. Probot Blocks files (.ino and .probot.json) do not open in Sim.

Sim's interface is in Turkish for now. This page quotes Sim's labels in Turkish, with their meaning in parentheses.

Before you start

Select the open program in Sim

If Blocks and Sim are open in the same browser, Sim finds the FTC program in Blocks by itself.

Tip

If Blocks is open in another browser or on another computer, Sim does not see the program. In that case, open the program with a .blk file.

  1. In Blocks, in the toolbar, select the FTC Blocks tab.
  2. In the same browser, open probotstudio.com/sim in a new tab.
  3. In Sim, in the Kod (Code) section's OpMode list, select the row marked "Blocks'ta açık FTC projesi" (FTC project open in Blocks). This row is at the top of the list. Its name is whatever the OpMode box in Blocks says (for example "Tank Sasi TeleOp").

Result: The summary of the Kod section reads "Tank Sasi TeleOp · TeleOp". In the checklist, the "Kod: Tank Sasi TeleOp (TeleOp)" item has a green check mark.

If you change the program in Blocks, Sim reads the program in the list again.

Open the .blk file in Sim

Use the .blk file when you move the program to another browser or computer.

Tip

If the file you select is not an FTC Blocks program, the Kod section shows "Bu dosya FTC Blocks (.blk) ya da Java (.java) değil." (This file is not FTC Blocks or Java) in a red box. Get the file from Blocks with Download .blk.

  1. In Blocks, in the toolbar, press Download .blk. A "TankSasiTeleOp.blk downloaded." notification appears. Details: Save the program, open it and get the Java code.
  2. In Sim, in the Kod section, press Dosya aç (.blk, .java) (Open file). You can also select Dosya > Kod dosyası (.blk, .java) aç… (File > Open code file).
  3. In the window that opens, select the .blk file you downloaded.
  4. Press Open.

Result: The program appears at the end of the OpMode list, marked "Dosyadan: TankSasiTeleOp.blk" (From file), and is selected. The row's name is the file name without the .blk extension (for example "TankSasiTeleOp").

The list holds only one program from a file at a time. When you open a new .blk file, the program from the previous file leaves the list.

Go back from Sim to Blocks

In Sim, in the Kod section, press Blocks'ta yaz (Write in Blocks). Blocks opens in a new tab. Dosya > Blocks'u aç (File > Open Blocks) does the same.

Having trouble?

Next step

On this page
Before you startSelect the open program in SimOpen the .blk file in SimGo back from Sim to BlocksHaving trouble?Next step