简体   繁体   English

康耐视从头开始创建自己的应用程序

[英]Cognex creating own application from scratch

what do they mean about他们是什么意思

port.DtrEnable = true, port.DtrEnable = true,

https://support.cognex.com/docs/dmst_616SR1/web/EN/Comms_Prog_Manual/Content/Topics/PDF/DMCAP/DMCCApplicationDevelopment.htm https://support.cognex.com/docs/dmst_616SR1/web/EN/Comms_Prog_Manual/Content/Topics/PDF/DMCAP/DMCCApplicationDevelopment.htm

Where do I put this code on the sample code?我在哪里把这段代码放在示例代码上?

You are probably working with COM ports.您可能正在使用 COM 端口。

you need import你需要进口

using System.IO.Ports;

And when you create a SerialPort you should set the property当你创建一个SerialPort你应该设置属性

var serialPort = new SerialPort();
serialPort.DtrEnable = true;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM