Adept Scientific - English
The world's best software and hardware for research, science and engineering.
flag arrow
clearclear

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Twitter Adept Scientific on LinkedIn
Knowledge Base  > Browse Categories  > WinWedge
Can I use WinWedge to set up a control loop?

Email This Article

To email this article enter and address below and click on the "Email" Article button.



Other resources from Adept Scientific for: WinWedge

  • WinWedge Product Information
  • Download WinWedge resources from our Download Centre
  • Buy WinWedge online from our Webstore
  • Read WinWedge FAQs
  • Read WinWedge technical articles from our KnowledgeBase


    Last Modified: 4th Aug 2009
    Category: Laboratory Applications > WinWedge
    Version: -
    Article Ref.: 2B7A
    »Return to previous search
    »Print friendly version of this article.
    1 person has found this article useful.

    I am thinking of using WinWedge to set up a control loop. Data will be collected via the RS232 port into Excel & then data will be taken from Excel & sent back to the RS232 port. Is this possible ?

    This is exactly what WinWedge is designed to do. Data and commands can be sent directly from Excel to WinWedge to transmit out to your serial devices. Hence you can have Excel use WinWedge to control devices.

    WinWedge is controlled from Excel by sending DDE commands to it.

    The following Excel VBA subroutine sends a string of control codes out 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 = Application.DDEInitiate("WinWedge", "COM1")
    Application.DDEExecute ChannelNumber, "[SENDOUT(27,'P',13,10)]"
    Application.DDETerminate ChannelNumber
    End Sub

    This is just one Example of data being sent from Excel via WinWedge to a serial device. Any data, commands or variables can be sent out.

     
     
    Related Articles
    adept

    Top of the Page

    Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

    EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
    All Trademarks Recognised. Copyright © 2012, Adept Scientific plc.
    Site designed and maintained by Lyndon Ash

    Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055