02-18-2005 03:30 PM
02-21-2005
06:21 PM
- last edited on
11-26-2025
11:48 AM
by
Content Cleaner
Hi Steph,
To read/write any OPC Tag you need to just add the tag name to the OPC URL when using the DataSocket in C#.
example:
opc://machine_name/server_name/tag_name
To learn more about using OPC, I would suggest looking at the following links:
- OLE for Process Control
- OPC Resources
- Developing an OPC Client Application Using Visual Basic
For C# you can start with the DataSocket shipped example located at:
C:\Program Files\National Instruments\MeasurementStudio\DotNET\Examples\DataSocket\ReaderWriter\cs
I dont think there is an example program written at this time to communicate with OPC from C# but am very sure that the above links would provide you with all the information needed to create one.
I hope it helps,
Rajiv