To determine the status of an individual I/O line, use the Line Status feature.
In this topic Hide
To determine the current status of all I/O lines, read the LineStatusAll parameter. The parameter is reported as a 64-bit value.
Certain bits in the value are associated with the I/O lines. Each bit indicates the status of its associated line:
Which bit is associated with which line depends on your camera model.
If the Line Inverter feature is enabled, the camera inverts the LineStatusAll parameter value. All 0 bits change to 1, and vice versa.
→ See the Line Status feature documentation.
Camera Model |
Bit-to-Line Association |
---|---|
All ace 2 GigE camera models |
Example: All lines high = 0b111 |
All ace 2 USB 3.0 camera models |
Example: All lines high = 0b111 |
acA640-90gm |
Example: All lines high = 0b10000000000000001 |
acA640-90gc |
Example: All lines high = 0b10000000000000001 |
acA640-120gm |
Example: All lines high = 0b10000000000000001 |
acA640-120gc |
Example: All lines high = 0b10000000000000001 |
acA640-121gm |
Example: All lines high = 0b111 |
acA640-300gm |
Example: All lines high = 0b111 |
acA640-300gc |
Example: All lines high = 0b111 |
acA720-290gm |
Example: All lines high = 0b111 |
acA720-290gc |
Example: All lines high = 0b111 |
acA780-75gm |
Example: All lines high = 0b10000000000000001 |
acA780-75gc |
Example: All lines high = 0b10000000000000001 |
acA800-200gm |
Example: All lines high = 0b111 |
acA800-200gc |
Example: All lines high = 0b111 |
acA1280-60gm |
Example: All lines high = 0b10000000000000001 |
acA1280-60gc |
Example: All lines high = 0b10000000000000001 |
acA1300-22gm |
Example: All lines high = 0b10000000000000001 |
acA1300-22gc |
Example: All lines high = 0b10000000000000001 |
acA1300-30gm |
Example: All lines high = 0b10000000000000001 |
acA1300-30gc |
Example: All lines high = 0b10000000000000001 |
acA1300-60gm |
Example: All lines high = 0b10000000000000001 |
acA1300-60gmNIR |
Example: All lines high = 0b10000000000000001 |
acA1300-60gc |
Example: All lines high = 0b10000000000000001 |
acA1300-75gm |
Example: All lines high = 0b111 |
acA1300-75gc |
Example: All lines high = 0b111 |
acA1440-73gm |
Example: All lines high = 0b111 |
acA1440-73gc |
Example: All lines high = 0b111 |
acA1600-20gm |
Example: All lines high = 0b10000000000000001 |
acA1600-20gc |
Example: All lines high = 0b10000000000000001 |
acA1600-60gm |
Example: All lines high = 0b10000000000000001 |
acA1600-60gc |
Example: All lines high = 0b10000000000000001 |
acA1920-25gm |
Example: All lines high = 0b10000000000000001 |
acA1920-25gc |
Example: All lines high = 0b10000000000000001 |
acA1920-40gm |
Example: All lines high = 0b111 |
acA1920-40gc |
Example: All lines high = 0b111 |
acA1920-48gm |
Example: All lines high = 0b111 |
acA1920-48gc |
Example: All lines high = 0b111 |
acA1920-50gm |
Example: All lines high = 0b111 |
acA1920-50gc |
Example: All lines high = 0b111 |
acA2000-50gm |
Example: All lines high = 0b10000000000000001 |
acA2000-50gmNIR |
Example: All lines high = 0b10000000000000001 |
acA2000-50gc |
Example: All lines high = 0b10000000000000001 |
acA2040-25gm |
Example: All lines high = 0b10000000000000001 |
acA2040-25gmNIR |
Example: All lines high = 0b10000000000000001 |
acA2040-25gc |
Example: All lines high = 0b10000000000000001 |
acA2040-35gm |
Example: All lines high = 0b111 |
acA2040-35gc |
Example: All lines high = 0b111 |
acA2440-20gm |
Example: All lines high = 0b111 |
acA2440-20gc |
Example: All lines high = 0b111 |
acA2500-14gm |
Example: All lines high = 0b10000000000000001 |
acA2500-14gc |
Example: All lines high = 0b10000000000000001 |
acA2500-20gm |
Example: All lines high = 0b111 |
acA2500-20gc |
Example: All lines high = 0b111 |
acA2500-20gmMED |
Example: All lines high = 0b111 |
acA2500-20gcMED |
Example: All lines high = 0b111 |
acA3088-16gm |
|
acA3088-16gc |
Example: All lines high = 0b111 |
acA3800-10gm |
Example: All lines high = 0b10000000000000001 |
acA3800-10gc |
Example: All lines high = 0b10000000000000001 |
acA4024-8gm |
Example: All lines high = 0b111 |
acA4024-8gc |
Example: All lines high = 0b111 |
acA4096-11gm |
Example: All lines high = 0b111 |
acA4096-11gc |
Example: All lines high = 0b111 |
acA4112-8gm |
Example: All lines high = 0b111 |
acA4112-8gc |
Example: All lines high = 0b111 |
acA4600-7gc |
Example: All lines high = 0b10000000000000001 |
acA5472-5gm |
Example: All lines high = 0b111 |
acA5472-5gc |
Example: All lines high = 0b111 |
All ace USB 3.0 camera models |
Example: All lines high = 0b1111 |
All boost CXP-12 camera models |
Example: All lines high = 0b111 |
All dart BCON for LVDS camera models |
Example: All lines high = 0b11 |
All dart BCON for MIPI camera models | Line Status All feature not supported |
All dart USB 3.0 camera models |
Example: All lines high = 0b11 |
All pulse USB 3.0 camera models | Line Status All feature not supported |
// Get the line status of all I/O lines. Because the GenICam interface does not
// support 32-bit words, the line status is reported as a 64-bit value.
int64_t lineStatus = camera.LineStatusAll.GetValue();
INodeMap& nodemap = camera.GetNodeMap();
// Get the line status of all I/O lines. Because the GenICam interface does not
// support 32-bit words, the line status is reported as a 64-bit value.
int64_t lineStatus = CIntegerPtr(nodemap.GetNode("LineStatusAll"))->GetValue();
// Get the line status of all I/O lines. Because the GenICam interface does not
// support 32-bit words, the line status is reported as a 64-bit value.
Int64 lineStatus = camera.Parameters[PLCamera.LineStatusAll].GetValue();
// Get the line status of all I/O lines. Because the GenICam interface does not
// support 32-bit words, the line status is reported as a 64-bit value.
Int64 lineStatus = Pylon.DeviceGetIntegerFeature(hdev, "LineStatusAll");
/* 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 */
int64_t lineStatus = 0;
/* Get the line status of all I/O lines. Because the GenICam interface does not */
/* support 32-bit words, the line status is reported as a 64-bit value. */
errRes = PylonDeviceGetIntegerFeature(hdev, "LineStatusAll", &lineStatus);
CHECK(errRes);
You can also use the pylon Viewer to easily set the parameters.