save_duty_cycle#

MotorCAD.save_duty_cycle(file_path)#

Save the duty cycle to a DAT file.

The duty cycle should be saved to a file with a DAT extension to ensure that it can be correctly loaded into a MOT file.

Parameters:
file_pathstr

Filepath for saving the DAT file. The default directory is the one with the MOT file. To use a different directory, specify the absolute filepath. Use the r'filepath' syntax to force Python to ignore special characters.