export_results#

MotorCAD.export_results(solution_type, file_path)#

Export results from a solution to a CSV file.

Parameters:
solution_typestr

Type of the solution. Options are 'SteadyState', 'Transient', 'EMagnetic', and 'Lab'.

file_pathstr

Absolute filepath for the CSV file. The default is the Windows directory on the C: drive. The filepath must include the name of the file, with a CSV extension. Use the r'filepath' syntax to force Python to ignore special characters.