FlowLab

Add

Build your flowchart, then Run to bring the scene to life.

Build & investigate
1/160 blocks · Ready
STARTStartStartstart
Drag to move · port → block · arrows move selected blocks
Bridge LightsGuest · 0.00s
RIVERGATE · SINGLE-LANE BRIDGEBridge clearWestbound passed: 0Eastbound passed: 0WAITING AT RED

Build the flow. Bring it to life.

Keep traffic moving safely across a single-lane bridge.

Build from Start — no solution supplied.

Success criteria
  • Serve west and east without conflicting greens.
Inputs & outputs to use

Read: westRequest, eastRequest, occupied, westPassed, eastPassed.

west: 0 = Red; 1 = Red + amber; 2 = Green; 3 = Amber.

east: 0 = Red; 1 = Red + amber; 2 = Green; 3 = Amber.

Run the chart, change the sensors, then check the system against repeatable scenarios.

0/18 activities · browser/device progress; shared devices share these records. Course XP is separate.

0.00s Step = one block (including its wait). Run animates waits. Polling = 0.05s/block.

FlowLab files & saving

Build your flowchart, then Run to bring the scene to life.

Device saves are shared on this browser. Download a copy before changing computers. Up to 15 named device projects / 25 cloud projects, 100 KB each.


Student cloud saving

Use your existing Save Code and PIN. Your teacher can view saved flowcharts and completed activities.

FlowLab learning guide

Build the flow. Bring it to life. Six animated control scenarios, with 18 PRIMM activities.

  1. Add or drag blocks. Edit the selected block in Inspector. Each output has a numeric value listed in Sensor names & output values.
  2. Connect a bottom port to another block’s top port. Decisions have separate Yes and No paths. Choose a wire to move or delete it; the Inspector also offers connection menus.
  3. Run animates the world. Step executes one block, including a whole Wait; Run shows a wait in small increments. Pausing freezes both controller and world.
  4. Change the input controls while running. Read sensors directly in expressions or copy them into variables with an Output / process block.
  5. A red fault explains an unsafe command. Reset, edit and test again. An always-idle chart will fail checks that require useful work.
  6. Advanced adds named subroutines, breakpoints, variables and the call stack. For a subroutine add a Start with a routine name, finish with Return, then use a Call block with that name.
  7. Chart editing resets the world. Undo/redo covers edits and connections. Stop turns outputs off/red; Reset restores the scenario’s initial state.
  8. Projects and practice records stay on this browser unless downloaded or connected to student cloud saving. Never save a PIN in a project.

Terminal = Start/Stop; diamond = decision; rectangle = process; double-sided rectangle = subprogram. Wait is a simulator process command. A set block controls an output or stores a sensor reading/variable. Polling uses 0.05 seconds per block, so the world can respond to loops.

These are simplified teaching simulations. Traffic lights use 0=red, 1=red+amber, 2=green, 3=amber. The car park has two spaces per floor; the lift has three floors. Charts, scenarios and artwork are original PRIMMcode resources.

FlowLab

Draw your own algorithm. Add runnable instructions when you want to execute it.

Design your algorithm
1/160 blocks · Ready
STARTStartStartstart
Drag · connect ports · arrows move · Delete removes
Algorithm workbenchPaused · 0 steps

Draw, then trace your algorithm

Start blank. Add standard symbols, edit their labels and connect the ports. Yes/No branches and loops are drawn with arrows. All diagrams can be saved or exported without running them.

Drawing creates descriptive blocks for exam diagrams. Runnable creates blocks with instructions. Select an existing descriptive block and tick Give this block runnable instructions to define its behaviour.

  • Input stores a Number, Text or Boolean value from the console.
  • Process assigns a calculation: total + value.
  • Output displays an expression, including quoted text: "Hello " + name.
  • Decision evaluates a comparison or Boolean condition. Use + − * / DIV MOD, AND OR NOT, brackets and comparisons.
  • Arrays use indices from 0: scores = [4, 7, 2] (target scores, expression [4, 7, 2]); assign to scores[i]. LEN, STR, INT, REAL, ABS and ROUND are supported.
  • Subprogram Start names its routine and parameters. Call supplies arguments and an optional result variable; Return supplies a value. Each call has its own local variables, with values copied in and returned explicitly.
  • Run follows the chart; Step performs one block. Reset clears execution, keeping your diagram. Descriptive blocks and invalid connections produce a clear run diagnostic.

Execution supports flat arrays up to 100 values, 64 variables / 50 KB per scope, 16 nested calls, 10,000 steps and 200 console lines. This is a classroom algorithm language; exported diagrams are not claimed to use exact OCR Exam Reference Language syntax.

0 stepsAlgorithms use steps, not simulation time. Saved separately from course progress.

Algorithm files & export

Draw your own algorithm. Add runnable instructions when you want to execute it.

Exports include the complete diagram on a white background. SVG keeps vectors; PDF fits one A4 page. Device saves are shared on this browser. Up to 15 Algorithms projects on this device and 25 cloud projects shared across both FlowLab workspaces.


Student cloud saving

Use your existing Save Code and PIN. Class teachers can view saved algorithms.