private SysConfig() { m_acqBoard = ACQ_BOARD.NICARD; m_acqDevice = ACQ_DEVICE.PMT; string[] devices = GetDeviceNames(); string deviceName = devices.Length > 0 ? devices[0] : "Dev1"; string[] aoChannels = GetAoChannels(); m_xGalvoAoChannel = string.Concat(deviceName, "/ao0"); m_yGalvoAoChannel = string.Concat(deviceName, "/ao1"); m_y2GalvoAoChannel = string.Concat(deviceName, "/ao2"); m_acqTriggerDoLine = string.Concat(deviceName, "/port0/line0"); m_acqStartSyncSignal = string.Concat("/", deviceName, "/ao/StartTrigger"); string[] aiChannels = GetAiChannels(); m_pmtAiChannels = new string[] { string.Concat(deviceName, "/ai0"), string.Concat(deviceName, "/ai1"), string.Concat(deviceName, "/ai2"), string.Concat(deviceName, "/ai3"), }; m_pmtTriggerInPfi = string.Concat("/", deviceName, "/PFI10"); string[] ciChannels = GetCiChannels(); m_apdCiChannels = new string[] { string.Concat(deviceName, "/ctr0"), string.Concat(deviceName, "/ctr1"), string.Concat(deviceName, "/ctr2"), string.Concat(deviceName, "/ctr3"), }; m_apdCiSrcPfis = new string[] { string.Concat("/", deviceName, "/PFI8"), string.Concat("/", deviceName, "/PFI3"), string.Concat("/", deviceName, "/PFI0"), string.Concat("/", deviceName, "/PFI5"), }; m_apdTriggerInPfi = string.Concat("/", deviceName, "/PFI9"); }
public API_RETURN_CODE SetAcqBoard(ACQ_BOARD acqBoard) { Logger.Info(string.Format("set acq board: [{0}].", acqBoard)); m_acqBoard = acqBoard; return(API_RETURN_CODE.API_SUCCESS); }