/*
 * Do actual capturing
 * Called from inside the thread  
 */
int CIDS_uEye::ThreadRun (void)
{
  
   int ret=DEVICE_ERR;
   
   // Trigger
   if (triggerDevice_.length() > 0) {
      MM::Device* triggerDev = GetDevice(triggerDevice_.c_str());
      if (triggerDev != 0) {
      	LogMessage("trigger requested");
      	triggerDev->SetProperty("Trigger","+");
      }
   }
   
   ret = SnapImage();
   if (ret != DEVICE_OK)
   {
      return ret;
   }
   ret = InsertImage();
   if (ret != DEVICE_OK)
   {
      return ret;
   }
   return ret;
};
Beispiel #2
0
/*
 * Do actual capturing
 * Called from inside the thread  
 */
int COpenCVgrabber::ThreadRun (void)
{
   int ret=DEVICE_ERR;
   
   // Trigger
   if (triggerDevice_.length() > 0) {
      MM::Device* triggerDev = GetDevice(triggerDevice_.c_str());
      if (triggerDev != 0) {
      	//char label[256];
      	//triggerDev->GetLabel(label);
      	LogMessage("trigger requested");
      	triggerDev->SetProperty("Trigger","+");
      }
   }
      
   ret = SnapImage();
   if (ret != DEVICE_OK) return ret;

   ret = InsertImage();
   if (ret != DEVICE_OK) return ret;

   return ret;
};