# Read/Write from sim to an external process in real time

**URL:** <https://forum.makecode.com/t/read-write-from-sim-to-an-external-process-in-real-time/13061>\
**Category:** PXT\
**Created:** [April 11, 2022, 5:19pm UTC](https://forum.makecode.com/t/read-write-from-sim-to-an-external-process-in-real-time/13061 "2022-04-11T17:19:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toysonlocation](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/toysonlocation/32/5932_2.png) [@toysonlocation](https://forum.makecode.com/u/toysonlocation)\
**Post date:** [April 11, 2022, 5:19pm UTC](https://forum.makecode.com/t/read-write-from-sim-to-an-external-process-in-real-time/13061/1 "2022-04-11T17:19:41Z")

</div>

Hi forum,

I’m looking to create a simulated environment for the microbit sim. It would be a simulated environment (2D) with simulated hardware (a robotic car with servos and sensors) controlled by the microbit sim in makecode (NOT the actual hardware).

- I can’t find any official way to read data in real time from the sim into another process (JS in another HTML frame, for example)
- I can’t find a way for the microbit sim to receive data from a separate process

Is it possible? Thanks for reading.
