Skip to main content
Skip table of contents

set_mode_analog_output(ch, mod )

기능

컨트롤러 아날로그 출력에 대한 채널 모드를 설정합니다.

인수

인수명자료형기본값설명

ch

int

-

  • 1 : channel 1
  • 2 : channel 2

mod

int

-

analog io mode

  • DR_ANALOG_CURRENT: 전류 모드
  • DR_ANALOG_VOLTAGE: 전압 모드

리턴

설명

0

성공

음수값

실패

예외

예외설명

DR_Error (DR_ERROR_TYPE)

인수들의 데이터형 오류 시

DR_Error (DR_ERROR_VALUE)

인수의 값이 유효하지 않을 시

DR_Error (DR_ERROR_RUNTIME)

C Extension 모듈 에러 발생 시

DR_Error (DR_ERROR_STOP)

프로그램 강제 종료 시

예제

PY
# analog_output channel 1을 전류 모드로 설정함
set_mode_analog_output(ch=1, mod=DR_ANALOG_CURRENT) 

# analog_output channel 2를 전압 모드로 설정함
set_mode_analog_output(ch=2, mod=DR_ANALOG_VOLTAGE)

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.