Index: tests/hd_nvm_scripts.py =================================================================== diff -u -ra3008f2085dca1d8de69c242414b91429bc188e9 -r685c0317a3c9ceb0aea35774cbc4511f3ae9fb33 --- tests/hd_nvm_scripts.py (.../hd_nvm_scripts.py) (revision a3008f2085dca1d8de69c242414b91429bc188e9) +++ tests/hd_nvm_scripts.py (.../hd_nvm_scripts.py) (revision 685c0317a3c9ceb0aea35774cbc4511f3ae9fb33) @@ -33,7 +33,7 @@ # Use cmd_update_hd_sw_config_record() set the changes back to firmware # This function requires an address for the excel report. Use the absolute address of your excel report like the # example below - hd.sw_configs.cmd_update_hd_sw_config_record('/home/fw/projects/HD_NV_Records/2022-06-07-HD-SW-CONFIGS-Record.xlsx') + hd.sw_configs.cmd_update_hd_sw_config_record('/home/fw/projects/HD_NV_Records/2022-09-19-HD-SW-CONFIGS-Record.xlsx') # Use this function to reset the configuration records to all be 0 #hd.sw_configs.cmd_reset_hd_sw_config_record() @@ -61,6 +61,22 @@ #hd.calibration_record.cmd_reset_hd_calibration_record() +def run_system_commands(): + # Comment and un-comment any of the functions that you would like to use or you can use your own scripts. + + # Use cmd_get_dg_system_record_report() to get the system record in an excel + # This function gets an address to locate the report there (i.e. /home/fw/projects/) + # It creates a folder called DG_NV_Records in the destination that is called + # If no address is provided, the default location is one folder above the dialin folder wherever it is installed + # in you computer. + #hd.system_record.cmd_get_hd_system_record_report() + + hd.system_record.cmd_set_hd_system_record_excel_to_fw('/home/fw/projects/HD_NV_Records/2022-09-26-HD-Record.xlsx') + + # For resetting the system record to benign values, use the function below + #hd.system_record.cmd_reset_hd_system_record() + + if __name__ == "__main__": hd = HD(log_level="DEBUG") @@ -73,3 +89,5 @@ # Comment this function if not needed #run_calibration_commands() + #run_system_commands() +