public OpcGroup GetPublicGroup(string p_GroupName) { if (m_IfServer == null) { Marshal.ThrowExceptionForHR(HResults.E_ABORT); } OpcGroup l_Grp = new OpcGroup(ref m_IfServer, true, p_GroupName, false, 1000); l_Grp.InternalAdd(null, null, 0); return(l_Grp); }
public override string ToString() { StringBuilder l_Sb = new StringBuilder("OPCIST: ", 256); l_Sb.AppendFormat("error=0x{0:x} hclt=0x{1:x}", Error, HandleClient); if (Error == HResults.S_OK) { l_Sb.AppendFormat(" val={0} time={1} qual=", DataValue, Timestamp); l_Sb.Append(OpcGroup.QualityToString(Quality)); } return(l_Sb.ToString()); }
public OpcGroup AddGroup(string groupName, bool setActive, int requestedUpdateRate, int[] biasTime, float[] percentDeadband, int localeId) { if (m_IfServer == null) { Marshal.ThrowExceptionForHR(HResults.E_ABORT); } var group = new OpcGroup(ref m_IfServer, false, groupName, setActive, requestedUpdateRate); group.InternalAdd(biasTime, percentDeadband, localeId); return(group); }