프로그래밍

SCPI 명령으로 신호발생기에서 Pulse Modulation 만들기

채윤아빠 2021. 10. 15. 23:18
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이 가능합니다.

참고자료

https://scdn.rohde-schwarz.com/ur/pws/dl_downloads/pdm/cl_manuals/user_manual/1178_3834_01/SMA100B_UserManual_en.pdf