0


[VisionPro与C#]CogAcqFifoTool与ICogAcqFifo的区别

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
在这里插入图片描述在这里插入图片描述所以在显示图像时:

privatestaticCogAcqFifoTool acqFifoTool =newCogAcqFifoTool();//想显示图像
CogToolDisplay_1.Display.StartLiveDisplay(acqFifoTool.Operator,false);
privatestaticICogAcqFifo acqFifo;//想显示图像
CogToolDisplay_1.Display.StartLiveDisplay(acqFifo,false);
标签: c# VisonPro 经验

本文转载自: https://blog.csdn.net/mmmm0584/article/details/120428829
版权归原作者 臧初之 所有, 如有侵权,请联系我们删除。

“[VisionPro与C#]CogAcqFifoTool与ICogAcqFifo的区别”的评论:

还没有评论