DDE Server in Labview

I have been trying to operate Labview as a DDE server so that another application can conneect to it.
(1) I don't understand how you access data that is provided to Labview by the client
(2) Is the data that is set in the set block the data that is accessed by using the topic string?
I have been through the examples and documentation and i didnt find an answer for question 1. With question 2 i am just looking for confirmation on how the client accesses the data because i havent actually got it to work yet. DDE is the only method that i am aware of with the program that i am using as the client.
Thanks,
Tom

Hi Tom,
Here is some example code that shows how to use DDE to read and write to an Excel spreadsheet.  Perhaps it will give you a good starting point.  Also, as Mike said, if you can use OPC you may want to consider it.
Good luck!
Megan B.
National Instruments
Attachments:
dde.zip ‏21 KB

Similar Messages

  • DDE Server Window: "LKSOCK.dl​l is missing"

    I'm running LV8.0.1 on Windoze 8.1 (yeah, I know...but it has been working fine).  I hadn't fired it up for at least a month and started it to modify a program.  I get the following error four or five times in a row:
    [DDE Server Window: LabVIEW.exe - System Error]
    The program can't start because LKSOCK.dll is missing from your computer.  Try reinstalling the program to fix this problem.
    After clicking through this four or five times everything seems to work normally.
    A search of my computer yielded "lksock.dll" in "C:\System32\" right where I expected to find it.  This raises several questions:
    1.  Why is DDE Server even starting (if that's what this message means)?  I haven't used DDE since Win 3.11...
    2. What is "LKSOCK.dll" and why does LV think I need it?  Isn't it somehow related to Lookout?
    3.  Why does it say it is missing when it is quite obiously present?  Is it actually looking for "LKSOCK.dll" and not "lksock.dll"?
    Any help would be appreciated.

    To answer your question, LKSOCK.dll is part of the shared variable engine.  Are you running Windows 8.1 x64? It is possible that is looking in C:\Windows\SysWOW64 for that DLL not C:\WIndows\System32
    A force reinstall of LabVIEW should add the dll to the correct directory. Here is a KnowlegeBase on force reinstalls.
    Force Reinstall NI Software from the Command Prompt in Windows:
    http://digital.ni.com/public.nsf/allkb/ADD22E807D5​A12AD862579EC00760F79
    A note is that LabVIEW 8 is not supported in Windows 8. The latest supported version is Windows XP x86. It looks like LabVIEW 8 files can be opened in newer versions of LabVIEW. You could install LabVIEW 2013, and convert the file to a LabVIEW 2013 file.
    Regards,
    Niamsam

  • How to get a DDE advise link working on a DDE server with more than one topic on the same service, and with an equal item name?

    When I create a DDE server with serveral topics, all on the same service and with the same item name (different topic), it appears that an advise link does not function properly. It doesn't work at all, it update only when the advise link is terminated or only one of the topics can use an advise link.
    eg.
    On one DDE server I have 2 topics:
    topic1:
    servicename: DDEserver
    topicname : C(1)
    itemnames : P(1), P(2), P(3)
    topic2:
    servicename: DDEserver
    topicname : C(2)
    itemnames : P(1), P(2), P(3)
    Only the topicnames differ!
    Now I can't get an advise link working on one of the items (sometimes on one, but not
    on another).
    Normal (non-advise) links are working fine however.
    (In my case there is no other solution since this DDEserver should be compatible with an older one, created earlier.)

    I really don't know DDE very well. It is usually recommended that you switch to using ActiveX. You may not be correctly configuring the netDDE server. There is an example in the reource library that shows how to do this. You may also want to look at the DDE advise examples that came with LabVIEW 5.1 and earlier.

  • DDE Server

    Hi,
    I'd like to set up a graphing program to pull some data from a labview
    VI. I want to be able to just have the data pulled at the demand of the
    graphing
    software, so, if I'm not mistaken, I want to write a dde server. I have
    some
    example code on how to write a dde client, but even the user's guide has
    little info on creating a server. How do I go about building one of these?
    I have a rough one set up thus far, but it doesn't stay registered and it
    only
    runs for a little less than a second. If anyone has a place I can get a
    simple
    example server i'd really appreciate it. I need to build one to modify
    an oscilliscope VI that I'm using right now.
    Thanks, Max.

    There's examples included with LabVIEW. Go to the help menu and select Search
    Examples. Click on Dynamic Data Exchange for a list of example VIs. There's
    a lot of different ways to get data from a LabVIEW program including DataSocket,
    ActiveX, TCP/IP. You might want to look at those methods as well. NI also
    has a number of examples at www.ni.com/support/epd.
    "Maxwell Bottiger" wrote:
    >>Hi,> I'd like to set up a graphing program to pull some data from a labview>VI.
    I want to be able to just have the data pulled at the demand of the>graphing>software,
    so, if I'm not mistaken, I want to write a dde server. I have>some>example
    code on how to write a dde client, but even the user's guide has>little info
    on creating a server. How do I go abou
    t building one of these?>>I have a
    rough one set up thus far, but it doesn't stay registered and it>only>runs
    for a little less than a second. If anyone has a place I can get a>simple>example
    server i'd really appreciate it. I need to build one to modify>an oscilliscope
    VI that I'm using right now.>>Thanks, Max.

  • Dde server examples please

    could any of you helpful folks who have example code communicating with the dde server of another application please post some 'generic' example code here? (or any related tips) -6.0.2-
    Thanks, Paul.S

    Have you looked here and at the Access DDE example that ships with LabVIEW?

  • How do I connect multiple telnet clients to a telnet server in LabVIEW?

    Good afternoon,
    I'm writing a telnet server in LabView 6.1 that needs to handle multiple clients. To do this, I modified the "viserver\runvi.llb" example to use the telnet VI's from the Internet Toolkit instead of the TCP VI's. Then I changed the Open VI Reference to point to my telnet handler. Right now my handler just echoes the characters received from the client.
    My software works ok for the first connection. After the server accepts two or more connections, characters typed in one client get echoed to all clients. In addition, only one client will accept characters at a time. The client accepting input changes randomly every few seconds as characters are entered.
    Has anyon
    e gotten the telnet VI's to run in parallel? Not sure if they are thread-safe or not. If you have some experience with this, I have attached my llb if you think you can help.
    Thanks!
    Chris Norris
    Carrier Access Corp.
    [email protected]
    (303) 218-5826
    Attachments:
    CAC_Telnet_Server.llb ‏92 KB

    I don't think there's a problem with the TCP/connection portion of things. My feeling is that the problem is lurking somewhere in the timing of the application, or in the way LabVIEW task scheduling/multitasking is working compared to the way you expect it to work.
    For instance, I'm wondering why you stuck with 25 seconds (25000 ms) as the timeout value for the Telnet Read in Telnet Handler.vi. I assume you're expecting LabVIEW to quickly "sleep" that while loop and move on to check on the while loops of any other Telnet Handler.vi instances that might have been spawned as a result of connection requests from other remote clients.
    Instead, it seems to me (on my system, anyway, with three simultaneous connections active) that LabVIEW is not cyc
    ling through the other Telnet Handler.vi instances as you expect, but is only getting to them to read a byte at a time each time the main loop iterates in response to a byte appearing from the first of the three remote clients.
    If you change the Telnet Read timeout to 50 ms instead, the behavior is closer to what you might expect, but still not perfect.
    Because timing/threading/scheduling is a complicated subject in LabVIEW, I'm going to give LabVIEW the benefit of the doubt and assume it's operating as designed. Maybe someone else can provide more insight into what's happening in this particular case, and whether reentrancy or something else is affecting things.
    One option I would consider if I were in your shoes: program a simpler version of things that mimics Date Server.vi and cycles through a queue of connections to service them without relying on spawning new reentrant instances of a handler VI.
    I realize that your version of things (along with the reentrancy example
    that ships with LabVIEW) is expressly intended to handle this daemon-style situation, but simpler may be better for the purposes of debugging and development ease.
    My two cents,
    John Lum
    National Instruments

  • Error messages - DDE Server Windows itunes.exe - Entry point Not found and iTunesHelper.exe - The procedure entry point asl_add_log_file could not be located in the dynamic link Library ASL.dll

    Hi
            I have tried to research these problems I am getting, but have not been able to resolve them.
    1st is the above DDE Server Windows iTunes.exe - entry point not found.
    This only occurs when I try to start iTunes.
    if I click ok , several times, iTunes will start but slowly.
    If at any time I have to reboot my computer I get
    iTunesHelper.exe - the procedure entry point asl_add_log_file could not be located in the dynamic link library ASL.dll
    if I click 3 times OK it goes away.
    To this end I have uninstalled iTunes and rebooted my machine then gone to iTunes web site and downloaded the latest version.
    Installing it but still get the same errors on reboot and trying to run iTunes
    Anyone any ideas please.
    I have a self build PC it has an Intel core 2 quad Q6000 @ 2.40GHz
    Ram 4.00GB
    32bit OS
    Windows 7 Ultimate SP1
    Firewall - Zonealarm
    Virus   -  Zonealarm
    Thanks in advance
    Steve
    Message was edited by: Ybslik
    Message was edited by: Ybslik

    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. If you're using Vista or 7, now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair". If you're using XP, head into your Add or Remove Programs control panel, select "Apple Application Support", click "Change" and then click "Repair".
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post. (If you've got XP, although the procedure is for Vista and 7, just read "Computer" as "My Computer", read "Uninstall a program control panel" as "Add or Remove programs control panel" and assume the system is 32-bit, and you'll be doing the right things.)
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever

  • Can't print pdf docs. Keep getting failed to connect to dde server. How do I fix?

    I have Adobe Reader X and I can not open files, or print them. I keep receiving a fatal error-DDE server not found. I have tried reloading Adobe, rebooted, and nothing seems to work. I have no trouble accessing my browser, can print nonadoble files. Everything else is running fine. What can I do?

    Hello,
    In order to change the default reader for PDF files (to not open PDF files with Firefox's internal PDF reader), follow these steps:
    #Go to ''Tools'' > ''Options'' (or ''Firefox'' > ''Options'').
    #In the Options window, select the ''Applications'' tab.
    #In the ''Search'' field, type ''PDF''. You should find ''Portable Document Format (PDF)''.
    #On the right handside you should find an ''Action'' column. Use that to select your favorite PDF reader. In order to view PDF files in Firefox, choose ''Preview in Firefox''.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Adobe Reader won't open pdfs. Message : Fatal Error: Acrobat failed to connect to a DDE server.

    What can I do to restore my Adobe Reader to working order. Worked fine yesterday. Today, won't open any pdf  docs in Adobe or saved on the computer. Message keeps popping up: Fatal Error: Acrobat failed to connect to a DDE server.

    DDE stands for Dynamic Data Exchange, check this threat
    http://forums.adobe.com/message/1877300#1877300

  • Adobe Reader 9.1 - Fatal Error : Acrobat failed to connect a DDE server

    Hi Everyone,
    I have some users telling me that when they try to open a pdf attachment in Outlook 2007. Nothing happens. The system just sits there as if you did not click on the attachment. If you wait long enought a popup box from adobe reader comes up and says:
    Fatal Error
    Acrobat failed to connect a DDE server.
    All the PDFs are very simple, just simple scanned images or converted over from a document into a PDF.
    I've tried repairing the install and still had no luck - same behaviour. The only way the pdf opens is if we go into task manager and close the AcroRd32.exe process or logoff and log back in.
    If it helps, the most recent system change was the upgrade to IE7 and a new anti-virus software.
    Thanks,
    KEvin

    No solution I am afraid but same problem, running full version of AVG and problem hit immediately after Adobe Reader 9.1 upgrade.  Pretty darn sure problem is in the upgrade but the relevant Restore Point was overwritten before I figured it out.  Any advice welcome.

  • Windows 7 64 bit apps crashing, dde server error

    Hi, I am having problems with a new Windows 7, 64 bit system. Acrobat 9 frequently crashes programs when it's invoked, for instance when trying to print a web page to PDF from Firefox, or making a PDF from a Word document. Firefox or Word will crash, with no errors. Acrobat is also giving these errors freqently: "Fatal error: failed to connect to dde server"
    Other installed apps include MS Office 2007 and Symantec Endpoint Protection, SAS JMP, Endnote.
    thanks for any suggestions.

    Hi,
    For now, I think we need consult the SQL Server forum due to they are familiar with this kind of issue:
    SQL Server Setup and Upgrade
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlsetupandupgrade
    Alex Zhao
    TechNet Community Support

  • How to implement an ActiveX server in LabVIEW

    My task is to implement an ActiveX server in LabVIEW 8.0 that will be called from a data management software (DXE).
    The LV server will take care of data acquisition and control.
    I have been looking for tutorials and example code at the NI developer zone and elsewhere without any progress. Information is either to general or code is to old (LV 5.1) to give any help.
    Please, show me to a good example of an ActiveX server in LV 8 properly commented or with attached explanations.
    Alternatively, suggest any tutorial, short course or books with practical instructions.
    Specific information is most welcome.
    I suppose that it is possible to write a ActiveX client in LabVIEW to verify the functions of the ActiveX server ?

    rolfk wrote:
    skalis wrote:
    Thank You. Good to know that I am on the right track.
    However,
    Your sentence "If You look at the several shipping examples..." make me
    little concerned. I am not able to find any example of a LV ActiveX
    server in my LV 8.0 installation. I would be very grateful of You can
    send me any.
    Basically you can not create your own
    Active X server with your own object hierarchy and methods in LabVIEW.
    LabVIEW however can export a predefined Active X server interface that
    is just another access method to its internal VI server interface.
    With this interface you can determine what VIs are available to
    control, load specific VIs from disk if you know their path and,
    execute those VIs and passing parameters to it and receiving outputs.
    So if your software allows you to script the Active X access to an
    Active X server in some ways such as VBA or similar you should be fine.
    If your software expects a specific Active X interface you have to
    implement in the server application, you are out of luck with LabVIEW,
    without using an external component such as an extra Active X server
    DLL that translates between the expected interface and the exported
    LabIVEW interface. But this last method is quite likely not worth the
    hassle.
    Rolf Kalbermatter
    While I did follow the link mentioned above and found the Interop.LabVIEW.dll that is included in the C# project for the purpose of calling VIs from C#, I am frustrated that these methods are 'buried' in a .dll that you have to go and find on the NI web site, and are not ActiveX methods that are available in an ActiveX Object that is installed when you install LV 8.20 PDS. 
    Rolf, I don't know that you will get this email, but are you refering to the methods inside of the Interop.LabVIEW.dll in what you are saying above, and if so, how did you become aware of this .dll? 
    Is anyone aware of any documentation for these ActiveX methods?
    Thanks,
    Wes
    Wes Ramm, Cyth UK
    CLD, CPLI

  • Failed to connect to DDE Server Acrobat XI Pro Windows 8.1

    I had installed Acrobat XI Pro on a Windows 8.0 notebook computer and it was working fine. When I upgraded to Windows 8.1 a few months ago, I started getting intermittent problems/error messages when I would try to open a pdf file by doubleclicking on the file either in a folder or on the desktop. The file wouldn't open and the error message was "Failed to connect to DDE Server." I can still open the files by doing a File, Open from inside the software, so it's not an insurmountable problem, just annoying.  Any suggestions on how to fix this?

    Hi TreeLady ,
    Thanks for posting on forums, DDE server was a part of Windows XP, it was removed from Windows Vista and above. However, if you are getting this error in Acrobat, try the following.
    (This error occurs when you have more than 1 process of Acrobat running)
    1) Go to the task manager by presiing Ctrl+Alt+Del
    2) Go to the processes in Task Manager
    3) End all processes related to Acrobat
    4) Launch Acrobat again.
    Also, to find the root couse or to isolate the issue you can try the following.
    1) Click on start
    2) Type RUN
    3) Type MSCONFIG
    4) Go to services
    5) Hide all Microsoft services
    6) Disable all Services (Except Microsoft)
    7) Restart your machine
    8) Launch Acrobat to check if you get the issue.
    This would help us to understand if Acrobat or any other third party process is not allowing Acrobat process to end causing a conflict .
    Thanks,
    Vikrantt Singh

  • OPC Server for Labview/PXI-RT

    Hi all,
    can i access Labview on a PC/WinXP or a PXI/RT System  with a
    OPC-Client (eg.:WinCC/Siemens) like a Compact Fieldpoint over the NI
    OPC Server (NationalInstruments.OPCFieldPoint). Exist a OPC-Server for
    Labview/PC/PXI?
    Thanks
    Achim

    Here you can find information concerning this issus:
    http://digital.ni.com/public.nsf/websearch/CC9CDD577F041786862572120061EB5A?OpenDocument
    Hope this helps!

  • Can't open file ... error msg "cannot connect to DDE server"?

    I can't open my pdf files from Outlook or just open Acrobat. If it does open, it says Acrobat failed to connect to DDE server? I'm using Acrobat Pro 9.3, I think as it updated. I have Win7 with current updates on a new Sony Vaio laptop.
    I looked at the other msgs but I am using Norton Anti-Virus not the one mentioned. I am upgraded to Win7 and IE8. All worked ok before switching to new computer and in starting to use Win7 & IE8.
    Thanks!
    Sherry
    Message was edited by: lilbur
    Message was edited by: lilbur

    See http://forums.adobe.com/message/5641417#5641417

