public virtual void WriteVar(double value) { SvMgrObjects.VarValue varValue = new SvMgrObjects.VarValue(); varValue.vt = SvMgrEnums.VarType.svmgr_vtANA; varValue.Ana = value; if (varValue.Ana != m_value) { SvMgrAPI.VarWrite(m_name, varValue, 0); } }
public virtual void WriteVar(string value) { SvMgrObjects.VarValue varValue = new SvMgrObjects.VarValue(); varValue.vt = SvMgrEnums.VarType.svmgr_vtTXT; varValue.Txt = value; if (varValue.Txt != m_value) { SvMgrAPI.VarWrite(m_name, varValue, 0); } }
public virtual void WriteVar(bool value) { SvMgrObjects.VarValue varValue = new SvMgrObjects.VarValue(); varValue.vt = SvMgrEnums.VarType.svmgr_vtLOG; varValue.Log = value; if (varValue.Log != m_value) { SvMgrAPI.VarWrite(m_name, varValue, 0); } }