ROOTCASTLE / ENGINEERING LAB
Code runner
JavaScript a Python v prohlížeči s pomocí Sofia AI.
LOCAL EXECUTION · CODE STAYS IN YOUR BROWSER · Pyodide 314.0.7 (WebAssembly) · Time limit 10 s
Tab inserts indentation; press Esc, then Tab to leave the editor. Ctrl+Enter runs the program.
Output (stdout / stderr)
The program has not been run yet.Understand the error with Sofia AI
The code and the end of the output are sent to Sofia AI for an explanation and a fix suggestion. The code is not run on the server.
Що це таке
For å prøve en CRC-tabell, en PID-syklus, rensning av sensordata eller en liten spektralkalkulering før du går videre til hardware, kan du bruke eksemplene. Disse deler temaer med andre LAB-verktøy: sammenlign Modbus CRC-16 med protokollinspektøren og PID-utgangen med sandboxen. Når et program feiler, kan du sende koden og slutten av utgangen til Sofia AI for en forklaring og forslag til en løsning.
Where the code runs
Ainult teie brauseris. JavaScript töötab eraldi web workeris, kus on eemaldatud võrgu- ja salvestusõigus. Python töötab Pyodide (CPython, kompilitud WebAssembly’i kujul). Koodi laaditakse alla kindlaks määratud versioonist jsDelivr’ist. Rootcastle server ei tööta ega salveeri koodi. Teie käsikirja säilitatakse ainult selle brauseri kohalikus salvestuses. Sofia AI saab koodi esimese 6 000 ja väljundi viimase 2 000 tähte, ja ainult siis, kui vajutate nuppu ja annate nõusoleku.
Обмеження
Each run is limited to 10 seconds and 100,000 characters of output; the worker is terminated when a limit is reached. Input is not interactive: input() and readline() read lines from the stdin box in order. Python has the standard library only (packages such as numpy are not loaded). Timing and floating-point results in a browser do not show a microcontroller's real-time behaviour; verify embedded code on the target hardware.
Посилання
Pyodide · Modbus over Serial Line Specification V1.02, §6.2.2 (CRC-16) · K. J. Åström, T. Hägglund, Advanced PID Control, ISA, 2006 · MDN: Web Workers API
Educational workspace. Sofia AI's suggestions may be incorrect; run and verify a change before relying on it.