BYU-MicrostructureOfMaterials / OpenXY

Other
35 stars 14 forks source link

Material File not found #20

Closed Fred-Ad closed 4 years ago

Fred-Ad commented 4 years ago

Hi, and thanks for sharing this work

When I try to follow the tutorial, I get an error : 'material file not found' I checked : the file I selected is in the Materials folder. It doesn't work neither with the use scan file (using the .ang provided). I use R2019a.

Thank you

dtfullwood commented 4 years ago

It is looking for the data file that gives material lattice parameters etc. what material is it? Are you telling it to use the material designated by the scan file or selecting from the options in openXY? Selecting an option in openXY might be safer if it’s a single material type and openXY has a relevant material file. David

David Fullwood Mechanical Engineering Brigham Young University Provo, Utah 84602 801 422 6316 dfullwood@byu.edu

On Feb 10, 2020, at 8:36 AM, Fred-Ad notifications@github.com wrote:



Hi, and thanks for sharing this work

When I try to follow the tutorial, I get an error : 'material file not found' I checked : the file I selected is in the Materials folder. It doesn't work neither with the use scan file (using the .ang provided). I use R2019a.

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/BYU-MicrostructureOfMaterials/OpenXY/issues/20?email_source=notifications&email_token=ACUNA3JGQ6DBAPSSZMSNJT3RCFX7BA5CNFSM4KSQMCA2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IMJH2WA, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACUNA3KNGUFPWMHEN3PMFFTRCFX7BANCNFSM4KSQMCAQ.

Fred-Ad commented 4 years ago

Hi,

I use the tutorial . ang file witch material is ferrite. However, it dosesn't work if I choose 'scan file', nor 'iron-alpha' in the openXY option. I have the same warning window : 'material file not found' when I try to make a pattern center calibration, or if I try to run the cross-correlation. I just don't understand as I checked that the iron-alpha.txt exists in the openXY material folder.

In Matlab the error is

Reference to non-existent field 'Fhkl'.

Error in GetDefGradientTensor (line 85)
paramspat={xstar;ystar;zstar;pixsize;Av;sampletilt;elevang;Material.Fhkl;Material.dhkl;Material.hkl};

Error in TestSettingsPntbyPnt (line 94)
            [F, g, U, SSE] = GetDefGradientTensor(ind,Settings,Settings.Phase{ind});

Error in MainGUI>TestButton_Callback (line 909)
    TestSettingsPntbyPnt(handles.Settings,handles.MainGUI);

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in MainGUI (line 42)
    gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)MainGUI('TestButton_Callback',hObject,eventdata,guidata(hObject)) 
Error while evaluating UIControl Callback.

Thanks for answering so quickly !

Fred-Ad commented 4 years ago

Solved !!! I was working in the Matlab folder, not in the OpenXY folder !! My fault

Thank you for your advices !!