Forum Replies Created
-
AuthorPosts
-
mariodavid
ParticipantHi
What version of VIsual STUDIO should I use? I have trouble loading the symbols in VISUAL STUDO 2017. So I can not establish breakpoints or debugging step by step
mariodavid
ParticipantSorry sorry. The idea is create a class derived from Server (include writeVQT) and add “public override write(IOsyncIO:write)” to the new class. Right?
But, how do I include public override write?
I am trying this
namespace OpcCom.Da
{public class serverNew : OpcCom.Da.Server
{
public IdentifiedResult[] Write(ItemValue[] items)
{
if (this.m_server == null)
throw new NotConnectedException();
return ((????)this.m_group).Write(items);
}
}
}
m_group execute public override write but is private object. So i can use it in another class. I am stop here.How can i debugg librarys in visual studio?. It ask me to reference the library to an aplication that uses that library.
mariodavid
ParticipantI managed to open without errors. only shows warningsI am tryng to create a class called “serverNew” from OpcCom.Da20.Server class. I know that serverNew inherits all the methods of OpcCom.Da20.Server class. So that, that include IOsyncIO:write method. So, What is inside new class?
-
This reply was modified 6 years, 9 months ago by
mariodavid.
mariodavid
ParticipantHi,
Yes. I can try. But I open kpOpc project in visual studio and shown 6 error and 82 warnings.
mariodavid
ParticipantHi,
Yes. I can try. But I open kpOpc project in visual studio and shown 6 error and 82 warnings.
mariodavid
ParticipantHi
Searching the implementation of da.server.write:
You used this method
And please take a look closely to this screenshots. There is a implementation of da.write
https://imgur.com/a/idmZjhe
this is a pubic override method
How can this override writeVQT methods?-
This reply was modified 6 years, 9 months ago by
mariodavid.
mariodavid
ParticipantYes, I can play with it. I learned how to decompiled with dotpeek and how to export to a visual studio proyect. Now, daserver is used a lot in kplogic. So I have a:
protected override IdentifiedResult[] Write(ItemIdentifier[] itemIDs, ItemValue[] items)
than uses:
.
.
.
try
{
((IOPCSyncIO) this.m_group).Write(arrayList1.Count, phServer, pItemValues, out ppErrors);
}
catch (Exception ex)I still do not understand how da.server could call “protected override IdentifiedResult[] Write(ItemIdentifier[] itemIDs, ItemValue[]”
Is it possible?
mariodavid
ParticipantHi, I found this, where OpcRcw.Da.IOPCSyncIO.Write(Int32, Int32[], Object[], IntPtr&) : Void
is Used By
OpcCom.Da20.Server.Write(ItemValue[]) : IdentifiedResult[]
OpcCom.Da20.Subscription.Write(ItemIdentifier[], ItemValue[]) : IdentifiedResult[]So, to use IOPCSyncIO.Write in KpOpclogic, the goal is to create a class that is derived from server and add IOPCSyncIO.Write to this new class. Am I right?
mariodavid
Participantcan you try to remove the quality and the timestamp in the writeVQT method that kplogic uses? please.
I think the main difference between the methods is than IOPCSyncIO:write only use Value, instead writeVQT (value, quality, timestamp). Am I right?
As I understand in the code there are some exceptions where another method is used in case you can not write with the default.
I am seeing here for example:
mariodavid
ParticipantHi,
Here is all the write method inside Group class
but I really do not see m_group
mariodavid
ParticipantHow do we find another overloaded m_group.Write?
mariodavid
ParticipantHi
“21 protected object m_group;”-
This reply was modified 6 years, 9 months ago by
mariodavid.
mariodavid
ParticipantHi
Do you know a software that open and debug dll files? with visual studio does not show the code.
But when i search in write:
goes to:
mariodavid
ParticipantI will try to debug using visual studio code.
mariodavid
Participant“public interface Isubscription : IDisposable”
Go to implementation in write- line:31, goes to two subscription.cs
-
This reply was modified 6 years, 9 months ago by
-
AuthorPosts