콘텐츠로 바로 가기
STAGING SERVER
DEVELOPMENT SERVER

Line Format#

Line Format 카메라 기능을 사용하면 I/O 라인의 전기적 형식을 확인할 수 있습니다.

기능 사용#

Line Format 확인하기#

I/O 라인의 전기적 형식을 확인하려면:

  1. 파라미터를 원하는 LineSelector 매개변수를 원하는 I/O 라인(예: )으로 설정합니다. Line1.
  2. 다음의 값을 가져옵니다. LineFormat 파라미터에 HTML 로그 파일(*.html)의 경로와 이름을 지정할 수 있습니다.
    이 파라미터는 읽기 전용입니다.

선택 가능한 값#

가능한 값은 다음과 같습니다.

샘플 코드#

// Select the desired I/O line
camera.LineSelector.SetValue(LineSelector_Line1);
// Get the electrical format of the line
LineFormatEnums e = camera.LineFormat.GetValue();
INodeMap& nodemap = camera.GetNodeMap();
// Select the desired I/O line
CEnumParameter(nodemap, "LineSelector").SetValue("Line1");
// Get the electrical format of the line
String_t e = CEnumParameter(nodemap, "LineFormat").GetValue();
// Select the desired I/O line
camera.Parameters[PLCamera.LineSelector].SetValue(PLCamera.LineSelector.Line1);
// Get the electrical format of the line
string e = camera.Parameters[PLCamera.LineFormat].GetValue();
/* 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 */
size_t len = 0;
char e_str[64] = {0};
/* Select the desired I/O line */
errRes = PylonDeviceFeatureFromString(hdev, "LineSelector", "Line1");
CHECK(errRes);
/* Get the electrical format of the line */
len = sizeof(e_str);
errRes = PylonDeviceFeatureToString(hdev, "LineFormat", e_str, &len);
CHECK(errRes);
# Select the desired I/O line
camera.LineSelector.Value = "Line1"
# Get the electrical format of the line
e = camera.LineFormat.Value

pylon Viewer를 사용하여 파라미터를 손쉽게 설정할 수도 있습니다.