def acquire_images(cam, nodemap, nodemap_tldevice):
    '\n    This function acquires and saves 10 images from a device.\n    Please see Acquisition example for more in-depth comments on acquiring images.\n\n    :param cam: Camera to acquire images from.\n    :param nodemap: Device nodemap.\n    :param nodemap_tldevice: Transport layer device nodemap.\n    :type cam: CameraPtr\n    :type nodemap: INodeMap\n    :type nodemap_tldevice: INodeMap\n    :return: True if successful, False otherwise.\n    :rtype: bool\n    '
    print('*** IMAGE ACQUISITION ***\n')
    try:
        result = True
        node_acquisition_mode = PySpin.CEnumerationPtr(nodemap.GetNode('AcquisitionMode'))
        if ((not PySpin.IsAvailable(node_acquisition_mode)) or (not PySpin.IsWritable(node_acquisition_mode))):
            print('Unable to set acquisition mode to continuous (enum retrieval). Aborting...')
            return False
        node_acquisition_mode_continuous = node_acquisition_mode.GetEntryByName('Continuous')
        if ((not PySpin.IsAvailable(node_acquisition_mode_continuous)) or (not PySpin.IsReadable(node_acquisition_mode_continuous))):
            print('Unable to set acquisition mode to continuous (entry retrieval). Aborting...')
            return False
        acquisition_mode_continuous = node_acquisition_mode_continuous.GetValue()
        node_acquisition_mode.SetIntValue(acquisition_mode_continuous)
        print('Acquisition mode set to continuous...')
        cam.BeginAcquisition()
        print('Acquiring images...')
        device_serial_number = ''
        node_device_serial_number = PySpin.CStringPtr(nodemap_tldevice.GetNode('DeviceSerialNumber'))
        if (PySpin.IsAvailable(node_device_serial_number) and PySpin.IsReadable(node_device_serial_number)):
            device_serial_number = node_device_serial_number.GetValue()
            print(('Device serial number retrieved as %s...' % device_serial_number))
        for i in range(NUM_IMAGES):
            try:
                result &= grab_next_image_by_trigger(nodemap, cam)
                image_result = cam.GetNextImage(1000)
                if image_result.IsIncomplete():
                    print(('Image incomplete with image status %d ...' % image_result.GetImageStatus()))
                else:
                    width = image_result.GetWidth()
                    height = image_result.GetHeight()
                    print(('Grabbed Image %d, width = %d, height = %d' % (i, width, height)))
                    image_converted = image_result.Convert(PySpin.PixelFormat_Mono8, PySpin.HQ_LINEAR)
                    if device_serial_number:
                        filename = ('Trigger-%s-%d.jpg' % (device_serial_number, i))
                    else:
                        filename = ('Trigger-%d.jpg' % i)
                    image_converted.Save(filename)
                    print(('Image saved at %s\n' % filename))
                    image_result.Release()
            except PySpin.SpinnakerException as ex:
                print(('Error: %s' % ex))
                return False
        cam.EndAcquisition()
    except PySpin.SpinnakerException as ex:
        print(('Error: %s' % ex))
        return False
    return result
This function acquires and saves 10 images from a device.
Please see Acquisition example for more in-depth comments on acquiring images.

:param cam: Camera to acquire images from.
:param nodemap: Device nodemap.
:param nodemap_tldevice: Transport layer device nodemap.
:type cam: CameraPtr
:type nodemap: INodeMap
:type nodemap_tldevice: INodeMap
:return: True if successful, False otherwise.
:rtype: bool
def acquire_images(cam, nodemap, nodemap_tldevice):
    '\n    This function acquires and saves 10 images from a device.\n    Please see Acquisition example for more in-depth comments on acquiring images.\n\n    :param cam: Camera to acquire images from.\n    :param nodemap: Device nodemap.\n    :param nodemap_tldevice: Transport layer device nodemap.\n    :type cam: CameraPtr\n    :type nodemap: INodeMap\n    :type nodemap_tldevice: INodeMap\n    :return: True if successful, False otherwise.\n    :rtype: bool\n    '
    print('*** IMAGE ACQUISITION ***\n')
    try:
        result = True
        node_acquisition_mode = PySpin.CEnumerationPtr(nodemap.GetNode('AcquisitionMode'))
        if ((not PySpin.IsAvailable(node_acquisition_mode)) or (not PySpin.IsWritable(node_acquisition_mode))):
            print('Unable to set acquisition mode to continuous (enum retrieval). Aborting...')
            return False
        node_acquisition_mode_continuous = node_acquisition_mode.GetEntryByName('Continuous')
        if ((not PySpin.IsAvailable(node_acquisition_mode_continuous)) or (not PySpin.IsReadable(node_acquisition_mode_continuous))):
            print('Unable to set acquisition mode to continuous (entry retrieval). Aborting...')
            return False
        acquisition_mode_continuous = node_acquisition_mode_continuous.GetValue()
        node_acquisition_mode.SetIntValue(acquisition_mode_continuous)
        print('Acquisition mode set to continuous...')
        cam.BeginAcquisition()
        print('Acquiring images...')
        device_serial_number = 
        node_device_serial_number = PySpin.CStringPtr(nodemap_tldevice.GetNode('DeviceSerialNumber'))
        if (PySpin.IsAvailable(node_device_serial_number) and PySpin.IsReadable(node_device_serial_number)):
            device_serial_number = node_device_serial_number.GetValue()
            print(('Device serial number retrieved as %s...' % device_serial_number))
        for i in range(NUM_IMAGES):
            try:
                result &= grab_next_image_by_trigger(nodemap, cam)
                image_result = cam.GetNextImage(1000)
                if image_result.IsIncomplete():
                    print(('Image incomplete with image status %d ...' % image_result.GetImageStatus()))
                else:
                    width = image_result.GetWidth()
                    height = image_result.GetHeight()
                    print(('Grabbed Image %d, width = %d, height = %d' % (i, width, height)))
                    image_converted = image_result.Convert(PySpin.PixelFormat_Mono8, PySpin.HQ_LINEAR)
                    if device_serial_number:
                        filename = ('Trigger-%s-%d.jpg' % (device_serial_number, i))
                    else:
                        filename = ('Trigger-%d.jpg' % i)
                    image_converted.Save(filename)
                    print(('Image saved at %s\n' % filename))
                    image_result.Release()
            except PySpin.SpinnakerException as ex:
                print(('Error: %s' % ex))
                return False
        cam.EndAcquisition()
    except PySpin.SpinnakerException as ex:
        print(('Error: %s' % ex))
        return False
    return result