Commit 31fa496f 刘韬

浩博v2

1 个父辈 6856c7d7
......@@ -63,7 +63,7 @@ namespace Asa
/// 打开设备
/// </summary>
/// <returns></returns>
public bool Open()
public bool Open(bool makeoffsettemplate)
{
int rtn;
......
......@@ -115,9 +115,9 @@ namespace Asa
/// 打开设备
/// </summary>
/// <returns></returns>
public bool Open()
public bool Open(bool makeoffsettemplate=true)
{
return device.Open();
return device.Open(makeoffsettemplate);
}
/// <summary>
......
......@@ -10,7 +10,7 @@ namespace Asa
{
interface XrayImageInterface
{
bool Open();
bool Open(bool makeoffsettemplate);
bool Close();
bool GetImage(int _MaxFrameCount = 3, int MaxDelay = 5000);
......
......@@ -32,7 +32,7 @@ namespace Asa
if (_ret != 0) WriteLog("HBI_RegEventCallBackFun" + _ret.ToString());
}
public bool Open()
public bool Open(bool makeoffsettemplate)
{
var HB_Remote_IP = Config.Get("HB_Remote_IP");
var HB_Remote_PORT = Config.Get<ushort>("HB_Remote_PORT");
......
......@@ -35,7 +35,7 @@ namespace Asa
if (_ret != 0) WriteLog("HBI_RegEventCallBackFun:" + GetHbiError(_ret));
}
public bool Open()
public bool Open(bool makeoffsettemplate)
{
var HB_Remote_IP = Config.Get("HB_Remote_IP");
var HB_Remote_PORT = Config.Get<ushort>("HB_Remote_PORT");
......@@ -57,7 +57,7 @@ namespace Asa
commCfg._remotePort = HB_Remote_PORT;
var offsettemplate = 1;
var offsettemplate = makeoffsettemplate ? 1 : 0;
var _ret = HBI_FPD_DLL.HBI_ConnectDetector(HBI_FPD_DLL._handel, commCfg, offsettemplate);
if (_ret != 0)
{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!