|
Report Generation/Simulation
The report is provided with the following pushbuttons:
New
Test: Pressed at the start of a new test run.
Refresh:
Pressed to refresh the column of data for the test.

At
the beginning of a test, the User presses the New Test pushbutton,
this updates the date of the test and clears any old test
results. If required, the report could be enhanced to update
other parameters such as Engine number and Operator name when this
pushbutton is pressed. As each test is completed, the
User presses the Refresh button of
that test. This causes the results from the test to be
collected from the test rig and automatically placed in the column
that is associated with the test. Note that Refresh pushbuttons are
disabled when they have been pressed, this is a function of the example. How
does the Report Work?
The mechanism behind this report is simple but very
effective. When the User presses a Refresh pushbutton, the
offset counter CR019 is set to the offset of the column and the
sheet is then updated. All this is performed by two lines of
code under the pushbutton. For example, if the Refresh button
of
test 4 is pressed, the following VBA is executed: '
Set the counter to the Test number
XLRrequest "Set 'CR019:Cval' '4'"
' Request an update of the sheet
XLRrequest "UpdateSheet 'EngineSample.Report'" Scheduler
There is no scheduler for this report.
|