1.报错如下
2.将设置外部触发的代码修改为:
case HARDWARE_TRIGGER_1:
cout << WHERE << "\tvalue of mode = " << mode << endl;
//zxf:
mSapAcqDevice->SetFeatureValue("TriggerMode", true);
//因为ccf文件中已经默认设置为外部触发模式,必须先将触发去掉使能,之后才能重新设置外部触发,不然会报参数冲突错误
mSapAcquisition->SetParameter(CORACQ_PRM_EXT_LINE_TRIGGER_ENABLE, FALSE, TRUE);
mSapAcquisition->SetParameter(CORACQ_PRM_INT_LINE_TRIGGER_ENABLE, FALSE, TRUE);
mSapAcquisition->SetParameter(CORACQ_PRM_LINE_INTEGRATE_METHOD, mode);
mSapAcquisition->SetParameter(CORACQ_PRM_EXT_LINE_TRIGGER_ENABLE, TRUE, TRUE);