| Steps for setting up WinWedge:
1. Select "DDE Server" from WinWedge
"Mode" menu. When the dialog box appears asking for a "DDE Command
Destination Application", clear out both text boxes prompting for an Application Name
and a DDE topic.
Note: in this example we will not be configuring the Wedge
to send a DDE Command to Excel therefore these two items are not necessary and can be left
blank.
2. Select "Input Data Record Structure" in the
"Define" menu and define the structure of the input data record(s) to WinWedge.
When you get to the final Window with the caption "Input Record Definition
Editor", make sure that you do not have any Field Postamble DDE Commands defined.
3. Set up the Wedge to transmit the first prompt for the
first device that you want to poll using either a timer controlled output string or a
button controlled output string - Select "Output Strings" from the DEFINE menu.
If you use a timer controlled output string, set the timer interval to a value that is
high enough to guarantee that all devices will be polled before the first prompt gets sent
again. Also, do not check the option "Enable Timer on Activation" - we will
activate the timer later, after we are finished setting up Excel.
4. Set up the rest of WinWedge parameters and
then activate it.
Steps for setting up EXCEL:
1. Create or edit a macro module and enter the following
code in the module:
(To create a new module select "Macro" and "Module" from Excels
"Insert" menu.) |