如何使用ETAS INCA Tool-API在使用C#/ .NET的INCA测量期间记录注释?

时间:2015-03-26 09:53:15

标签: c# .net calibration

我正在使用Visual Studio编写C#/ .NET应用程序,需要触发ETAS INCA在测量期间在日志中插入注释。反过来,C#应用程序由Arduino硬件触发,但似乎运行良好。

目前该项目处于一个非常基本的状态。我在incacom.dll中加入了引用。我相信我已经确定了我需要使用的方法(即de.etas.cebra.toolAPI.Inca.IncaOnlineExperiment.WriteEventComment(string aComment, bool aFlag)),但它并不是直截了当的如何使用它。这是代码:

...
using de.etas.cebra.toolAPI.Common;
using de.etas.cebra.toolAPI.Inca;
using de.etas.cebra.socket;
...
private void comment_button_Click(object sender, EventArgs e)
        {
            bool flag = true;
            // I don't know what to do with this ToolClient.
            ToolClient tClient; 
            ClientSender cSender = new ClientSender(tClient);
            IncaOnlineExperiment incaExp = new IncaOnlineExperiment(cSender, flag);
            incaExp.WriteEventComment("Hello", flag);
        }

到目前为止我学到的是什么; WriteEventComment似乎需要一个新的IncaOnlineExperiment实例,它需要一个ClientSender,它需要一个ToolClient,我对此一无所知。我想这是非常基本的,但这是我在森林的这些部分的冒险所以请帮助我找到自己的方式。

0 个答案:

没有答案