Index: tests/dg_nvm_scripts.py =================================================================== diff -u -r7ea4b936cef531b2cde9053ae58b7119a3bf0e6c -rf822b55ab067aba716dc07f7fa3f53ef9cb2c9e3 --- tests/dg_nvm_scripts.py (.../dg_nvm_scripts.py) (revision 7ea4b936cef531b2cde9053ae58b7119a3bf0e6c) +++ tests/dg_nvm_scripts.py (.../dg_nvm_scripts.py) (revision f822b55ab067aba716dc07f7fa3f53ef9cb2c9e3) @@ -32,7 +32,7 @@ # Use cmd_set_dg_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 - dg.sw_configs.cmd_update_dg_sw_config_record('/home/fw/projects/DG_NV_Records/2022-04-20-DG-SW-CONFIGS-Record.xlsx') + dg.sw_configs.cmd_update_dg_sw_config_record('/home/fw/projects/DG_NV_Records/2022-06-07-DG-SW-CONFIGS-Record.xlsx') # Use this function to reset the configuration records to all be 0 #dg.sw_configs.cmd_reset_dg_sw_config_record() @@ -54,22 +54,41 @@ # Use cmd_set_dg_calibration_excel_to_fw() 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 - #dg.calibration_record.cmd_set_dg_calibration_excel_to_fw('/home/fw/projects/DG_NV_Records/2022-06-19-DG-Record.xlsx') + dg.calibration_record.cmd_set_dg_calibration_excel_to_fw('/home/fw/projects/DG_NV_Records/2022-06-20-DG-Record.xlsx') # For resetting the calibration record to benign values, use the function below #dg.calibration_record.cmd_reset_dg_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. + #dg.system_record.cmd_get_dg_system_record_report() + + dg.system_record.cmd_set_dg_system_record_excel_to_fw('/home/fw/projects/DG_NV_Records/2022-06-22-DG-Record.xlsx') + + # For resetting the system record to benign values, use the function below + #dg.system_record.cmd_reset_dg_system_record() + + if __name__ == "__main__": dg = DG(log_level="DEBUG") if dg.cmd_log_in_to_dg(): - run_sw_configs_commands() + #run_sw_configs_commands() #run_calibration_commands() + run_system_commands() + #dg.usage_record.cmd_get_dg_usage_info_record() #dg.usage_record.cmd_update_dg_usage_info_record('/home/fw/projects/DG_NV_Records/2022-04-22-DG-Record.xlsx')