nimble00 / PTGREY-cameras-with-python

These files explain how to use 'ptgrey' cameras with python. I felt the need to make this because there is not even an introductory code (to take a picture using ptgrey cameras) available on internet. take_a_photo.py is the basic code people usually need but I have added links to a few possibly helpful websites.
61 stars 19 forks source link

when i run cam.GetNextImage() script #9

Closed Tfyourhelp closed 1 year ago

Tfyourhelp commented 1 year ago

I try to set Exposure time is 2500us . The following is my code :

Code : node_exposuretime_float = PySpin.CEnumerationPtr(nodemap.GetNode('ExposureTime'))

if not PySpin.IsAvailable(node_exposuretime_float) or not PySpin.IsWritable(node_exposuretime_float):

  #print('Unable to set Exposure time to 2500 (enum retrieval). Aborting...')
  #return False

node_exposuretime_float.SetValue(2500)

it get this error: Error: node_exposuretime_float.SetValue(2500) AttributeError: 'CEnumerationPtr' object has no attribute 'SetValue'