3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

set_mode_analog_output()

정의

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)

프로그램 강제 종료 시

예제

Python
# 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)

Keyword

set / mode / analog / output / set_ / set_mode / analog_output / mode_analog_output