.. _doxcsid-class_p1_1_1_camera_sdk_1_1_camera_1aa68c90a0475e37c0bd319ca4d0e3d856: Camera.OpenUsbCamera Method +++++++++++++++++++++++++++ Definition """""""""" *Namespace:* ``P1Sdk`` Opens a USB :ref:`Camera ` with the given serial-number (or any USB camera if the serial-number is omitted or empty). .. ref-code-block:: csharp :class: doxyrest-overview-code-block public static :ref:`Camera` OpenUsbCamera(string serialNum = null, string password = null); This is the method from where you obtain :ref:`Camera ` objects. You can ask for a specific camera by providing a serial number. Or, you could leave out the serial number, and get the first available camera. This is totally fine, as long as there are only one camera connected to your system. This method does not return cameras connected via TCP/IP. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - :ref:`SdkException ` - :ref:`SdkException ` with the error-code if something goes wrong. * - serialNum - Optional: The serial of the camera to open. NULL to open first available USB camera. * - password - Optional: If the camera is passord protected, supply the password here .. rubric:: Returns: A camera object, to control the requirested physical camera