- Manually create the "Data" directory. Navigate to "Workflows\Fault_Sweep" and create the directory "Data" here.
- Modify the code in "sm_pump_triplex_DOEdata_tocsv.m" file. Edit the code at line number 8 to include information about the path. pwd will evaluate to the present working directory (where "Triplex_Pump.prj" and other directories are stored). So, the full path will be something like "C:\Users\...\Simscape-Triplex-Pump-22.1.2.5\Workflows\Fault_Sweep\Data".
- Modify the code in "sm_pump_triplex_DOEdata_tocsv.m" file at line 8 to replace the "exist" function with "isfolder" function. "isfolder" search for files or folders only on the specified path or in the current folder. Refer to these for more information on "isfolder":