Professional OPC
Development Tools

logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

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

More
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.

More
28 Jul 2015 01:12 #3463 by pgilbert
Hello, while using the version 5.34.274.1 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()
        {
            InitializeComponent();
        }
 
        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.081 seconds