CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2009
    Posts
    3

    OPC client with Visual C++ 2008

    Hi all,

    I have the following situation:
    I created a program with Visual C++ 2008 express which receive and interpret data from a µC. Now I want to send this data from the Visual C++ program to an OPC server. Both programs run on the same PC. Therefore I need a connection between my programm and the server. So I think I have to integrate an OPC "client" in my program. But until now I have no Idea how to realize or how to start this. Perhaps anyone has some hints for me.

    Thanks for any help

    Daniel

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: OPC client with Visual C++ 2008

    Are these 2 programs written by you ? Do you have the source code ? If so, you can create an IPC (interprocess communication) mechanism like sending messages, using pipes, sockets, using shared memory etc.

    http://www.codeguru.com/cpp/w-p/syst...int.php/c5777/
    http://www.codeguru.com/vb/gen/vb_sy...rint.php/c7401
    http://www.codeproject.com/KB/threads/Win32IPC.aspx
    http://www.codeguru.com/cpp/w-p/syst...cle.php/c2879/
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Oct 2009
    Posts
    3

    Re: OPC client with Visual C++ 2008

    Hi,
    thanks for your reply.

    I written the Visual C++ program and use a demo OPC server.

  4. #4
    Join Date
    Oct 2002
    Location
    Austria
    Posts
    1,284

    Re: OPC client with Visual C++ 2008

    Your Setup seems to be a bit funny.
    Usually you would write an OPC server that does all the communication with the a µC. That OPC Server would then publish the data from the µC for OPC clients.

    Kurt

  5. #5
    Join Date
    Oct 2009
    Posts
    3

    Talking Re: OPC client with Visual C++ 2008

    @ZuK: Yes I know, but one condition was to first build a Visual C++ program which reads the variables from the µC. And then hand them over to the OPC server.

    And by the way, I guess I`m far away from building my own OPC server :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured