CIC-methods / FID-A

Toolbox for simulation and processing of in-vivo magnetic resonance spectroscopy (MRS) data
BSD 3-Clause "New" or "Revised" License
80 stars 72 forks source link

Unrecognized function or variable 'rdb_hdr_dab_stop_rcv' #103

Open weberam2 opened 1 year ago

weberam2 commented 1 year ago

I get this when trying to replicate the example analysis of the GE Press data...

`>> [out,out_w]=run_pressproc_GEauto('P17920.7'); Unrecognized function or variable 'rdb_hdr_dab_stop_rcv'.

Error in GELoad (line 263) hdr_value = fread(fid, rdb_hdr_dab_stop_rcv, 'integer*2');

Error in io_loadspec_GE (line 29) [GEout,GEout_w,GEhdr]=GELoad(filename);

Error in run_pressproc_GEauto (line 54) [raw,raww]=io_loadspec_GE(filestring,1); ` I think that may be an Osprey code? Should I have Osprey installed?

jamienear commented 1 year ago

Hi Alexander,

I just tried on my side to run the same function using the same data (the example GE PRESS data found in {FID-A_DIR}/exampleData/GE/sample01_press/press/P17920.7).

On my side, the function runs to completion without any issue.

I’m wondering if you have a different version of GELoad.m on your path? If you have Gannet or Osprey installed, it is possible that one of those packages also has a function named GELoad.m which is causing an issue.

From the MATLAB command line, can you please type the following:

which GELoad

This will tell you which GELoad function you are using. If it is not pointing to "{FID-A_DIR}/inputOutput/gannetTools/GELoad.m”, then matlab may be looking at the wrong version of GELoad. One solution to this would be to remove the unwanted version of GELoad from your MATLAB path.

Hope this helps.

Best wishes, Jamie

On Nov 14, 2022, at 3:24 PM, Alexander Weber @.**@.>> wrote:

I get this when trying to replicate the example analysis of the GE Press data...

`>> [out,out_w]=run_pressproc_GEauto('P17920.7'); Unrecognized function or variable 'rdb_hdr_dab_stop_rcv'.

Error in GELoad (line 263) hdr_value = fread(fid, rdb_hdr_dab_stop_rcv, 'integer*2');

Error in io_loadspec_GE (line 29) [GEout,GEout_w,GEhdr]=GELoad(filename);

Error in run_pressproc_GEauto (line 54) [raw,raww]=io_loadspec_GE(filestring,1); ` I think that may be an Osprey code? Should I have Osprey installed?

— Reply to this email directly, view it on GitHubhttps://github.com/CIC-methods/FID-A/issues/103, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACHTOQL6ZGBMHSTWTMCPZ4DWIKNWRANCNFSM6AAAAAASAGQ2Y4. You are receiving this because you are subscribed to this thread.Message ID: @.***>

weberam2 commented 1 year ago

Hey Jamie, You're totally right. It must have been pointing to another GELoad.m When I started Matlab up today and added the FID-A path it worked with no issues. Cheers, Alex W.

hcarlson2431 commented 1 year ago

Hello Dr. Near, I am having the same error message (Matlab 2021b) when trying to run this command from the FID-A user manual: [out,out_w]=run_pressproc_GEauto('P17920.7'); using the GE sample data provided with FID-A.

I have removed Osprey from my Matlab path and which GELoad correctly returns the FID-A version of GELoad. I get the same error when trying to run the megapress version.

Do you have any other ideas as to how to fix this error?

Thank-you Helen

error message:

Unrecognized function or variable 'rdb_hdr_dab_stop_rcv'.

Error in GELoad (line 263) hdr_value = fread(fid, rdb_hdr_dab_stop_rcv, 'integer*2');

Error in io_loadspec_GE (line 29) [GEout,GEout_w,GEhdr]=GELoad(filename);

Error in run_pressproc_GEauto (line 54) [raw,raww]=io_loadspec_GE(filestring,1);