ROOTCASTLE / इंजीनियरिंग लैब
Kod çalıştırıcısı
JavaScript et Python dans le navigateur, avec l'aide de 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 de andre LAB-verktøyene: 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 et forslag til løsning.
Where the code runs
Sadece tarayıcınızda çalışır. JavaScript, ağ ve depolama erişimi kaldırılmış bir ayrı web işlemcide çalışır; Python, Pyodide (CPython, WebAssembly'ye derlenmiş) üzerinde çalışır, jsDelivr'den sabit sürüm olarak indirilir. Rootcastle sunucusu kodu hiçbir zaman çalıştırmaz veya saklamaz. Çalışmanız yalnızca bu tarayıcının yerel depolamasında saklanır. Sofia AI, düğmeyi basıp onay verdiğinizde, kodun ilk 6.000 karakteri ve çıktının son 2.000 karakterini alır.
संभावित आवृत्ति घटक
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
A eğitim alanı. Sofia AI önerileri yanlış olabilir; bir değişikliği güvenecek kadar önce çalıştırın ve doğrulayın.