Professional OPC
Development Tools


Using ReadItemValue with OpcLabs.EasyOpcClassic.dll under WPF access issue

28 Jul 2015 04:20 #3464 by support
This is an extension method, which I think is located in the IEasyDAClientExtension class in the EasyOpcClassicInternal assembly (cannot check that at the moment).

It is basically a thin wrapper over ReadMultipleItemValues, implemented as a static method in a static class, and taking any IEasyDAClient (including EasyDAClient) as the first argument.

Let me know if you need more info.
Best regards

Please Log in or Create an account to join the conversation.

28 Jul 2015 01:12 #3463 by pgilbert
Hello, while using the version of OpcLabs.EasyOpcClassic.dll our interpreted language cannot reach the ReadItemValue method that is supposed to be in the namespace OpcLabs.EasyOpc.DataAccess.EasyDAClient . However the ReadMultipleItems and ReadMultipleItemValue are accessible.

Inspecting the assembly with Telerik JustDecompile confirms that the method ReadItemValue is not part of that namespace. I must say that the Visual Studio example is working:
using System.Windows;
using OpcLabs.EasyOpc.DataAccess;
namespace WpfApplication1
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
        public MainWindow()
        private void Window_Loaded(object sender, RoutedEventArgs e)
            var client = new EasyDAClient();
            var value = client.ReadItemValue("", "OPCLabs.KitServer.2", "Demo.Single");
            TextBox1.Text = (value== null) ? "" : value.ToString();

Question: What does need to be done to access that method when not using Visual Studio or alternatively where is it located ?

Thanks in advance,

Please Log in or Create an account to join the conversation.

Moderators: support
Time to create page: 0.174 seconds


 Recommend this on Google