Question:

How to read the camera serial number with Pylon API?


Answer:

1. Use

res = PylonDeviceFeatureToString(hDev, "DeviceModelName", buf, &siz );

res = PylonDeviceFeatureToString(hDev, "DeviceModelName", buf, &siz );

to read the camera serial number.


2. 

 printf("S/N: %s\n", buf); 

To print the serial number in the console application.