// Select GPIO line 3camera.LineSelector.SetValue(LineSelector_Line3);// Set the line mode to Inputcamera.LineMode.SetValue(LineMode_Input);// Get the current line modeLineModeEnumse=camera.LineMode.GetValue();
INodeMap&nodemap=camera.GetNodeMap();// Select GPIO line 3CEnumParameter(nodemap,"LineSelector").SetValue("Line3");// Set the line mode to InputCEnumParameter(nodemap,"LineMode").SetValue("Input");// Get the current line modeString_te=CEnumParameter(nodemap,"LineMode").GetValue();
// Select GPIO line 3camera.Parameters[PLCamera.LineSelector].SetValue(PLCamera.LineSelector.Line3);// Set the line mode to Inputcamera.Parameters[PLCamera.LineMode].SetValue(PLCamera.LineMode.Input);// Get the current line modestringe=camera.Parameters[PLCamera.LineMode].GetValue();
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods */size_tlen=0;chare_str[64]={0};/* Select GPIO line 3 */errRes=PylonDeviceFeatureFromString(hdev,"LineSelector","Line3");CHECK(errRes);/* Set the line mode to Input */errRes=PylonDeviceFeatureFromString(hdev,"LineMode","Input");CHECK(errRes);/* Get the current line mode */len=sizeof(e_str);errRes=PylonDeviceFeatureToString(hdev,"LineMode",e_str,&len);CHECK(errRes);
# Select GPIO line 3camera.LineSelector.Value="Line3"# Set the line mode to Inputcamera.LineMode.Value="Input"# Get the current line modee=camera.LineMode.Value