본문으로 건너뛰기

IVision

머신 비전 및 검사 작업을 위한 인터페이스입니다.

네임스페이스: ControlBee.Interfaces

상속: IDeviceChannel

메서드

Trigger

검사를 트리거합니다.

void Trigger(int inspectionIndex, string? triggerId, Dictionary<string, object?>? options = null);
void Trigger(int inspectionIndex, Dictionary<string, object?>? options = null);

매개변수:

  • inspectionIndex — 트리거할 검사의 인덱스입니다.
  • triggerId — 트리거를 추적하기 위한 선택적 식별자입니다.
  • options — 트리거의 선택적 매개변수입니다.

StartContinuous

연속 이미지 취득 모드를 시작합니다.

void StartContinuous();

StopContinuous

연속 이미지 취득 모드를 중지합니다.

void StopContinuous();

IsContinuousMode

비전 시스템이 연속 취득 모드인지 확인합니다.

bool IsContinuousMode();

반환값: 연속 모드이면 true입니다.

SetLightOnOff

특정 검사의 조명을 켜거나 끕니다.

void SetLightOnOff(int inspectionIndex, bool on);

매개변수:

  • inspectionIndex — 검사 인덱스입니다.
  • ontrue이면 조명 켜기, false이면 끄기입니다.

SetLightValue

특정 조명 채널의 밝기를 설정합니다.

void SetLightValue(int inspectionIndex, int lightChannel, double value);

매개변수:

  • inspectionIndex — 검사 인덱스입니다.
  • lightChannel — 조명 채널 번호입니다.
  • value — 조명 밝기 값입니다.

Wait

검사 결과가 준비될 때까지 대기합니다.

void Wait(int inspectionIndex, int timeout);
void Wait(string triggerId, int timeout);

매개변수:

  • inspectionIndex — 검사 인덱스입니다.
  • triggerId — 트리거 식별자입니다.
  • timeout — 최대 대기 시간(밀리초)입니다.

WaitGrabEnd

이미지 취득이 완료될 때까지 대기합니다.

void WaitGrabEnd(int inspectionIndex, int timeout);

WaitExposureEnd

노출이 완료될 때까지 대기합니다.

void WaitExposureEnd(int inspectionIndex, int timeout);

GetResult

검사 결과를 JSON 객체로 반환합니다.

JObject? GetResult(int inspectionIndex);
JObject? GetResult(string triggerId);

반환값: JObject 형식의 검사 결과이며, 없으면 null입니다.

SaveImage

캡처된 이미지를 디스크에 저장합니다.

void SaveImage(string savePath, string? triggerId);
void SaveImage(string savePath);

매개변수:

  • savePath — 이미지를 저장할 파일 경로입니다.
  • triggerId — 이미지를 선택하기 위한 선택적 트리거 식별자입니다.

참고