private void initAnologFilter() { int error_code; FilterCutoffFreq analogHPF = FilterCutoffFreq.FilterPassAway; FilterCutoffFreq analogLPF = FilterCutoffFreq.FilterPassAway; error_code = GetRecieverDAQ.AnalogHPF(SelectAscan.sessionIndex, SelectAscan.port, ref analogHPF); if (error_code != 0) { return; } error_code = GetRecieverDAQ.AnalogLPF(SelectAscan.sessionIndex, SelectAscan.port, ref analogLPF); if (error_code != 0) { return; } cboAHPF.SelectedIndex = (int)analogHPF; cboALPF.SelectedIndex = (int)analogLPF; }