ZHCUD07 April 2025 TX73L64
setattr (GUI,"memReset", True) #memory reset the device
setattr (GUI,"hardReset", True) #hardware reset the device
#delay(1) ##Give an optional delay of 1 second
### Assuming beam-former clock of 250MHz, one cycle is 4 Nano-second(1/250MHz
###Enter the transitions information. 5MHz waveform has 200ns period, which is 50 clock cycles
setattr (GUI,"levelnum",2) ## Enter the number of Transitions
setattr (GUI,"transitionsBox",0) ## Select "Transition 1" in the box
setattr (GUI,"level","PHV") ## Set the level to PHV
setattr (GUI,"period",24) ## Set the period to 100nSec by giving 24
setattr (GUI,"transitionsBox",1) ## Select "Transition 2" in the box.
setattr (GUI,"level","MHV") ## Set the level to MHV
setattr (GUI,"period",24) ## Set the period to 100nSec by giving 25
setattr (GUI,"globalRepeat",3) ## Repeating the pattern three more times
setattr (GUI,"profileName","Example") ## Save with a name "Example"
setattr (GUI,"saveProfile", True) ## Saving the profile in device and GUI
setattr (GUI,"allChPdn", True) ## Power down all the channels at once
setattr (GUI,"ch4p1Pdn", "1100") ## Power up Channels 1,2
setattr (GUI,"ch4p1Inv", "0010") ## Invert pattern in Channel 2
###Enter the channel delay information. 40 Nano-second delay is 10 clock cycles
setattr (GUI,"ch1delay", 10) ## Set Channel 1 delay
setattr (GUI,"ch2delay", 10) ## Set Channel 2 delay
setattr (GUI,"delProfileName","Profile 1") ## Save with a name "Profile 1"
setattr (GUI,"saveDelProfile", True) ## Saving the profile in device and GUI
###Enter the TRSW delay information. 16 Nano-second delay is 1 clock cycle (divided)
setattr (GUI,"ch1TRon",1) ## Set Channel 1 ON Delay to 16 Nano-Second
setattr (GUI,"ch2TRon",1) ## Set Channel 2 ON Delay to 16 Nano-Second
setattr (GUI,"syncClk", True) ##Enable Sync將上述腳本復制并粘貼到創建的文件中,然后運行該文件(運行 -> 緩沖器)