Obtaining B-scan from exported A-scan data Answered

The MATLAB code for converting the A-scans to a single B-scan in the CFRP Delamination example is not working. I have tried troubleshooting it on my own with little success.

Help troubleshooting would be greatly appreciated!

Here are the error messages a receive:

Error using fread
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in read_history (line 25)
OpenBytes = fread(Fid,1,OCForm);

Error in BscanPP (line 15)
Hist = read_history([folder '\' int2str(i) '\' histname]);

7 comments

  • Hello Allyson,

     

    You may have to run the 20 simulations in parametric sweep yourself by following the instructions given in the link given below:

    https://support.onscale.com/hc/en-us/articles/360002625558-CFRP-Laminate-with-Delamination-B-Scan-2D

    After this you will have to download the results of all 20 simulations into a directory and put that folder name in the piece of code that says :

    folder = 'CFRP_Laminate-20190926-165029';

    This line is at the beginning of the MATLAB code where you have to put your own folder name which may have a different date and time depending on when you solved it.

    I actually ran this model yesterday by following all the instructions and it worked for me. I think you have to make sure that you have all the folders from "1" to "20" inside the folder "CFRP_Laminate-YYYYMMDD-HHMMSS"

     

    Thanks

    Robin James

     

    Comment actions Permalink
  • Hello Robin,

    I followed those exact steps, however, I'm still getting the error messages shown above. Any idea how to fix the issue I'm having?

    Thanks,

    Allyson

    Comment actions Permalink
  • Hello Allyson,

     

    Let me see if I can send you some screenshots that can clarify your confusion.

     

    Thanks

    Robin

    Comment actions Permalink
  • Hi Robin,

    Here are my screenshots. I'm familiar with MATLAB and believe I have followed the steps correctly. Please let me know if you find an issue.

    Thanks,

    Allyson

    Comment actions Permalink
  • Hello Allyson,

    I think I understood your error.

    Please put the 2 Matlab files (code and function) outside into the "Project" folder. Right now these 2 Matlab files are inside the "CFRP_Laminate-20200930-212309" folder and therefore are not able to find the folder "CFRP_Laminate-20200930-212309".

    Please let me know if this fixes your problem.

    Thanks
    Robin

    Comment actions Permalink
  • Hi again,

    Thank you so much!! That fixed it! Such a silly issue, I should've caught it myself.

    Your help is much appreciated!

    Allyson

    Comment actions Permalink
  • Hello Allyson,

    Your welcome. I am also just learning how to use OnScale. I hope I can learn more advanced stuff.

    Glad I could help

    Thanks
    Robin

    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post