-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainForm.cs
More file actions
617 lines (580 loc) · 27.2 KB
/
MainForm.cs
File metadata and controls
617 lines (580 loc) · 27.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
/******************************************************************************
*
* Example program:
* ContAcqVoltageSamples_IntClk
*
* Category:
* AI
*
* Description:
* This example demonstrates how to acquire a continuous amount of data using
* the DAQ device's internal clock.
*
* Instructions for running:
* 1. Select the physical channel corresponding to where your signal is input
* on the DAQ device.
* 2. Enter the minimum and maximum voltage values.Note: For better accuracy,
* try to match the input range to the expected voltage level of the
* measured signal.
* 3. Set the rate of the acquisition.Note: The rate should be at least twice
* as fast as the maximum frequency component of the signal being acquired.
* Also, in order to avoid Error -50410 (buffer overflow) it is important
* to make sure the rate and the number of samples to read per iteration
* are set such that they don't fill the buffer too quickly. If this error
* occurs, try reducing the rate or increasing the number of samples to
* read per iteration.
*
* Steps:
* 1. Create a new analog input task.
* 2. Create an analog input voltage channel.
* 3. Set up the timing for the acquisition. In this example, we use the DAQ
* device's internal clock to continuously acquire samples.
* 4. Call AnalogMultiChannelReader.BeginReadWaveform to install a callback
* and begin the asynchronous read operation.
* 5. Inside the callback, call AnalogMultiChannelReader.EndReadWaveforme to
* retrieve the data from the read operation.
* 6. Call AnalogMultiChannelReader.BeginMemoryOptimizedReadWaveform
* 7. Dispose the Task object to clean-up any resources associated with the
* task.
* 8. Handle any DaqExceptions, if they occur.
*
* Note: This example sets SynchronizeCallback to true. If SynchronizeCallback
* is set to false, then you must give special consideration to safely dispose
* the task and to update the UI from the callback. If SynchronizeCallback is
* set to false, the callback executes on the worker thread and not on the main
* UI thread. You can only update a UI component on the thread on which it was
* created. Refer to the How to: Safely Dispose Task When Using Asynchronous
* Callbacks topic in the NI-DAQmx .NET help for more information.
*
* I/O Connections Overview:
* Make sure your signal input terminal matches the physical channel I/O
* control. In the default case (differential channel ai0) wire the positive
* lead for your signal to the ACH0 pin on your DAQ device and wire the
* negative lead for your signal to the ACH8 pin on you DAQ device. For more
* information on the input and output terminals for your device, open the
* NI-DAQmx Help, and refer to the NI-DAQmx Device Terminals and Device
* Considerations books in the table of contents.
*
* Microsoft Windows Vista User Account Control
* Running certain applications on Microsoft Windows Vista requires
* administrator privileges,
* because the application name contains keywords such as setup, update, or
* install. To avoid this problem,
* you must add an additional manifest to the application that specifies the
* privileges required to run
* the application. Some Measurement Studio NI-DAQmx examples for Visual Studio
* include these keywords.
* Therefore, all examples for Visual Studio are shipped with an additional
* manifest file that you must
* embed in the example executable. The manifest file is named
* [ExampleName].exe.manifest, where [ExampleName]
* is the NI-provided example name. For information on how to embed the manifest
* file, refer to http://msdn2.microsoft.com/en-us/library/bb756929.aspx.Note:
* The manifest file is not provided with examples for Visual Studio .NET 2003.
*
******************************************************************************/
using System;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Windows.Forms;
using NationalInstruments;
using NationalInstruments.DAQmx;
namespace NILSL
{
/// <summary>
/// Summary description for MainForm.
/// </summary>
public class MainForm : Form
{
public Liblsl.StreamOutlet Outlet;
public int ChannelCount { get; set; }
private DataGrid acquisitionDataGrid;
private GroupBox acquisitionResultGroupBox;
private AsyncCallback analogCallback;
private AnalogMultiChannelReader analogInReader;
private GroupBox channelParametersGroupBox;
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
private AnalogWaveform<double>[] data;
private AnalogWaveformCollection<double> multichanneldata;
private DataColumn[] dataColumn;
private DataTable dataTable;
private Label maximumLabel;
internal NumericUpDown maximumValueNumeric;
private Label minimumLabel;
internal NumericUpDown minimumValueNumeric;
private Task myTask;
private Label physicalChannelLabel;
private Label rateLabel;
private NumericUpDown rateNumeric;
private Label resultLabel;
private Task runningTask;
private Label samplesLabel;
private NumericUpDown samplesPerChannelNumeric;
private Button startButton;
private Button stopButton;
private CheckedListBox PhysicalChannelListBox;
private GroupBox timingParametersGroupBox;
public MainForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
stopButton.Enabled = false;
dataTable = new DataTable();
PhysicalChannelListBox.Items.AddRange(DaqSystem.Local.GetPhysicalChannels(PhysicalChannelTypes.AI, PhysicalChannelAccess.External));
if (PhysicalChannelListBox.Items.Count > 0)
PhysicalChannelListBox.SelectedIndex = 0;
}
public void InitializeLSL()
{
var info = new Liblsl.StreamInfo("NiDaq", "emg", ChannelCount, (double)rateNumeric.Value, Liblsl.channel_format_t.cf_double64, "unlock-semg");
Outlet = new Liblsl.StreamOutlet(info);
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (components != null)
{
components.Dispose();
}
if (myTask != null)
{
runningTask = null;
myTask.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main()
{
Application.EnableVisualStyles();
Application.DoEvents();
Application.Run(new MainForm());
}
private void startButton_Click(object sender, EventArgs e)
{
if (runningTask == null)
{
try
{
stopButton.Enabled = true;
startButton.Enabled = false;
// Create a new task
myTask = new Task();
//create a virtual channel for each checked physical channel.
foreach (var selectedItem in PhysicalChannelListBox.CheckedItems)
{
myTask.AIChannels.CreateVoltageChannel(selectedItem.ToString(), "",
(AITerminalConfiguration)(-1), Convert.ToDouble(minimumValueNumeric.Value),
Convert.ToDouble(maximumValueNumeric.Value), AIVoltageUnits.Volts);
}
// Configure the timing parameters
myTask.Timing.ConfigureSampleClock("", Convert.ToDouble(rateNumeric.Value),
SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples, 1000);
// Verify the Task
myTask.Control(TaskAction.Verify);
//wire in LSL
ChannelCount = PhysicalChannelListBox.CheckedItems.Count;
InitializeLSL();
// Prepare the table for Data
InitializeDataTable(myTask.AIChannels, ref dataTable);
acquisitionDataGrid.DataSource = dataTable;
runningTask = myTask;
analogInReader = new AnalogMultiChannelReader(myTask.Stream);
analogCallback = new AsyncCallback(AnalogInCallback);
// Use SynchronizeCallbacks to specify that the object
// marshals callbacks across threads appropriately.
analogInReader.SynchronizeCallbacks = true;
analogInReader.BeginReadWaveform(Convert.ToInt32(samplesPerChannelNumeric.Value),
analogCallback, myTask);
}
catch (DaqException exception)
{
// Display Errors
MessageBox.Show(exception.Message);
runningTask = null;
myTask.Dispose();
stopButton.Enabled = false;
startButton.Enabled = true;
}
}
}
private void AnalogInCallback(IAsyncResult ar)
{
try
{
if (runningTask != null && runningTask == ar.AsyncState)
{
// Read the available data from the channels
data = analogInReader.EndReadWaveform(ar);
//package it into a form LSL likes (samples by channel double[,])
var results = data.Select(analogWaveform => analogWaveform.GetRawData()).ToList();
var arr = new double[results[0].Length,results.Count];
for (int i = 0; i < results.Count; i++)
{
for (int j = 0; j < results[0].Length; j++)
{
arr[j, i] = results[i][j];
}
}
//stuff it out.
Outlet.push_chunk(arr);
// Plot your data here
dataToDataTable(data, ref dataTable);
analogInReader.BeginMemoryOptimizedReadWaveform(Convert.ToInt32(samplesPerChannelNumeric.Value),
analogCallback, myTask, data);
}
}
catch (DaqException exception)
{
// Display Errors
MessageBox.Show(exception.Message);
runningTask = null;
myTask.Dispose();
stopButton.Enabled = false;
startButton.Enabled = true;
}
}
private void stopButton_Click(object sender, EventArgs e)
{
if (runningTask != null)
{
// Dispose of the task
runningTask = null;
myTask.Dispose();
stopButton.Enabled = false;
startButton.Enabled = true;
}
}
private void dataToDataTable(AnalogWaveform<double>[] sourceArray, ref DataTable dataTable)
{
// Iterate over channels
int currentLineIndex = 0;
foreach (AnalogWaveform<double> waveform in sourceArray)
{
for (int sample = 0; sample < waveform.Samples.Count; ++sample)
{
if (sample == 10)
break;
dataTable.Rows[sample][currentLineIndex] = waveform.Samples[sample].Value;
}
currentLineIndex++;
}
}
public void InitializeDataTable(AIChannelCollection channelCollection, ref DataTable data)
{
int numOfChannels = channelCollection.Count;
data.Rows.Clear();
data.Columns.Clear();
dataColumn = new DataColumn[numOfChannels];
int numOfRows = 10;
for (int currentChannelIndex = 0; currentChannelIndex < numOfChannels; currentChannelIndex++)
{
dataColumn[currentChannelIndex] = new DataColumn();
dataColumn[currentChannelIndex].DataType = typeof (double);
dataColumn[currentChannelIndex].ColumnName = channelCollection[currentChannelIndex].PhysicalName;
}
data.Columns.AddRange(dataColumn);
for (int currentDataIndex = 0; currentDataIndex < numOfRows; currentDataIndex++)
{
object[] rowArr = new object[numOfChannels];
data.Rows.Add(rowArr);
}
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.channelParametersGroupBox = new System.Windows.Forms.GroupBox();
this.minimumValueNumeric = new System.Windows.Forms.NumericUpDown();
this.maximumValueNumeric = new System.Windows.Forms.NumericUpDown();
this.maximumLabel = new System.Windows.Forms.Label();
this.minimumLabel = new System.Windows.Forms.Label();
this.physicalChannelLabel = new System.Windows.Forms.Label();
this.timingParametersGroupBox = new System.Windows.Forms.GroupBox();
this.rateNumeric = new System.Windows.Forms.NumericUpDown();
this.samplesLabel = new System.Windows.Forms.Label();
this.rateLabel = new System.Windows.Forms.Label();
this.samplesPerChannelNumeric = new System.Windows.Forms.NumericUpDown();
this.startButton = new System.Windows.Forms.Button();
this.stopButton = new System.Windows.Forms.Button();
this.acquisitionResultGroupBox = new System.Windows.Forms.GroupBox();
this.resultLabel = new System.Windows.Forms.Label();
this.acquisitionDataGrid = new System.Windows.Forms.DataGrid();
this.PhysicalChannelListBox = new System.Windows.Forms.CheckedListBox();
this.channelParametersGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.minimumValueNumeric)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.maximumValueNumeric)).BeginInit();
this.timingParametersGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.rateNumeric)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.samplesPerChannelNumeric)).BeginInit();
this.acquisitionResultGroupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.acquisitionDataGrid)).BeginInit();
this.SuspendLayout();
//
// channelParametersGroupBox
//
this.channelParametersGroupBox.Controls.Add(this.PhysicalChannelListBox);
this.channelParametersGroupBox.Controls.Add(this.minimumValueNumeric);
this.channelParametersGroupBox.Controls.Add(this.maximumValueNumeric);
this.channelParametersGroupBox.Controls.Add(this.maximumLabel);
this.channelParametersGroupBox.Controls.Add(this.minimumLabel);
this.channelParametersGroupBox.Controls.Add(this.physicalChannelLabel);
this.channelParametersGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.channelParametersGroupBox.Location = new System.Drawing.Point(8, 8);
this.channelParametersGroupBox.Name = "channelParametersGroupBox";
this.channelParametersGroupBox.Size = new System.Drawing.Size(270, 208);
this.channelParametersGroupBox.TabIndex = 2;
this.channelParametersGroupBox.TabStop = false;
this.channelParametersGroupBox.Text = "Channel Parameters";
//
// minimumValueNumeric
//
this.minimumValueNumeric.DecimalPlaces = 2;
this.minimumValueNumeric.Location = new System.Drawing.Point(115, 139);
this.minimumValueNumeric.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.minimumValueNumeric.Minimum = new decimal(new int[] {
10,
0,
0,
-2147483648});
this.minimumValueNumeric.Name = "minimumValueNumeric";
this.minimumValueNumeric.Size = new System.Drawing.Size(96, 20);
this.minimumValueNumeric.TabIndex = 3;
this.minimumValueNumeric.Value = new decimal(new int[] {
100,
0,
0,
-2147418112});
//
// maximumValueNumeric
//
this.maximumValueNumeric.DecimalPlaces = 2;
this.maximumValueNumeric.Location = new System.Drawing.Point(115, 171);
this.maximumValueNumeric.Maximum = new decimal(new int[] {
10,
0,
0,
0});
this.maximumValueNumeric.Minimum = new decimal(new int[] {
10,
0,
0,
-2147483648});
this.maximumValueNumeric.Name = "maximumValueNumeric";
this.maximumValueNumeric.Size = new System.Drawing.Size(96, 20);
this.maximumValueNumeric.TabIndex = 5;
this.maximumValueNumeric.Value = new decimal(new int[] {
100,
0,
0,
65536});
//
// maximumLabel
//
this.maximumLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.maximumLabel.Location = new System.Drawing.Point(11, 171);
this.maximumLabel.Name = "maximumLabel";
this.maximumLabel.Size = new System.Drawing.Size(112, 16);
this.maximumLabel.TabIndex = 4;
this.maximumLabel.Text = "Maximum Value (V):";
//
// minimumLabel
//
this.minimumLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.minimumLabel.Location = new System.Drawing.Point(11, 139);
this.minimumLabel.Name = "minimumLabel";
this.minimumLabel.Size = new System.Drawing.Size(104, 15);
this.minimumLabel.TabIndex = 2;
this.minimumLabel.Text = "Minimum Value (V):";
//
// physicalChannelLabel
//
this.physicalChannelLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.physicalChannelLabel.Location = new System.Drawing.Point(16, 26);
this.physicalChannelLabel.Name = "physicalChannelLabel";
this.physicalChannelLabel.Size = new System.Drawing.Size(96, 16);
this.physicalChannelLabel.TabIndex = 0;
this.physicalChannelLabel.Text = "Physical Channel:";
//
// timingParametersGroupBox
//
this.timingParametersGroupBox.Controls.Add(this.rateNumeric);
this.timingParametersGroupBox.Controls.Add(this.samplesLabel);
this.timingParametersGroupBox.Controls.Add(this.rateLabel);
this.timingParametersGroupBox.Controls.Add(this.samplesPerChannelNumeric);
this.timingParametersGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.timingParametersGroupBox.Location = new System.Drawing.Point(8, 238);
this.timingParametersGroupBox.Name = "timingParametersGroupBox";
this.timingParametersGroupBox.Size = new System.Drawing.Size(224, 92);
this.timingParametersGroupBox.TabIndex = 3;
this.timingParametersGroupBox.TabStop = false;
this.timingParametersGroupBox.Text = "Timing Parameters";
//
// rateNumeric
//
this.rateNumeric.DecimalPlaces = 2;
this.rateNumeric.Location = new System.Drawing.Point(120, 56);
this.rateNumeric.Maximum = new decimal(new int[] {
100000,
0,
0,
0});
this.rateNumeric.Name = "rateNumeric";
this.rateNumeric.Size = new System.Drawing.Size(96, 20);
this.rateNumeric.TabIndex = 3;
this.rateNumeric.Value = new decimal(new int[] {
3000,
0,
0,
0});
//
// samplesLabel
//
this.samplesLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.samplesLabel.Location = new System.Drawing.Point(16, 26);
this.samplesLabel.Name = "samplesLabel";
this.samplesLabel.Size = new System.Drawing.Size(104, 16);
this.samplesLabel.TabIndex = 0;
this.samplesLabel.Text = "Samples/Channel:";
//
// rateLabel
//
this.rateLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.rateLabel.Location = new System.Drawing.Point(16, 58);
this.rateLabel.Name = "rateLabel";
this.rateLabel.Size = new System.Drawing.Size(56, 16);
this.rateLabel.TabIndex = 2;
this.rateLabel.Text = "Rate (Hz):";
//
// samplesPerChannelNumeric
//
this.samplesPerChannelNumeric.Location = new System.Drawing.Point(120, 24);
this.samplesPerChannelNumeric.Maximum = new decimal(new int[] {
100000,
0,
0,
0});
this.samplesPerChannelNumeric.Name = "samplesPerChannelNumeric";
this.samplesPerChannelNumeric.Size = new System.Drawing.Size(96, 20);
this.samplesPerChannelNumeric.TabIndex = 1;
this.samplesPerChannelNumeric.Value = new decimal(new int[] {
500,
0,
0,
0});
//
// startButton
//
this.startButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.startButton.Location = new System.Drawing.Point(22, 336);
this.startButton.Name = "startButton";
this.startButton.Size = new System.Drawing.Size(80, 24);
this.startButton.TabIndex = 0;
this.startButton.Text = "Start";
this.startButton.Click += new System.EventHandler(this.startButton_Click);
//
// stopButton
//
this.stopButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.stopButton.Location = new System.Drawing.Point(134, 336);
this.stopButton.Name = "stopButton";
this.stopButton.Size = new System.Drawing.Size(80, 24);
this.stopButton.TabIndex = 1;
this.stopButton.Text = "Stop";
this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
//
// acquisitionResultGroupBox
//
this.acquisitionResultGroupBox.Controls.Add(this.resultLabel);
this.acquisitionResultGroupBox.Controls.Add(this.acquisitionDataGrid);
this.acquisitionResultGroupBox.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.acquisitionResultGroupBox.Location = new System.Drawing.Point(296, 12);
this.acquisitionResultGroupBox.Name = "acquisitionResultGroupBox";
this.acquisitionResultGroupBox.Size = new System.Drawing.Size(304, 318);
this.acquisitionResultGroupBox.TabIndex = 4;
this.acquisitionResultGroupBox.TabStop = false;
this.acquisitionResultGroupBox.Text = "Acquisition Results";
//
// resultLabel
//
this.resultLabel.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.resultLabel.Location = new System.Drawing.Point(8, 16);
this.resultLabel.Name = "resultLabel";
this.resultLabel.Size = new System.Drawing.Size(112, 16);
this.resultLabel.TabIndex = 0;
this.resultLabel.Text = "Acquisition Data (V):";
//
// acquisitionDataGrid
//
this.acquisitionDataGrid.AllowSorting = false;
this.acquisitionDataGrid.DataMember = "";
this.acquisitionDataGrid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.acquisitionDataGrid.Location = new System.Drawing.Point(16, 32);
this.acquisitionDataGrid.Name = "acquisitionDataGrid";
this.acquisitionDataGrid.ParentRowsVisible = false;
this.acquisitionDataGrid.ReadOnly = true;
this.acquisitionDataGrid.Size = new System.Drawing.Size(280, 216);
this.acquisitionDataGrid.TabIndex = 1;
this.acquisitionDataGrid.TabStop = false;
//
// PhysicalChannelListBox
//
this.PhysicalChannelListBox.FormattingEnabled = true;
this.PhysicalChannelListBox.Location = new System.Drawing.Point(115, 26);
this.PhysicalChannelListBox.Name = "PhysicalChannelListBox";
this.PhysicalChannelListBox.Size = new System.Drawing.Size(120, 94);
this.PhysicalChannelListBox.TabIndex = 6;
//
// MainForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(630, 382);
this.Controls.Add(this.acquisitionResultGroupBox);
this.Controls.Add(this.stopButton);
this.Controls.Add(this.startButton);
this.Controls.Add(this.timingParametersGroupBox);
this.Controls.Add(this.channelParametersGroupBox);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "MainForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Continuous Acquisition of Voltage Samples - Internal Clock";
this.channelParametersGroupBox.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.minimumValueNumeric)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.maximumValueNumeric)).EndInit();
this.timingParametersGroupBox.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.rateNumeric)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.samplesPerChannelNumeric)).EndInit();
this.acquisitionResultGroupBox.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.acquisitionDataGrid)).EndInit();
this.ResumeLayout(false);
}
#endregion
}
}