Unable to pull ExposureTime value
I was able to get some camera properties like ExposureMode, but could not get the ExposureTime
Is it available in the genicam XML?
Hello,
Yes, the ExposureTime parameter is included in the camera’s XML file and is standard across all GigE cameras:
<IntReg Name="ExposureTime_Val"><Address>0x000C1004</Address><Length>4</Length>
I was able to retrieve the exposure value using ReadRegisterAsync. However, I’m concerned that the register address might vary between camera models or change with firmware updates.
Dim et = Await cam.Gvcp.ReadRegisterAsync(cam.IP, "000C1004")
I am not sure if exposure time is standard across all GigE cameras. If you're sure it is standard then you can keep the fix register address it shouldn't be an issue, but if it is not standard then the register will most likely to change if you change the camera (specially if it is from different manufacturer). I am not sure why it is not getting the register name and address in the dictionary.
Hello,
I finally was able to load the ExposureTime using the property name "ExposureValue". For the gain, I had to use the name "GainRaw". That was with the Allied Vision Mako G 507C. Now I need to test with other brands.
Dim exposure As Double = 0 Dim exposureParam = Await cam.GetParameterValue("ExposureValue").ConfigureAwait(False) If (exposureParam.HasValue) Then exposure = exposureParam.Value End If