public void D_SetWorkMode(Int32 wChnlNo, byte cbWorkMode, byte cbModeVal) { lock (syncObj) { D160X.D_SetWorkMode(wChnlNo, cbWorkMode, cbModeVal); } }