05-10-2007 06:08 AM
05-11-2007
11:45 AM
- last edited on
01-24-2025
04:10 PM
by
Content Cleaner
05-11-2007 02:01 PM
05-14-2007 06:24 AM
05-15-2007 01:03 PM
Hi,
Sorry but I can't help you with the use of the dll you are talking about, i've never used such a way to communicate with OPC elements.
regards,
08-23-2007 03:09 AM
Dear jihef and ClementG
Using your experiences, now I'm going to use DSC module. But I have some trouble with using DSC. Here is my problems:
1- It seems I have no control on creating OPC group within DSC module (at least with mine: DSC module v.8.0). I mean I want to name and create one OPC group and create my own shared variable within this group. Could it be overcome using DSC Module v. 8.2+ by creating Library (and hence OPC I/O server) and shared variables dynamically?
2- ClementG has mentioned that by using DSC module solution, only one group will be created, but in my OPC Server source code I've seen many calls to AddGroup method by browsing OPC items and groups. and the strange thing is the name of group passed to this method (AddGroup) which is an empty string!!!
3- And the last: My OPC DA Server is a 2.05 one. I have no problem with it using OPC clients other that LabVIEWs, e.g Matrikon OPC explorer and my own OPC client implemented in C++, I can browse to its opc items and add them to my created group(s) and monitor them as well. but when I'm going to bind shared variables to OPC items (Bind to Source) and going to browse, it could do that but recognize my OPC items as OPC group (hence the OK button is still disabled). If I entere the path of my OPC items manually (replacing dots (.) with /), this will not work too (I got red indicator beside the controls bind to those shared variables). I'd like to emphasize that Matrikon OPC explorer recognize my opc items as well.
By the way, I'm going to upgrade to DSC v. 8.2 at least in order to launch ClementG sample code 😉 (and ofcourse because of creating shared variables and connection to OPC servers dynamically).
Thank you in advance for your help and advice(s).