void PreloadData(IHekaDevice device, IOutputData data)
        {
            var inputUnits = (ChannelType == StreamType.DIGITAL_OUT || ChannelType == StreamType.AUX_OUT)
                ? Measurement.UNITLESS : "V";

            var sampleData = data.DataWithUnits(inputUnits).DataWithUnits(DAQCountUnits);
            var samples    = sampleData.Data.Select(m => (short)m.Quantity).ToList();

            device.PreloadSamples(ChannelType, ChannelNumber, samples);
        }
 private ITCMM.GlobalDeviceInfo OpenDevice()
 {
     ITCMM.GlobalDeviceInfo deviceInfo;
     this.Device = QueuedHekaHardwareDevice.OpenDevice(DeviceType, DeviceNumber, out deviceInfo);
     HardwareReady = true;
     return deviceInfo;
 }
        void PreloadData(IHekaDevice device, IOutputData data)
        {
            var inputUnits = (ChannelType == StreamType.DO_PORT || ChannelType == StreamType.XO)
                ? Measurement.UNITLESS : "V";

            var sampleData = data.DataWithUnits(inputUnits).DataWithUnits(DAQCountUnits);
            var samples = sampleData.Data.Select(m => (short)m.Quantity).ToList();

            device.PreloadSamples(ChannelType, ChannelNumber, samples);
        }
 public void Preload(IHekaDevice device, IOutputData data)
 {
     PreloadData(device, data);
 }
 public void Preload(IHekaDevice device, IOutputData data)
 {
     PreloadData(device, data);
 }