public MainWindow() { InitializeComponent(); camList = new List <GigECamInfo>(); grabbers = new CogFrameGrabbers(); if (grabbers.Count != 0) { for (int i = 0; i < grabbers.Count; i++) { ICogFrameGrabber grabber = grabbers[i]; ICogGigEAccess gigEAccess = grabber.OwnedGigEAccess; string vendor = gigEAccess.GetFeature("DeviceVendorName"); camList.Add(new GigECamInfo() { Name = grabber.Name, SerialNumber = grabber.SerialNumber, VendorName = vendor }); } } dataGrid.ItemsSource = camList; display = new CogDisplay(); WFH.Child = display; fifo = grabbers[0].CreateAcqFifo("Generic GigEVision (Mono)", CogAcqFifoPixelFormatConstants.Format8Grey, 0, false); textBlock.Text = grabbers[0].Name; dataGrid.SelectedIndex = 0; }
// 2012.04.24 public string GetGigE_Feature(string strNode) { ICogGigEAccess cogGigEAccess = m_cogAcqFifoTool.Operator.FrameGrabber.OwnedGigEAccess; return(cogGigEAccess.GetFeature(strNode)); }