- Posts: 350
- Thank you received: 4
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.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- Browsing, Browse Dialogs and Controls
- FSGateway OPC server browsing issue
FSGateway OPC server browsing issue
Thank you.
Michael
Please Log in or Create an account to join the conversation.
Yes please. It's inside the InstanceParameters of EasyDAClient.
Regards
Please Log in or Create an account to join the conversation.
I am using this object programmatically. See below.
Dim easyDAClient = New EasyDAClient()
Should I set the EnableNativeClient to 'false' programmatically for the easyDAClient object?
Thank you.
Michael
Please Log in or Create an account to join the conversation.
Form1.DaItemDialog1.ServerDescriptor.MachineName = server_properties.server_comp_name
Form1.DaItemDialog1.ServerDescriptor.ServerClass = server_properties.RealServerName
If Form1.DaItemDialog1.ShowDialog() = DialogResult.OK Then
TagName = Form1.DaItemDialog1.NodeElement.ItemId
'Dim varType As VarType = easyDAClient.GetDataTypePropertyValue("", "OPCLabs.KitServer.2", "Simulation.Random")
Dim value As Object = Nothing
Dim exception As Exception = Nothing
Try ' Catch the exception May-29-2017
value = easyDAClient.GetDataTypePropertyValue("", server_properties.RealServerName, TagName)
Catch ex As OpcException
exception = ex
sTagType = ""
DisplayOPCException(exception)
End Try
The 'easyDAClient' variable clearly holds an instance of the EasyDAClient object, not only because the name suggests so, but because you are using it to make the GetDataTypePropertyValue call.
Regards
Please Log in or Create an account to join the conversation.
Thank you for your answer.
I have not used the EasyDAClient object until today.
1. Should I add it to the main form and change the EnableNativeClient to 'false'?
2. Anything else is required with this object?
3. What is the purpose of this object?
Thank you.
Michael
Please Log in or Create an account to join the conversation.
What you wrote does not change or contradict what I suggested.
The point that I was making was that the the EnableNativeClient settings should be the same across EasyDAClient objects and the dialog/control objects.
From the information I have, it looks that you have set EnableNativeClient to 'false' on the dialog object, but have *not* done that on the EasyDAClient object. Please do so.
Regards
Please Log in or Create an account to join the conversation.
As you can see in the code below, we have only one EasyDAClient object. It is in Form1.
Form1.DaItemDialog1.ServerDescriptor.MachineName = server_properties.server_comp_name
Form1.DaItemDialog1.ServerDescriptor.ServerClass = server_properties.RealServerName
If Form1.DaItemDialog1.ShowDialog() = DialogResult.OK Then
Thank you.
Regards,
Michael
Please Log in or Create an account to join the conversation.
What you have shown is how the EnableNativeClient is set to 'false' for the dialog object. Which is fine.
My concern was, however, about the EasyDAClient object, where the property needs to be set separately. It is highly recommended that the property is set consistently to the same value in all the EasyDAClient objects, and all QuickOPC dialog/control objects throughout the program. If it is not set like that, you end up with different parts of the program using different methods to connect to the servers.
Regards
Please Log in or Create an account to join the conversation.
Thank you for your answer.
1) The EasyDAClient is placed on the form, and the properties configured in the Visual Studio designer. See the attached screen capture.
Thank you.
Michael
Please Log in or Create an account to join the conversation.
I still have doubts about
You have not shown that part of the code. How is it done? There are multiple possibilities, such as:"EnableNativeClient is set to 'false' ."
1) The EasyDAClient is placed on the form, and the properties configured in the Visual Studio designer which then generates the code
2) you create "New EasyDAClient" and then set the property
3) It can be set from external configuration file.
Which approach are you using?
The reason I am asking is because from the error message (screenshot), it looks like that EnableNativeClient is 'true'.
Regards
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- Browsing, Browse Dialogs and Controls
- FSGateway OPC server browsing issue