Skip to content

Convert the data recorded by SHIMADZU(.txt) to HOMER2 readable format (.nirs)

License

Notifications You must be signed in to change notification settings

HaiyanKong/tutorial_fNIRStxt2nirs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert the data recorded by SHIMADZU(.txt) to HOMER2 readable format (.nirs)

This repository is licensed under MIT.

TOC

Convert tutorial

Step1 Prepare the followings

Step2: Set the path

Set homer2 in the path of MATLAB2013b.

image

Step3: Open the SDgui

  • Set your work path at D:\toolbox\homer2\PACKAGES\SDgui (change the path in the computer)

  • Run SDgui.m in MATLAB2013b.

image

  • Next, a prompt will appear for you to select a file. Simply click "Cancel" to proceed.

image

  • Then you will see this.

image

Step4: Create the SD File

  • Base on your optodes arrangement to fill in the blank in the sources and detectors.
    • Note: z is always 0.

image

  • When you complete setting the sources and detectors , then click the number, you will get the channel.

image

image

  • After setting channels, and you need to fill in the “Lambda” based on your data acquiring device.

image

  • Provide a name for the SD file, and let's call it "test.SD," including the ".SD" suffix.

image

  • Click the ''Save", and in the new window, you need to choose the "units", here is "mm"

image

  • Your SD file is saved successfully ! Just close the SDgui.

image

Step5: Convert!

  • Put the data need to convert (.txt), 3 files from Shimadzu2nirs.zip and test.SD created in step 4 together, and set the MABLAB work path to them.

image

  • Run the Shimadzu2nirs.m, then you will get the .nirs data file !

image

image

The common error

If the optodes arrangement of your experiment is as follows:

image

Then your SD file arrangement must correspond one-to-one:

image

If the arrangements are totally inconsistent, for example:

image

The error will be:

image

If the arrangements are consistent but the channel numbers in the SD file are inconsistent, for example:

image

The error will be:

image

About

Convert the data recorded by SHIMADZU(.txt) to HOMER2 readable format (.nirs)

Topics

Resources

License

Stars

Watchers

Forks