Details
You can use the below code in a Cognex Designer script to set a GigE camera feature:
var fifo = (Cognex.VisionPro.ICogAcqFifo)$System.GetInternalObject("Devices.<myCamera>");
Cognex.VisionPro.ICogGigEAccess gige = fifo.FrameGrabber.OwnedGigEAccess;
gige.SetFeature("<featureName>","<featureValue>");
Notes:
- <myCamera> should be replaced by the actual camera name
- <featureName> should be replaced by the feature name that needs to be set
- <featureValue> should be replaced by the value that needs to be written to the given feature