Line Minimum Output Pulse Width#
Increasing the camera output signal width can be necessary to suit certain receivers that may require a certain minimum signal width to be able to detect the signals.
Using the Feature#
Specifying a Line Minimum Output Pulse Width#
- Set the LineSelector parameter to the desired camera output line.
- Enter a value for the LineMinimumOutputPulseWidth parameter.
How It Works#
To ensure reliable detection of camera output signals, the Line Minimum Output Pulse Signal Width feature allows you to increase the output signal width to a minimum width. The minimum width is specified in microseconds, up to a maximum value of 100 μs.
- If the original signal width is narrower than the minimum signal width specified, the signal width is increased to achieve the minimum width.
- If the original signal width is equal to or wider than the set minimum signal width, the feature has no effect.
Sample Code#
// Select output line Line 2 camera.LineSelector.SetValue(LineSelector_Line2); // Set the parameter value to 10.0 microseconds camera.LineMinimumOutputPulseWidth.SetValue(10.0);
INodeMap& nodemap = camera.GetNodeMap(); // Select output line Line 2 CEnumerationPtr(nodemap.GetNode("LineSelector"))->FromString("Line2"); // Set the parameter value to 10.0 microseconds CFloatPtr(nodemap.GetNode("LineMinimumOutputPulseWidth"))->SetValue(10.0);
INodeMap& nodemap = camera.GetNodeMap(); // Select output line Line 2 CEnumParameter(nodemap, "LineSelector").SetValue("Line2"); // Set the parameter value to 10.0 microseconds CFloatParameter(nodemap, "LineMinimumOutputPulseWidth").SetValue(10.0);
// Select output line Line 2 camera.Parameters[PLCamera.LineSelector].SetValue(PLCamera.LineSelector.Line2); // Set the parameter value to 10.0 microseconds camera.Parameters[PLCamera.LineMinimumOutputPulseWidth].SetValue(10.0);
// Select output line Line 2 Pylon.DeviceFeatureFromString(hdev, "LineSelector", "Line2"); // Set the parameter value to 10.0 microseconds Pylon.DeviceSetFloatFeature(hdev, "LineMinimumOutputPulseWidth", 10.0);
/* Macro to check for errors */ #define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc) GENAPIC_RESULT errRes = GENAPI_E_OK; /* Return value of pylon methods */ /* Select output line Line 2 */ errRes = PylonDeviceFeatureFromString(hdev, "LineSelector", "Line2"); CHECK(errRes); /* Set the parameter value to 10.0 microseconds */ errRes = PylonDeviceSetFloatFeature(hdev, "LineMinimumOutputPulseWidth", 10.0); CHECK(errRes);
You can also use the pylon Viewer to easily set the parameters.