BYU-MicrostructureOfMaterials / OpenXY

Other
34 stars 14 forks source link

Failed to find EMEBSD #23

Open luqi-cloud opened 3 years ago

luqi-cloud commented 3 years ago

I want perform cross-correlation to calculate GND by OpenXY. I have installed the EMsoft. And I can run the EMEBSD on the windows command line. But the openxy can't find the EMEBSD at /.../EMsoft/bin/. image image

caldrews commented 3 years ago

Hi! I am not involved with OpenXY development but there is a simple workaround I use and has worked on two installs. Use at your own risk, but I wanted to try and help. EMsoft wants the install directory (EMsoftversion/EMdata/) not the bin directory (EMsoftversion/EMdata/bin/) listed in its config file if you follow their instructions, while OpenXY is looking for EMdata/bin/. Now, I only kind of understand what that second if ~exist loop does, but it appears to be looking within the bin directory for the EMEBSD.exe but the EMsoft config file points to the parent EMdata (or install) directory.

Simple fix to this is to make a backup copy of your GetEMsoftPath.m file just in case, then manually assign the EMsoftPath and EMdataPath variables to the correct directories wherever they are referenced in GetEMsoftPath. So for example on lines 3, 18, and 36 where EMsoftPath is set, I just set this to EMsoftPath='G:\EMSoft_OpenXY\EMsoft\bin'; and did the same for EMdataPath. Dynamic simulations can be set for me now and I never get the 'EMEBSD' command not found.