Skip to main content
WinWedge DDE server settings
Remember to set WinWedge up in DDE Server Mode! See the DDE Server Mode Setup Guide. DDE Application Name: Origin DDE Topic: ORG DDE Command: Get_Wedge_Data
Example#1 – launching and starting a conversation with WinWedge
Launch Origin and open the Script Window by selecting Window:Script Window from the Origin menu bar. Enter the following lines of script to launch WinWedge and Start a conversation. This example assumes that WinWedge.Exe and the configuration file “MyConfig.SW3” exists and both are located in a directory named “WinWedge” and that the config file “MyConfig.SW3”, saved from above, will configure WinWedge for serial port COM1.
Note: There are two ways to execute a script from the Script Window. One way is to type text into the Script Window and press ENTER. The text from the beginning of the line to the current cursor point is sent to the interpreter as a single script. After pressing ENTER, Origin appends a semicolon to the end of the line to indicate the script was executed. Another option for executing script from the Script Window is to Highlight multiple lines of text (including a semicolon at the end of each line) to be executed and press ENTER.
Example #2: collecting data to a column in a spreadsheet
Origin 5.0 does not have a “Get_Wedge_Data” DDE command so the first step is to create one. When you create a macro in Origin 5.0, the name of the macro automatically becomes a valid Origin 5.0 DDE command (or script command) for as long as the project is open. This example assumes that WinWedge.EXE and the configuration file “MyConfig.SW3” both exist and are located in a directory named “WinWedge” and that the config file “MyConfig.SW3”, saved from above, will configure WinWedge for serial port COM1. Each time data is sent to the wedge the data is entered in a new row.
Note: To define the above macro, highlight the entire block of text and hit ENTER. If you have defined 2 fields in WinWedge and would like to collect the data into two columns, then modify the macro above to include a line that collects data from field 2:
Last modified on November 3, 2026