SLAU915 May 2024 ULC1001
The Reinit System button in the North Pane commands the ULC1001 to initialize the new parameters that are changed in the GUI. Clicking on the Reinit System button is not required when pushing the Run Button located on the far right side of each mode. When a parameter is changed in the GUI, the command is sent to the system. However, these commands are not updated until the Reinit System button is pressed. Once pressed, the system first re-initializes with any new settings, performs a read all from the ULC1001, and updates all of the GUI settings based on the ULC1001 settings.
The register sequence for Reinit is displayed in Table 4-16.
Register | Read/Write | Data | Description |
---|---|---|---|
00 | W | 00 | Change to Page 0 |
7F | W | 00 | Change to Book 0 |
02 | W | 00 | Put device in active mode. |
NA | NA | NA | Wait 5ms |
00 | W | 1A | Change to page 0x1A |
58 | W | 0000000E | Set Reinit Command in the UserCommand Register |
5C | W | 00000001 | Tells device there is a new command to be executed. |
NA | NA | NA | Wait until above register, 0x5C, = 0. (5ms). |
00 | W | 00 | Change to page 0 |
02 | W | 02 | Put device in software shutdown mode |
In the GUI, the following script can be used in the Python window to Re-initialize the system.
GUI_Module=__import__('ULC1001')
import time #import time for delays
GUI=GUI_Module.Device_GUI("ULC1001.exe",6640.000000)
GUI.write_register("ULC1001","PWR_CTL",0x0) # put device in active mode
GUI.write_register("USER_Commands","USER_Commands_userCommand",0xE) # command for Reinit
GUI.write_register("USER_Commands","USER_Commands_flag_newCommand",0x1) # sets lock bit
time.sleep(0.01) #delay 10ms
GUI.write_register("ULC1001","PWR_CTL",0x02) # returns device to Software Shutdown