help > Reading data from Shimadzu nirs device
Showing 1-7 of 7 posts
Display:
Results per page:
Aug 31, 2017  05:08 AM | BAHAREH BEHBOODI - Ms.
Reading data from Shimadzu nirs device
Dear Sungho,

First of all, thanks for your previous help in the topic titled as "error in the Specify 1st level - hemodynamic". Now, I have no more problem in that regard.

As I am using Shimadzu, LABNIRS device, I would like to process my data with your toolbox. So, I was wondering if it would be possible to read Shimadzu data with your toolbox or convert this kind of data to a format which is compatible with your device.

Thanks for your help and your time in advance.

Bests,
Bahareh
Sep 26, 2017  08:09 PM | Sagi Jaffe-Dax
RE: Reading data from Shimadzu nirs device
Hi Bahareh,

Shimadzu LABNIRS already converts light intensity to HbO and HbR concentrations, so you can skip the "Convert" step in spm_fnirs.

Here's a simple function that reads Shimadzu TXT output files and saves the data in NIRS.mat format for spm_fnirs. You can then use this file for the "Spatial" step and onwards.

Let me know if this works for you.

Sagi
 
Originally posted by BAHAREH BEHBOODI:
Dear Sungho,

First of all, thanks for your previous help in the topic titled as "error in the Specify 1st level - hemodynamic". Now, I have no more problem in that regard.

As I am using Shimadzu, LABNIRS device, I would like to process my data with your toolbox. So, I was wondering if it would be possible to read Shimadzu data with your toolbox or convert this kind of data to a format which is compatible with your device.

Thanks for your help and your time in advance.

Bests,
Bahareh
Attachment: txt2nirs.m
Oct 11, 2017  08:10 AM | BAHAREH BEHBOODI - Ms.
RE: Reading data from Shimadzu nirs device
Dear Sagi,

Thanks for your kind help.
Yes. It perfectly worked for me. However, I had to change two lines of your code in order to save my data.
I changed these two lines:
P.fname.nirs = [pathName,'/NIRS_',prevName,'.mat'];
P.fname.pos = [pathName,'/POS_',prevName,'.mat'];

to:
P.fname.nirs = [pathName,'NIRS_',prevName,'.mat'];
P.fname.pos = [pathName,'POS_',prevName,'.mat'];

Thank you.

Bests,
Bahareh
Mar 21, 2018  08:03 PM | Geoff Green - The Ohio State University
RE: Reading data from Shimadzu nirs device
Whenever I try to run the text2nirs function, I reicive this error:
__________________________________________________________________________________________________
Error using ones
Size inputs must be integers.

Error in txt2nirs (line 53)
P.mask = ones(1,P.nch);
___________________________________________________________________________________________________

Any idea what causes this, or how to solve it?

Best,

Geoff
Mar 21, 2018  08:03 PM | Sagi Jaffe-Dax
RE: Reading data from Shimadzu nirs device
Could you upload a sample of your data file that you're trying to convert?
Mar 21, 2018  08:03 PM | Geoff Green - The Ohio State University
RE: Reading data from Shimadzu nirs device
Definitely.
Jan 20, 2020  03:01 PM | Myrto Sklivanioti - Karolinska Institute
RE: Reading data from Shimadzu nirs device
Hello!

I am using Biopac fNIRS and facing similar problems as Wiebke (Oct 27, 2017) and Bahareh.
The output I have of my ' raw' data also already converts the light intensity values to HbO and HHb concentrations. How can Biopac data be read?
(attaching a sample file)
Many thanks in advance!
Regards
Myrto