|
@@ -305,7 +305,7 @@ namespace OTSMeasureApp.ServiceCenter
|
|
|
}
|
|
|
public int GET_COLUMN_MSGDATA(ref GET_COLUMN_PARAMETERS_STRUCT_HUIHONG COLUMN_PARAMETERS, int iWaitMs)
|
|
|
{
|
|
|
-
|
|
|
+ GET_COLUMN(0, 0);
|
|
|
int result = GET_COLUMN_MSGDATA(m_api, ref COLUMN_PARAMETERS, iWaitMs);
|
|
|
if(result == 1)
|
|
|
{
|
|
@@ -325,6 +325,16 @@ namespace OTSMeasureApp.ServiceCenter
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
+ public bool GetWorkingDistance(ref double a_distance)
|
|
|
+ {
|
|
|
+ GET_COLUMN_PARAMETERS_STRUCT_HUIHONG COLUMN_PARAMETERS = new GET_COLUMN_PARAMETERS_STRUCT_HUIHONG();
|
|
|
+ if (GET_COLUMN_MSGDATA(ref COLUMN_PARAMETERS, 150) == 1)
|
|
|
+ {
|
|
|
+ a_distance = COLUMN_PARAMETERS.dwWD;
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
public bool GetSemBrightness(ref double a_dSemBrightness)
|
|
|
{
|
|
|
GET_COLUMN_PARAMETERS_STRUCT_HUIHONG COLUMN_PARAMETERS = new GET_COLUMN_PARAMETERS_STRUCT_HUIHONG();
|
|
@@ -388,6 +398,7 @@ namespace OTSMeasureApp.ServiceCenter
|
|
|
|
|
|
public int GET_STAGE_MSGDATA(ref GET_STAGE_PARAMETERS_STRUCT STAGE_PARAMETERS, int iWaitMs)//硬件最小发送间隔默认为1秒
|
|
|
{
|
|
|
+ GET_STAGE(m_api, 0, 0);
|
|
|
int result= GET_STAGE_MSGDATA(m_api, ref STAGE_PARAMETERS, iWaitMs);
|
|
|
if(result == 1)
|
|
|
{
|
|
@@ -420,6 +431,7 @@ namespace OTSMeasureApp.ServiceCenter
|
|
|
}
|
|
|
public int GET_IMAGE_MSGDATA(ref Mat IMAGE, int iWaitMs)
|
|
|
{
|
|
|
+
|
|
|
return GET_IMAGE_MSGDATA(m_api, IMAGE.CvPtr, iWaitMs);
|
|
|
}
|
|
|
public void GET_SCANMODE()
|