728x90
반응형
Rohde & Schwarz SMA100B 신호발생기 장비에서 다음과 같은 SCPI 명령들로 Pulse Modulation을 적용한 신호를 생성할 수 있습니다.
# Reset the instrument to start from an initial state
*RST; *CLS
# Set the RF signal frequency and level
SOURce:FREQuency:CW 4.0 GHz
SOURce:POWer:LEVel:IMMediate:AMPLitude -25 dBm
# Configure the pulse modulation settings
# Select the internal modulation generator,
# set trigger mode, select pulse mode, transition type
# Trigger a single pulse
SOURce:PULM:SOURce INT
SOURce:PULM:TRIGger:MODE SING
SOURce:PULM:MODE DOUB
SOURce:PULM:TTYPe SMO
SOURce:PULM:TRIG:IMM
# Configure the pulse generator settings
# Set pulse period, width, and delay
SOURce:PULM:PERiod 1000 us
SOURce:PULM:WIDth 1 us
# Activate the signal output
SOURce:PGENerator:OUTPut:STATe 1
SOURce:PULM:STATe 1
OUTPut1:STATe 1
만약, 신호발생기에 Pulse Modulation 모듈 옵션이 없을 경우에는 다음과 같은 오류가 발생합니다.
>>> SGC.write("SOURce:PULM:SOURce INT")
24
>>> SGC.query("SYST:ERR?");
'-113,"Undefined header;Option/HW missing, IdPDbPulsSource"\n'
이 경우, Pulse Modulation 옵션을 추가해야만 원하는 형태로 Pulse Modulation이 가능합니다.
참고자료
'프로그래밍' 카테고리의 다른 글
[batch] zip 파일을 7-zip(7z) 파일로 변환하는 배치 파일(Convert zip to 7-zip) (0) | 2022.01.13 |
---|---|
[AutoHotKey] PostMessage 함수를 이용한 키보드 모의 (0) | 2021.12.28 |
[AutoHotKey] 단축키 키보드 에뮬레이션 문제점에 관하여 (Send, ControlSend) (0) | 2021.08.10 |
[AutoHotKey] Visual Studio Code에서 "execute bin not found" 오류 해결 방법 (0) | 2021.06.23 |
유용한 Visual Studio Code 확장(extension) 프로그램 (0) | 2021.04.15 |