public override Task <Empty> NRConfigureModAcc(RFmxNRModAccConfiguration request, ServerCallContext context) { var instr = sessionMap[(IntPtr)request.Session.Handle]; var nr = GetNRSignalConfiguration(instr, request.SignalName); var modAccConfiguration = new RFmxNR.ModAccConfiguration() { AveragingCount = request.AveragingCount, AveragingEnabled = (RFmxNRMXModAccAveragingEnabled)(request.AveragingEnabled ? 1 : 0), EvmUnit = (RFmxNRMXModAccEvmUnit)request.EvmUnit, MeasurementLength = request.MeasurementLength, MeasurementLengthUnit = (RFmxNRMXModAccMeasurementLengthUnit)request.MeasurementLengthUnit, MeasurementOffset = request.MeasurementOffset }; RFmxNR.ConfigureModacc(nr, modAccConfiguration, request.SelectorString); return(Task.FromResult(new Empty())); }