public override Task <RFmxNRModAccResults> NRFetchModAccResults(RFmxResultQuery request, ServerCallContext context) { var instr = sessionMap[(IntPtr)request.Session.Handle]; var nr = GetNRSignalConfiguration(instr, request.SignalName); var modAccResults = RFmxNR.FetchModAcc(nr, request.SelectorString); var response = new RFmxNRModAccResults(); foreach (var result in modAccResults.ComponentCarrierResults) { response.ComponentCarrierResults.Add(new RFmxNRModAccComponentCarrierResults() { MaxPeakCompositeEvm = result.MaxPeakCompositeEvm, MeanFrequencyErrorHz = result.MeanFrequencyError_Hz, MeanRmsCompositeEvm = result.MeanRmsCompositeEvm, PeakCompositeEvmSlotIndex = result.PeakCompositeEvmSlotIndex, PeakCompositeEvmSubcarrierIndex = result.PeakCompositeEvmSubcarrierIndex, PeakCompositeEvmSymbolIndex = result.PeakCompositeEvmSymbolIndex, }); } return(Task.FromResult(response)); }