示例#1
0
        void Logger_1_1Attached()
        {
            HW.NewPointReceived      += HW_NewPointReceived;
            HW.OnSignatureUpdate     += HW_OnSignatureUpdate;
            HW.OnCommandSendRequest  += HW_OnCommandSendRequest;
            HW.OnSamplingRateChanged += HW_OnSamplingRateChanged;
            HW.OnDisconnectRequested += HW_OnDisconnectRequested;
            var channelHWOpsHW = HW.EnumerateChannelOptions();

            // if (dsCollection.Count != channelHWOpsHW.Count)
            //    // This version doesn't support this loggerHW
            for (int i = 0; i < 4; i++)
            {
                dsCollection[i].ChannelOptions.HardwareOptions           = channelHWOpsHW[i];
                dsCollection[i].ChannelOptions.HardwareOptions.TopParent = dsCollection[i].ChannelOptions;
                dsCollection[i].ChannelOptions.SoftwareOptions.TopParent = dsCollection[i].ChannelOptions;
            }
        }