Exemplo n.º 1
0
 /// <summary>
 /// Starts acquisition on the camera and configures
 /// the session if necessary
 /// </summary>
 /// <param name="bufferCount">The number of frames requested as buffer</param>
 public void Start(int bufferCount)
 {
     if (_captureRunning)
     {
         System.Diagnostics.Debug.WriteLine("Tried to start already running capture");
         return;
     }
     if (!_configured)
     {
         Configure((uint)bufferCount);
     }
     //Start asynchronous acquisition - after this call the ring-buffer
     //will get filled with images!
     NIImaq.CheckError(NIImaq.imgSessionAcquire(_sid, true, null));
     _captureRunning = true;
     _acquiredFrames = 0;
 }