[Homer-users] fNIRS, BIOPAC to Homer2 file conversion

Neika Sharifian nsharif at ncsu.edu
Tue Jan 28 11:41:33 EST 2014
Search archives:

Hello!
I had a question about running the script. I keep getting this error
message when I try and run my own data file in the matlab script and was
wondering if you could help me figure out what's going wrong.

Here is the error message:
Error using fgets
Invalid file identifier.  Use fopen to
generate a valid file identifier.

Error in fgetl (line 34)
[tline,lt] = fgets(fid);

Error in create_d (line 8)
    temp = fgetl(fid); %reads in one line
    of the file at a time

Error in test_all (line 9)
[t d aux] = create_d (file);



I have also attached a screenshot of the script and the matlab program and
a copy of one of my data files. Any advice would be appreciated!

Thank you,
Neika Sharifian



On Fri, Jan 24, 2014 at 8:45 AM, Kreplin, Ute <U.Kreplin at 2011.ljmu.ac.uk>wrote:

> Hi Jared
>
> thanks for emailing me. The script doesn't work because I forgot to
> include test4 into the zip folder (oops).
>
> I'm just working on including it in the zip file so please check back if
> you get a version without it, this should be sorted soon.
>
> I atteched test4 to this email for you if you don't want to wait ;-)
>
> Ute
>
> Ute Kreplin
> PhD Candidate
> Liverpool John Moores University
> Rm 312 Tom Reilly Building
> Byrom Street
> Liverpool, L3 3AF
> U.Kreplin at 2011.ljmu.ac.uk
>
> ________________________________________
> From: Dempsey, Jared [jared.dempsey at ttu.edu]
> Sent: 24 January 2014 16:22
> To: Kreplin, Ute
> Subject: RE: fNIRS, BIOPAC to Homer2 file conversion
>
> Ute:
> Thank you so much for taking the time to create this.  It will help us all
> quite a bit.  I have a quick question.  When I follow your directions I
> come up the following error:
> Error using load
> Unable to read file 'test4': no such file or directory.
>
> Error in test_all (line 5)
> load test4
>
> Should this have been changed in the script?
>
> Best,
>
> Jared P. Dempsey, Ph.D.
> Addictive Disorders and Recovery Studies Program
> Department of Community, Family, and Addiction Services
> Texas Tech University
> Email: jared.dempsey at ttu.edu
> Office: (806) 742-2891 x 267
> Cell: (405) 269-3440
> Skype: jareddempsey
>
>
> -----Original Message-----
> From: homer-users-bounces at nmr.mgh.harvard.edu [mailto:
> homer-users-bounces at nmr.mgh.harvard.edu] On Behalf Of Kreplin, Ute
> Sent: Friday, January 24, 2014 9:20 AM
> To: homer-users at nmr.mgh.harvard.edu
> Subject: [Homer-users] fNIRS, BIOPAC to Homer2 file conversion
>
> Hello all
>
>
>
> here is the link to the page where you can download a zip folder with a
> bunch of matlab scripts that convert the BIOPAC fNIRS file to Homer2 files.
> You will need matlab to run it. It might also not be perfect so feel free
> to improve it. I created the scripts about a year ago and have not worked
> with them since, I can therefore not really give much advice about what to
> do if it doesn't work. I hope though that it will help all of you who have
> been looking for something like this
>
>
>
> http://www.physiologicalcomputing.net/?page_id=2621
>
>
>
> Good luck with all your work
>
>
>
> Ute
>
>
>
> p.s. Re David Boas, please feel free to include a link to the scripts on
> the physiologicalcomputing.net page on your website. I will let you know
> should I upload the files to nitrc.org in the future
>
>
>
> Ute Kreplin
> PhD Candidate
> Liverpool John Moores University
> Rm 312 Tom Reilly Building
> Byrom Street
> Liverpool, L3 3AF
> U.Kreplin at 2011.ljmu.ac.uk
> ________________________________
>
> ________________________________
> Important Notice: the information in this email and any attachments is for
> the sole use of the intended recipient(s). If you are not an intended
> recipient, or a person responsible for delivering it to an intended
> recipient, you should delete it from your system immediately without
> disclosing its contents elsewhere and advise the sender by returning the
> email or by telephoning a number contained in the body of the email. No
> responsibility is accepted for loss or damage arising from viruses or
> changes made to this message after it was sent. The views contained in this
> email are those of the author and not necessarily those of Liverpool John
> Moores University.
>
> _______________________________________________
> Homer-users mailing list
> Homer-users at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/homer-users
>
>
> The information in this e-mail is intended only for the person to whom it
> is addressed. If you believe this e-mail was sent to you in error and the
> e-mail contains patient information, please contact the Partners Compliance
> HelpLine at http://www.partners.org/complianceline . If the e-mail was
> sent to you in error but does not contain patient information, please
> contact the sender and properly dispose of the e-mail.
>
> _______________________________________________
> Homer-users mailing list
> Homer-users at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/homer-users
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/homer-users/attachments/20140128/0089a8cf/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matlab screenshot.PNG
Type: image/png
Size: 145829 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/homer-users/attachments/20140128/0089a8cf/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BS_758_1_10151239.nir.oxy
Type: application/octet-stream
Size: 723801 bytes
Desc: not available
Url : http://mail.nmr.mgh.harvard.edu/pipermail/homer-users/attachments/20140128/0089a8cf/attachment.obj 


More information about the Homer-users mailing list