Home > brain, nirs > Updated loadHitachiText.m

Updated loadHitachiText.m

March 16th, 2017

Some labs have been using our script readHitachiData.m to load NIRS data from Hitachi ETG machines. We recently found that some output MES data contains abnormal timestamp. For example, the timestamp should be like


But for some rows (although rarely), the time is like (note the ending character)


This will cause our script to choke. We just fixed this issue, and you need to replace loadHitachiText.m. The new version can be found here.

Author: Xu Cui Categories: brain, nirs Tags:
Try Stork, a research tool we developed

Stork is a publication alert app developed by us at Stanford. As a researcher we often forget to follow up important publications - and it's practically impossible to search many keywords or researchers' names everyday. Stork can help us to search everyday and notifies us when there are new publications/grants. How Stork helped me?

About the author:

Xu Cui is a human brain research scientist in Stanford University. He lives in the Bay Area in the United States. He is also the founder of Stork (smart publication alert app), PaperBox and BizGenius.


He was born in He'nan province, China. He received education in Beijing University(BS), University of Tennessee (Knoxville) (MS), Baylor College of Medicine (PhD) and Stanford University (PostDoc). Read more ...
  1. Pan
    April 1st, 2017 at 07:00 | #1

    I found that readHitachiData.m can read 2 .csv from two patches of 4×4 and 3×5 configurations,but it seems something wrong when we put in 2 .csv from patches of 4×4 (as the first input) and 3×5 (as the second input) configurations simultaneously. For example, “[hbo,hbr,mark] = readHitachData({’file1_4×4.csv’,'file2_3×5.csv’});” You will find that the channel number is wrong (48?).I guess that the channel number of 4×4 configurations is 24,but the the channel number of 3×5 configurations is 22, and the structure were not updated. I insert an additional script in the line 86. I’m wondering if it is the case.

    line 84——nirs_data.oxyData = [nirs_data.oxyData hbodata];
    line 85——nirs_data.dxyData = [nirs_data.dxyData hbdata];
    line 86——clear hbodata hbdata;%%% Am I right?
    line 87——end

  2. April 1st, 2017 at 10:55 | #2

    readHitachiData can’t read files from two different configuration. You may call each file separately.