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.
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.
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.
@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 :-)
Bookmarks