Exemplo n.º 1
0
        public SpectrogramAreaViewModel(SpctrumMonitorViewModel viewmodel)
        {
            mInstr             = viewmodel.Instrument;
            mMainViewModel     = viewmodel;
            mSpectrumViewModel = viewmodel.SpectrumAreaViewModel;

            for (int i = 0; i < MARKER_NUM; i++)
            {
                Markers[i]       = new Marker(mMainViewModel);
                Markers[i].Index = i;
                Markers[i].Type  = eMarkerType.Spetrogram;

                mMarkerItems.Add("Marker" + (i + 1).ToString());
            }
        }
Exemplo n.º 2
0
        public ErrorMessageViewModel(SpctrumMonitorViewModel viewmodel)
        {
            mMainViewModel = viewmodel;
            mInstr         = viewmodel.Instrument;

            MessageTypes = new List <string>()
            {
                ERRORTYPE_ALL, ERRORTYPE_ERROR, ERRORTYPE_WARNING, ERRORTYPE_INFO
            };
            mSelectedMessageType = MessageTypes[0];

            string folder = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            string path   = Path.Combine(folder, "ErrorLog.txt");

            ErrorFilePath = path;
        }
Exemplo n.º 3
0
        public SpectrumAreaViewModel(SpctrumMonitorViewModel mainviewmodel)
        {
            mInstr         = mainviewmodel.Instrument as SpectrumMonitorInstrument;
            mMainViewModel = mainviewmodel;

            for (int i = 0; i < MARKER_NUM; i++)
            {
                Markers[i]       = new Marker(mainviewmodel);
                Markers[i].Index = i;

                mMarkerItems.Add("Marker" + (i + 1).ToString());
            }


            mTriggerMaskData.MaskDataList.Add(new MaskData(StartFrequency, TopLevel - 30));
            mTriggerMaskData.MaskDataList.Add(new MaskData(Center, TopLevel - 30));
            mTriggerMaskData.MaskDataList.Add(new MaskData(StopFrequency, TopLevel - 30));
        }
Exemplo n.º 4
0
        public RegisterControlViewModel(SpctrumMonitorViewModel mainViewModel)
        {
            mMainViewModel = mainViewModel;
            mInstr         = mainViewModel.Instrument;

            var groupstr = mInstr.Service.GetRegisterGroups();

            string[] groups = groupstr.Split(',');
            mRegisterGroupItems.Clear();
            mRegisterGroupItems.AddRange(groups);

            AddressType = new List <string>();
            AddressType.AddRange(new List <string>()
            {
                ADDRESSTYPE_MAPPEDCONTROLREG, ADDRESSTYPE_CARRIERREG, ADDRESSTYPE_SPECTRUMDATAMEMORY
            });

            mSelectedAddressType = AddressType[0];
            WriteAddress         = "0x00";
            ReadAddress          = "0x00";
            LengthToRead         = "1";

            WriteData = "11,3,44,67,0x78,0x15";
        }
 public SignalTableAreaViewModel(SpctrumMonitorViewModel viewmodel)
 {
     mInstr = viewmodel.Instrument;
 }
Exemplo n.º 6
0
 public Marker(SpctrumMonitorViewModel mainViewModel)
 {
     mMainViewModel = mainViewModel;
 }
Exemplo n.º 7
0
 public FunctionViewModel(SpctrumMonitorViewModel viewmodel)
 {
     mMainViewModel = viewmodel;
     mInstr         = viewmodel.Instrument;
 }
Exemplo n.º 8
0
 public MenuViewModel(SpctrumMonitorViewModel viewmodel)
 {
     mInstr = viewmodel.Instrument;
 }
Exemplo n.º 9
0
 public DpxDisplayViewModel(SpctrumMonitorViewModel mainviewmodel)
 {
     mMainViewModel = mainviewmodel;
     mInstr         = mainviewmodel.Instrument as SpectrumMonitorInstrument;
 }
Exemplo n.º 10
0
 public DeviceInfoViewModel(SpctrumMonitorViewModel viewmodel)
 {
     mMainViewModel = viewmodel;
     mInstr         = viewmodel.Instrument;
 }
 public SettingPanelViewModel(SpctrumMonitorViewModel mainViewModel)
 {
     mInstr         = mainViewModel.Instrument;
     mMainViewModel = mainViewModel;
 }
Exemplo n.º 12
0
 public IndicatorViewModel(SpctrumMonitorViewModel mainViewModel)
 {
     mInstr = mainViewModel.Instrument;
 }