# PCE Initialization File

To enable persistent camera enumeration, you must manually edit the PCE initialization file VPCameraOrder.ini, located in %PUBLIC%/Cognex/Common. Upon installation the file contains two lines:

    [enable PCE]
    enable bit=false

By changing the value of enable bit from false to true, VisionPro writes to the file the next time the application launches and adds information about the cameras currently available. For example, for a two-camera application the VPCameraOrder.ini file will resemble the following:

    [enable PCE]
    enable bit=true

    ; Cognex Corporation. INI file for Persistent Camera Enumeration (PCE)
    ;The legal values for enable bit are “true” and “false”
    ;PCE doesn't work if the file name is changed
    ;Modifying the enable PCE bit requires a restart of your application

    [GigE Camera 1]
    IP_Addr=192.168.22.1
    subnet_mask=255.255.255.0
    IPCurrentConfig=83886080
    MacAddr=00-30-53-15-14-C7
    Host_IPAddr=192.168.22.203
    Host_subnet_mask=255.255.255.0
    Host_macAddr=00-1B-11-79-52-73
    Host_mtu=9000
    name=GigE Vision: Basler: acA1300-30gc
    serialNo=21381575
    bigEndian=0

    [GigE Camera 2]
    IP_Addr=192.168.22.10
    subnet_mask=255.255.255.0
    IPCurrentConfig=83886080
    MacAddr=00-30-53-0C-5F-BF
    Host_IPAddr=192.168.22.203
    Host_subnet_mask=255.255.255.0
    Host_macAddr=00-1B-11-79-52-73
    Host_mtu=9000
    name=GigE Vision: Basler: piA2400-12gm
    serialNo=20810943
    bigEndian=0

VisionPro reads the contents of this initialization file each time your application launches and creates a virtual camera for any camera listed by the file that is not immediately available.