ChipCenter Questlink
SEARCH CHIPCENTER
Search Type:
Search for:




Knowledge Centers
Product Reviews
Data Sheets
Guides & Experts
News
International
Ask Us
Circuit Cellar Online
App Notes
NetSeminars
Careers
Resources
FAQ
EE Times Network
Electronics Group Sites

FINE TUNING AN EMBEDDED IDEA


Circuit Cellar Online
THE MAGAZINE FOR COMPUTER APPLICATIONS
Circuit Cellar Online offers articles illustrating creative solutions
and unique applications through complete projects, practical
tutorials, and useful design techniques.

FINE TUNING AN EMBEDDED IDEA

Lessons from the Trenches Part 1: The Land of BL2000
by Fred Eady

Start ý Z-Worldýs BL2000 ý C Meý ý Lock and Load ý Acquire the Voltage Data ý Transport and Display the Voltage Data ý Just the Beginning ý Sources and PDF

TRANSPORT AND DISPLAY THE VOLTAGE DATA

Listings 1 and 3 are fully commented and show how a TCP/IP conversation is established between the remote Z-World BL2000 and the front-end VB application running on the Microsoft Win2k server. The next part of our mission takes the captured data and rubs it into cells of an Excel spreadsheet. This is easily done using Excel macros spiced with a little VB Script.

First, I created a standard Excel spreadsheet and placed some graphic text on the sheet to help clarify the data. I then recorded the Sub bl() part of the macro in Listing 4. Basically, the Sub bl portion of the macro retrieves the ASCII delimited data from the file specified in the macro text. It is instructed to do this every 60 s. The data is brought into the spreadsheet and run against some formulas I placed under each voltage cell. The entire sheet is then saved as index.htm in the root directory of the Win2k web server.

Photo 3ýThe graphics are courtesy of NetStudio 2000 (now called NetStudio Easy Web Graphics Premium) and a web capture of the BL2000 is from Z-Worldýs web site. The second row of numbers is the resultant voltages derived by formulas I put into the cells.

 

The data received from the Z-World BL2000 that is placed in the flat file will need to be updated periodically. So, I added some VB script code right above the Sub bl() macro that will not only get the data from the file, but generate a new web page every 2 min. Photo 3 is a shot of the Excel page before the conversion to a web page. To show you the end result, Iýve taken a shot of the actual page being served (see Photo 4).

Photo 4ýPutting an Excel spreadsheet on the ýNet is a piece of cake with the new ý2000 edition.

 

PREVIOUSNEXT


Circuit Cellar provides up-to-date information for engineers. Visit www.circuitcellar.com for more information and additional articles.
For subscription information, call (860) 875-2199, subscribe@circuitcellar.com or subscribe online. ýCircuit Cellar, the Magazine for Computer Applications. Posted with permission.
Click here to get your listing up.

Copyright © 2003 ChipCenter-QuestLink
About ChipCenter-Questlink  Contact Us  Privacy Statement   Advertising Information  FAQ