Maybe you are looking for

  • Strange vertical lines - unresponsive phone

    Hello! I have an iPhone 4s, and recently a friend dropped it and smashed the screen. I got it repaired, and then I noticed what looked like a broken pixel at the bottom of the screen. After noticing this, my phone has randomly gone black, unresponsiv

  • IDOC meta data

    Hi All, I am trying a file-idoc scenario. I have imported the IDOC in IR and done with the mappings. I have created a RFC destination to R/3 server of type 3. Also I have created a port in IDX1 with the created RFC destination. In IDX2 I cant find th

  • Common SLD in XI . Is it possible?

    Dear Expert, Though SAP gives option of using commond SLD, we have problem working with common SLD. We have the following landscape DEV R/3 system (TS is D01) connecting to DEV XI System QAS R/3 system (TS is Q01) connecting to QAS XI System PRD R/3

  • When trying to drag a file, system will not release the file. Help!

    Since installing an update to OSX Lion whenever I select a file and try to drag it to another location, the fle will not release.  I have to reboot.  This happens whether I use trackpad or magic mouse.  How can I fix this?  I do not have any assistiv

  • Transporting Deleted Rows of Data

    Hello! I have run into a slight issue I am hoping someone can help me with! I created a table in our development client and added some data to the table using SE16N. I created a transport for the data and used SCC1 on the test client to transport the