View Full Version : Web page with "realtime" I/O updates
tgarcia
01-21-2008, 01:16 PM
The attached sample program illustrates how to control and monitor RCM4xxx I/O in realtime via a web page. Specifically, it allows control and monitoring of the RCM4xxx protoboard LED's and pushbuttons. The technique that is used for realtime monitoring is Remote Scripting with Iframes (RSI).
For more information I would recommend googling "Remote Scripting with Iframes"
tgarcia
08-11-2008, 01:49 PM
Attached you will find a sample application that uses RabbitWeb and the Yahoo! User Interface libraries. YUI is a collection of JavaScript, CSS and Image resource files that make it easier to build richly interactive web applications using DOM scripting, DHTML, and AJAX. For more information on YUI see the following link: http://developer.yahoo.com/yui/ By combining YUI with our RabbitWeb scripting language you can greatly reduce your web development time and create feature rich web applications.
The attached sample was adapted from the browseled.c sample that ships with Dynamic C. The new sample (browseled4k.c) allows you to control and monitor the 2 LEDs and 2 Pushbuttons on the Rabbit 4K Development board. The web interface polls the Rabbit server approximately every second. The purpose for the sample is to illustrate how to use RabbitWeb to generate a dynamic JSON formatted data file and how to handle web updated variables. The sample also shows how to dynamically fetch the RabbitWeb data file using the YUI DataSource utility with uses AJAX.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.