|
|
@@ -64,7 +64,7 @@ namespace OxfordExtenderWrapper
|
|
|
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
}
|
|
|
//获取电压
|
|
|
@@ -375,18 +375,12 @@ namespace OxfordExtenderWrapper
|
|
|
}
|
|
|
|
|
|
p.ImageData = new byte[0];
|
|
|
- var thread = new Thread(() =>
|
|
|
- {
|
|
|
+
|
|
|
|
|
|
- iExtender.AquisitionImage(ref p);
|
|
|
- });
|
|
|
- thread.IsBackground = true;
|
|
|
- thread.Start();
|
|
|
+ iExtender.AquisitionImage(ref p);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- while (thread.IsAlive)
|
|
|
- {
|
|
|
- Application.DoEvents();
|
|
|
- }
|
|
|
|
|
|
// 图像对象
|
|
|
var m_Bitmap = ToGrayBitmap(p.ImageData, p.width, p.height);
|
|
|
@@ -415,17 +409,10 @@ namespace OxfordExtenderWrapper
|
|
|
p.listElement = listElement;
|
|
|
p.dMilliSecondsTime = 500;
|
|
|
p.b_quant = true;
|
|
|
- var thread = new Thread(() =>
|
|
|
- {
|
|
|
+
|
|
|
|
|
|
- iExtender.XrayPointCollecting(ref p);
|
|
|
- });
|
|
|
- thread.IsBackground = true;
|
|
|
- thread.Start();
|
|
|
- while (thread.IsAlive)
|
|
|
- {
|
|
|
- Application.DoEvents();
|
|
|
- }
|
|
|
+ iExtender.XrayPointCollecting(ref p);
|
|
|
+
|
|
|
|
|
|
ShowData(p.XrayData,p. listElement);
|
|
|
|
|
|
@@ -500,17 +487,10 @@ namespace OxfordExtenderWrapper
|
|
|
p.XrayData = new uint[2000];
|
|
|
p.listElement = listElement;
|
|
|
p.b_quant = true;
|
|
|
- var thread = new Thread(() =>
|
|
|
- {
|
|
|
+
|
|
|
|
|
|
iExtender.XrayAreaCollecting(ref p);
|
|
|
- });
|
|
|
- thread.IsBackground = true;
|
|
|
- thread.Start();
|
|
|
- while (thread.IsAlive)
|
|
|
- {
|
|
|
- Application.DoEvents();
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
ShowData(p.XrayData, p.listElement);
|
|
|
@@ -548,17 +528,10 @@ namespace OxfordExtenderWrapper
|
|
|
p.b_quant = true;
|
|
|
points.Add(p);
|
|
|
}
|
|
|
- var thread = new Thread(() =>
|
|
|
- {
|
|
|
+
|
|
|
//Your code here
|
|
|
iExtender.CollectXrayByPoints(ref points, 100, true);
|
|
|
- });
|
|
|
- thread.IsBackground = true;
|
|
|
- thread.Start();
|
|
|
- while (thread.IsAlive)
|
|
|
- {
|
|
|
- Application.DoEvents();
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
ShowData(points[0].XrayData, points[0].listElement);
|
|
|
}
|
|
|
@@ -635,17 +608,10 @@ namespace OxfordExtenderWrapper
|
|
|
fea.a_listChord = listSeg;
|
|
|
fea.dMilliSecondsTime = Convert.ToInt32(textTime.Text);
|
|
|
fea.b_quant = true;
|
|
|
- var thread = new Thread(() =>
|
|
|
- {
|
|
|
+
|
|
|
|
|
|
iExtender.XrayAreaCollecting(ref fea);
|
|
|
- });
|
|
|
- thread.IsBackground = true;
|
|
|
- thread.Start();
|
|
|
- while (thread.IsAlive)
|
|
|
- {
|
|
|
- Application.DoEvents();
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
ShowData(fea.XrayData, fea.listElement);
|
|
|
|
|
|
@@ -709,17 +675,10 @@ namespace OxfordExtenderWrapper
|
|
|
|
|
|
}
|
|
|
|
|
|
- var thread = new Thread(() =>
|
|
|
- {
|
|
|
+
|
|
|
|
|
|
iExtender.CollectXrayByFeatures(ref features, 100, true);
|
|
|
- });
|
|
|
- thread.IsBackground = true;
|
|
|
- thread.Start();
|
|
|
- while (thread.IsAlive)
|
|
|
- {
|
|
|
- Application.DoEvents();
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
ShowData(features[0].XrayData, features[0].listElement);
|