The conversion from a local code page string to unicode changes the number of characters. This is not supported.
Error in funtion_selected (line 98)
Error in exploreFieldOdb (line 138)
Error in Script_Job1_A2M (line 63)
out=exploreFieldOdb(odb_name);
Thank you for your answer. I send my scripts with necessary files tomorrow.
Are you sure that you have administrator privileges in all your working directories? I cannot think of something else. Maybe it would be better to send me your Matlab scripts and other required files at gpapazafeiropoulos@yahoo.gr to give them a check for you.
I did so, but without success. "This error was detected while a MEX-file was running. If the MEX-file is not an official MathWorks function, please examine its source code for errors."
Then the problem does not lie with the encoding system. You have to ensure that the odb exists in the current folder. Type cd in the Matlab command window and check if the path that is returned is identical to the Abaqus working directory. If not, then you can use out=exploreFieldOdb(odb_name, Abaqus_working_directory); where Abaqus_working_directory is the Abaqus working directory (e.g. Abaqus_working_directory='C:\Temp' or something similar to this).
Not at all. It crashes while implementing "out=exploreFieldOdb(odb_name); "
It seems that Abaqus2Matlab cannot find the odb file in order to process it. Check if the odb file is placed in the current folder.
Yes, it works. The problem occurs when loading odb file.
Have you checked that the Abaqus analysis runs successfully between the statements "Simulation started" and "Simulation Finished"?
feature('locale') gives the encoding system 'windows-949'. then I changed it with slCharacterEncodind('windows-1252') and check it again with currentCharacterEncoding = slCharacterEncoding() . However, it won't solve the crash
>>Simulation Started
>>Simulation Finished
>>Obtaining desired output data by Abaqus2Matlab
>>Abaqus Error: The following file(s) could not be located: Job1_A2M.odb
>>Abaqus upgrade exited with error(s)
Hello,
Do you mean that your OS and Matlab have different encoding systems? Could you tell me the encoding systems of your OS and of Matlab? Can you explain your problem in more detail?
Best,
George
Your explanation seems to be not working when a locale encoding system is different from that of OS. This could cause matlab crash while a MEX-file was running. I tried all 5 of them, result is always the same.
Hello,
This issue is related to the Matlab encoding which is used from the compiled MEX function exploreFieldOdbPyScript.mexw64. Run the following command in Matlab:
currentCharacterEncoding = slCharacterEncoding()
and see what it gives you. It should give one of the following:
1) 'US-ASCII'
2) 'Windows-1252'
3) 'ISO-8859-1'
4) 'Shift_JIS'
5) 'UTF-8'
These are the possible MATLAB character set encodings. In my PC it gives 'windows-1252' and the function exploreFieldOdb.m runs properly. You can change the Matlab encoding by executing:
slCharacterEncoding(encoding)
where encoding is one of the above five encoding schemes. In any case please let me know if this fixes your problem.
Best,
George