Chapter 5. Tutorial

Table of Contents
5.1. Summary
5.2. Receiving data in Excel
5.3. Sending data from Excel
5.4. Incorporating the Cascade DataHub

This tutorial gets you started sending data between Windows and the data server, using Excel as a typical Windows application. It shows you how to send data to and from Excel, and how to incorporate the Cascade DataHub. To get the full benefit of this tutorial, it is helpful if the data server and Windows computers are adjacent to each other. If not, try to have an operator on each machine who can communicate via telephone.

5.1. Summary

This table summarizes the Testing and Tutorial chapters. Parts 1 and 2 cover Testing; Parts 3, 4, and 5 are the Tutorial.

Table 5-1. Testing and Tutorial Summary

WindowsData Server
Part 1. Preliminaries (testing)Part 1. Preliminaries (testing)
Use the Cascade Connect Setup program to edit the configuration (.ini) file.
Create a Cascade Connect icon, whose Target field will be used to call the cascade.exe executable:
"c:\path\cascade.exe" -i cfgfile.ini
QNX requires nameloc and Socket to be running.
QNX and Linux require inetd to be running, and a line in /etc/services that reads cascade 4501/tcp.
Start qserve and nserve in that order.
Use casctest to test the installation.
Part 2. Basic Operation (running a test)
Start Cascade Connect with its icon.
Use the Run Time window to monitor the connection.
Ensure that qserve and nserve are running.
Use demowrite to test the connection. It writes to the Run Time window.
Part 3. Receiving data in Excel
Set up an Excel spreadsheet: test.xls
Use the Cascade Connect Setup program to edit a configuration file (testxls.ini) for Excel with the program argument test.xls.
Create a new icon to start Cascade Connect and bring up the test.xls spreadsheet.
Use demowrite to write to the input1 cell of the test.xls spreadsheet.
Part 4. Sending data from Excel
Add a macro to test.xls.
Enter data and run the macro.
Use cascwait to view the incoming data.
Part 5. Incorporating the Cascade DataHub
View incoming data.
Send data.
Start datahub.
Start waiter for a simple view of the data.
Start dhview, phdhview (in QNX), or xdhview (in Linux), for a more sophisticated view of the data.
Use writept and demowrite to write data.

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.