The system cannot find path specified error

22 views (last 30 days)
I currently try to translate Simulink file to Typhoon HIL. I have installed simulink converter.The problem arise when i try to convert using convert to tse block it resulting the following response: the system cannot find the path specified. Can you guys help me to figure out where the problem is?

Answers (1)

Sai Sumanth Korthiwada
Sai Sumanth Korthiwada on 28 Mar 2023
Hi Abdul,
I understand that while converting Simulink file to Typhoon HIL using 'convert to tse’ block, it is resulting the response: 'the system cannot find the path specified'
Please type the command in MATLAB Command prompt:
exist(source,'file')
to see if the file exists. Also, please check if your source filename has proper '/' or '\'.
If the file exists, please check if the destination directory exists:
[p,f]=fileparts(destination);
exist(p,'dir');
You might have used 'mkdir' to create the destination folder in a wrong way, and the destination folder may not exist. Please verify the source and destination paths.
Hope this helps!
  3 Comments
Sai Sumanth Korthiwada
Sai Sumanth Korthiwada on 30 Mar 2023
Hi Abdul,
Looking at the error message, there might be a variable which is 'None Type' and used in a for/while loop. Please place breakpoints in the code and use debugger available in the Toolstrip to verify if that variable contains any value (through workspace) when the execution is in that line where the error is encountered.
If it does not resolve your issue, please provide the code, and complete error message for better understanding.
Hope this helps!
MOHAMADAMIN
MOHAMADAMIN on 7 Nov 2023
Hi,
I have tried to convert matlab simulink of a rectifire model that has been shown in a following link by HIL company, and I have gotten the same result as "TypeError: 'NoneType' object is not iterable".
Please find the link below regarding the HIL Tutorial about using TSE in matlab, and following thoes link that mentioned in the Tutorial you can download the codes as well.
Really appreciate your assisstance in advance.
I am looking forward to hearing back from you.
The link for Code: https://github.com/typhoon-hil/model-converter/tree/master/component_libraries/Simulink
Tutorial Link: https://www.youtube.com/watch?v=53Vd1rcddbc

Sign in to comment.

Categories

Find more on Simulink in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!