def stopCapture(self): with self.mutex: if self.id is None or not self.active: return nivision.IMAQdxStopAcquisition(self.id) nivision.IMAQdxUnconfigureAcquisition(self.id) self.active = False
def stop_acquisition(self): nv.IMAQdxStopAcquisition(self.imaqdx) nv.IMAQdxUnconfigureAcquisition(self.imaqdx)