private RecordWriter GetWriterToTest() { var writer = new RecordWriter(); writer.AddAnalogChannel(new AnalogChannelInformation("channel1a", "A")); writer.AddAnalogChannel(new AnalogChannelInformation("channel2a", "B")); writer.AddAnalogChannel(new AnalogChannelInformation("channel3a", "C")); writer.AddDigitalChannel(new DigitalChannelInformation("channel1b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel2b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel3b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel4b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel5b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel6b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel7b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel8b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel9b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel10b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel11b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel12b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel13b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel14b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel15b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel16b", "")); writer.AddDigitalChannel(new DigitalChannelInformation("channel17b", "")); writer.AddSample(0, new double[] { 0, 0, 0 }, new[] { true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true }); writer.AddSample(500, new[] { 1.0, 2.0, 3.0 }, new[] { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false }); writer.AddSample(1000, new[] { -1.0, 2.0, -3.5 }, new[] { false, false, false, false, true, true, true, true, false, true, false, true, true, false, true, false, true }); writer.AddSample(1500, new[] { 5.0, 5.0, 5.0 }, new[] { false, false, false, false, true, true, true, true, false, true, false, true, true, false, true, false, true }); writer.StartTime = new DateTime(1234567890); writer.TriggerTime = new DateTime(1234569000); return(writer); }