public AcquisitionEngine(IDataSource source) { samplesOverflowSink = new List <float>(); overviewWfLastCapture = DateTime.Now; overviewWf = new Waveform(1, 6000000); TriggerSources = new List <ITrigger>(); TriggerSources.Add(new FreeRunning()); TriggerSources.Add(new Edge()); Trigger = new Edge(); // TODO: Temporary trigger Source = source; Source.Data += ProcessWaveform; Source.Data += Source_Data; Source.HighresVoltage += Source_HighresVoltage; Source.Connect(null); var dummyCfg = new NetStreamConfiguration(); dummyCfg.AdcSpeed = 0; dummyCfg.AfeGain = 0; dummyCfg.UseFastAdc = false; Source.Configure(dummyCfg); }
public TopicCreator(NetStreamConfiguration configuration) { _configuration = configuration; var adminConfig = new AdminClientConfig { BootstrapServers = configuration.BootstrapServers }; _adminClient = new AdminClientBuilder(adminConfig).Build(); }
private void btSendCfg_Click(object sender, EventArgs e) { lbAmpPerDiv.ForeColor = Color.White; NetStreamConfiguration cfg = new NetStreamConfiguration(); cfg.AfeGain = (int)Math.Pow(10, cbGain.SelectedIndex); cfg.AdcSpeed = cbAdcSpeed.SelectedIndex; cfg.UseFastAdc = cbAdcType.SelectedIndex == 0; acq.Source.Configure(cfg); }
public NetStream( string topic, NetStreamConfiguration configuration, IConsumerFactory consumerFactory, IProducerFactory producerFactory, ITopicCreator topicCreator) { _configuration = configuration; _topic = topic; _consumerFactory = consumerFactory; _producerFactory = producerFactory; _topicCreator = topicCreator; }
public NetStream( string topic, NetStreamConfiguration <TKey, TMessage> configuration, IConsumer <TKey, TMessage> consumer, ITopicCreator topicCreator, ILog log, IConsumePipeline <TKey, TMessage> pipeline = null, Action <Exception> onError = null) { _configuration = configuration; _topic = topic; _consumer = consumer; _topicCreator = topicCreator; _log = log; _pipeline = pipeline ?? new ConsumePipeline <TKey, TMessage>(); if (onError != null) { _onError = onError; } }