淘先锋技术网

首页 1 2 3 4 5 6 7

CogAcqFifoTool:tool-level API
ICogAcqFifo: operator-level API
两者都可以创建一个ICogAcqFifo对象

An Acquisition tool can be created in Visual Studio.NET using either the tool-level API to create a CogAcqFifoTool object or the operator-level API to create an ICogAcqFifo object.

When you create a new Acquisition tool, VisionPro uses default values for many acquisition FIFO properties. For example, the default Brightness property for many acquisition FIFOs is .50, while the default value for the StrobeEnabled property is False.

The ICogAcqFifo interface stores all possible acquisition FIFO properties. The method for changing the value of any property varies based on whether you use a CogAcqFifoTool or an ICogAcqFifo variable.

在这里插入图片描述

CogAcqFifoTool:
CogAcqFifoTool Class:Tool which acquires images using an acquisition fifo on a frame grabber。
A CogAcqFifoTool object uses the Operator property to set or get a property in its acquisition FIFO。
在这里插入图片描述
在这里插入图片描述
ICogAcqFifo:
ICogAcqFifo Interface:An acquisition fifo。
An ICogAcqFifo variable can access the properties in the acquisition FIFO directly
在这里插入图片描述在这里插入图片描述所以在显示图像时:

private static  CogAcqFifoTool acqFifoTool = new CogAcqFifoTool();
 //想显示图像
CogToolDisplay_1.Display.StartLiveDisplay(acqFifoTool.Operator, false);
 private static  ICogAcqFifo acqFifo;
 //想显示图像
CogToolDisplay_1.Display.StartLiveDisplay(acqFifo, false);