Cognex creating own application from scratch

177 Views Asked by At

what do they mean about

port.DtrEnable = true,

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?

1

There are 1 best solutions below

0
On

You are probably working with COM ports.

you need import

using System.IO.Ports;

And when you create a SerialPort you should set the property

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