예제 #1
0
        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);
        }
예제 #2
0
        public OPCGroup AddGroup(string p_GroupName, bool p_SetActive, int p_RequestedUpdateRate,
                                 int[] p_BiasTime, float[] p_PercentDeadband, int p_LocaleID)
        {
            if (m_IfServer == null)
            {
                Marshal.ThrowExceptionForHR(HResults.E_ABORT);
            }

            OPCGroup l_Grp = new OPCGroup(ref m_IfServer, false, p_GroupName, p_SetActive, p_RequestedUpdateRate);

            l_Grp.InternalAdd(p_BiasTime, p_PercentDeadband, p_LocaleID);

            return(l_Grp);
        }