Issue:

-Tried to set the exposure time with pylon API, but "exposureTime" is returned as NULL.


CEnumerationPtr exposureTime(nodemap.GetNode("ExposureTimeRaw"));
if (exposureTime != NULL)
exposureTime->FromString("1000");


Is it that exposure time cannot be adjusted from API? Or the string they give is wrong?


Solution:

-Use the string name "ExposureTime" to make changes on exposure time desired.


INodeMap& nodemap = camera.GetNodeMap();
camera.Open();
CFloatPtr exposuretime(nodemap.GetNode("ExposureTime"));
double newExposureTime
exposuretime->SetValue(newExposureTime);


Existence of "ExposureTimeRaw" depend on camera model, it only lead null pointer if your camera do not posses such feature.

Moreover, if you found that the setting value is not exact same as typed (but closer value), this may due to predefined increment value inside the camera.