Can WinWedge send data to an instrument?

Last Modified: 3rd Jan 2013
Category: Laboratory Applications > WinWedge
Platform: All
Version: All
Article Ref.: 13D4E
»Return to previous search
»Print friendly version of this article.
1 person has found this article useful.

WinWedge 13D4E This can be done using a macro in Excel or Visual Basic. One of the DDE Commands supported by WinWedge is "SendFile". Thus the following Excel macro would send the file data.txt out the serial port COM 2: Sub SendMyFile() Chan = DDEInitiate("WinWedge", "Com2") DDEExecute Chan, "[SENDFILE('c:\data.txt')]" DDETerminate Chan End Sub Alternatively, a string of control codes can be sent out of the serial port by issuing the DDE command "[SendOut()]" to WinWedge. This example sends an escape character (ASCII 27), a capital "P" and a carriage return-linefeed (ASCII 13 and ASCII 10). Sub SendEscapeP() ChannelNumber = DDEInitiate("WinWedge", "COM1") DDEExecute ChannelNumber, "[SENDOUT(27,P,13,10)]" DDETerminate ChannelNumber End Sub How Do I? WinWedge All All en All

If you can't find a solution on the Knowledge Base then please contact us on the Technical Support Request Form or by email or by telephone on +44 (0) 203 695 7810

For the time being we are unable to offer the following product ranges although we are currently working hard to increase the number of products we can offer in the future. Please contact us to talk about alternative products that we may be able to offer you.