public bool Write <T>(string instruction, T value) { StartOPcServerIfStopped(); bool bOk = false; OpcThread opcthread = new OpcThread(opcServer); try { opcthread.Request(new OpcRequest(Command.Write, instruction, value)); } catch (Exception errMsg) { bOk = false; } finally { } return(bOk); }
bool PhotoWrite <T>(string instruction, T value) { bool bOk = false; // bOk = IsValidTag(instruction); OpcThread opcthread = new OpcThread(camOPCServer); try { opcthread.Request(new OpcRequest(Command.Write, instruction, value)); } catch (Exception errMsg) { bOk = false; } finally { opcthread.Stop(); } return(bOk); }