CellScript Simulator Overview

The CellScript Simulator, a free Windows application you can download, is the primary development environment for the WebCell. It manages a CellScript Project, which is a folder on your PC with a mirror of all files on the WebCell.

Part of the CellScript Simulator is the File Manager. It allows you to view folders in your project and on the WebCell side-by-side, and copy between them. You can even set the File Manager to automatically synchronize the two as soon as a change takes place. It also offers typical file management such as renaming, deleting, and moving files and folders.

The CellScript Simulator turns your PC into a web server to truly simulate the WebCell. When you use your browser to load web pages containing Embedded CellScript, the CellScript Simulator loads the file into its editor and executes the CellScript to generate the web page. Alternatively, you can break into the debugger automatically or by having breakpoints set.

The debugger has the standard features you’d expect, such as step into/over/out, set next statement, and unlimited breakpoints. It also has features you might not expect, such as live editing of CellScript code. For example, if you step through a statement and see that it wasn’t right, you can immediately edit the code and do it over again without restarting the page. All your program variables are visible and you can change them while you debug.

The debugger also gives you fully simulated I/O. Each communications channel (three serial, one SPI, one I2C) has its own I/O window where you can see what has been sent and received. Each window allows you to enter the simulated data that the WebCell should receive when reading any of these channels. In the case of serial I/O, you can even connect the simulated serial port to a physical serial port on your computer and perform live serial I/O.

Likewise, you can see the values that have been sent to the PWM and DAC modules, and enter the values you would like the simulator to return for the ADC and input capture modules. And of course you can control the direction and value of each simulated I/O pin.

The CellScript Simulator can check online for firmware updates for the WebCell and apply them over network connection. It can also self-update.