Index: tests/dg_nvm_scripts.py =================================================================== diff -u --- tests/dg_nvm_scripts.py (revision 0) +++ tests/dg_nvm_scripts.py (revision be8a844a39195fc593bcf79b1c1b2b3add33436a) @@ -0,0 +1,23 @@ +from dialin import DG + +if __name__ == "__main__": + + dg = DG(log_level="DEBUG") + + # NOTE: For further details, please refer to 'Instructions to Calibrate a Device Using the Calibration Report' in + # the development section of the DevOps OneNote file + + # 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_calibration_record_report() to get the calibration 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.calibration_record.cmd_get_dg_calibration_record_report() + + # 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-02-10-DG-Record.xlsx') + Index: tests/hd_nvm_scripts.py =================================================================== diff -u --- tests/hd_nvm_scripts.py (revision 0) +++ tests/hd_nvm_scripts.py (revision be8a844a39195fc593bcf79b1c1b2b3add33436a) @@ -0,0 +1,23 @@ +from dialin import HD + +if __name__ == "__main__": + + hd = HD(log_level="DEBUG") + + # NOTE: For further details, please refer to 'Instructions to Change the Software Configurations Dynamically' in + # the development section of the DevOps OneNote file + + # Comment and un-comment any of the functions that you would like to use or you can use your own scripts. + + # Use cmd_get_hd_sw_config_record() to get the software configurations record in an excel + # This function gets an address to locate the report there (i.e. /home/fw/projects/) + # It creates a folder called HD_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.sw_configs.cmd_get_hd_sw_config_record() + + # 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-02-08-HD-SW-CONFIGS-Record.xlsx') + Index: tests/peter/test_dg_records.py =================================================================== diff -u -r3e0a859c326e8d99732e055a6ec42fab4ebbba3a -rbe8a844a39195fc593bcf79b1c1b2b3add33436a --- tests/peter/test_dg_records.py (.../test_dg_records.py) (revision 3e0a859c326e8d99732e055a6ec42fab4ebbba3a) +++ tests/peter/test_dg_records.py (.../test_dg_records.py) (revision be8a844a39195fc593bcf79b1c1b2b3add33436a) @@ -352,7 +352,7 @@ dg = DG(log_level="DEBUG") if dg.cmd_log_in_to_dg(): dg.calibration_record.cmd_get_dg_calibration_record_report() - dg.calibration_record.cmd_set_dg_calibration_excel_to_fw('/home/fw/projects/DG_NV_Records/2022-02-09-DG-Record.xlsx') + #dg.calibration_record.cmd_set_dg_calibration_excel_to_fw('/home/fw/projects/DG_NV_Records/2022-02-10-DG-Record.xlsx') if __name__ == "__main__":