The auxiliary input and output of MegaVideo Model models are accessible from the back panel of the camera, as shown below. Both the input and the output are electrically isolated from the camera’s internal electrical circuitry by general-purpose photocouplers. The input is additionally protected with a serial 250 Ohm resistor and a debouncing circuit.
Using Auxilary IO functions through SDK involves three functions:
GetAuxIO()reads status of IN port.
SetAuxIO()sets the status of OUT port.
GetAuxOutStatus()reads back the current status of OUT port.
//Get AuxIN status
long client = 1, ret = 0;
ret = dll.pGetAuxIO(client); //ret: 1 if voltage present, 0 otherwise
//Set AuxOUT status
long curr_status = dll.pGetAuxOutStatus(client);
long on_off = 1; //on_off: 1 for short-circuit, 0 for open circuit
Caution: In firmware versions 64512 and later,
GetAuxIO() reads AuxIN status from the SDK local buffer rather than issuing a new request to the camera. The SDK local buffer is updated when a new image arrives. It is now necessary to request a small resolution image before calling the