11-13-2006 10:11 AM
11-16-2006 02:32 AM
Actually I suspect that the problem is in the National Instruments OPC Server.
DataSocket can read array data types from an OPC Server, but National Instruments' OPC Servers do not publish data in an array format.
Probably the easiest solution is to publish your shared variable in your network but don’t bind it trough the opc server, instead you have to use it like a standard global variable (bind to source method).
Give a look to this document may lead you to a better solution.
http://digital.ni.com/public.nsf/websearch/FA610367EC62574186257118005089F2?OpenDocument
Hope these two tips can help you
11-16-2006 05:01 AM
11-22-2006 01:15 AM
11-22-2006 06:33 AM
Thanks for your time, but i'm afraid there's another misunderstanding ![]()
I'm not working on RT. My Fieldpoint is not even an "intelligent" one, i only have VIs running on the host PC. And even on the PC, i don't want to read FP manually with "FP Read.vi", that is not "binding"!
Now i got my OPC-FieldPoint server to work properly; it does show multichannel items (with "All" tag) in its I/O Items tree. But they actually seem to contain only the first channel. If i bind a Double shared var to a multi item, it reads channel 0; if i bind an Array of Double shared var, it stays an empty array. Even Server Explorer 2.4.1 shows such items as one Double, and there is no array option as Data Type.
So i think your first reply was correct, NI OPC servers can't publish array data, unless there is some trick i don't know...
11-23-2006 05:35 AM
11-23-2006 07:18 AM
Yes, it confirms again the most important concept:
National Instruments' OPC Servers do not publish data in an array format.
I wonder why the server's I/O items list shows "All" channels too...