jeremypmeyers / Igor-Battery-Analysis

Set of procedures for battery data analysis using Igor Pro
0 stars 0 forks source link

Read sequence information from Arbin .sdu and/or Bitrode program file #6

Open jeremypmeyers opened 8 years ago

jeremypmeyers commented 8 years ago

Low priority for now, but might be nice to see if we could read in information from an Arbin .sdu or Bitrode program file to capture which items we need.

jeremypmeyers commented 8 years ago

Arbin

It appears that we can import a .sdu file as a single text wave using the delimited text wave.

We can then extract information about individual steps with the following code snippet. function sduanalysis() wave /t textwave0 variable i=0 do string sduline=textwave0[i] variable ss=strsearch(sduline,"[Schedule_Step",0) if (ss>=0) variable ss2=strsearch(sduline,"]",ss+14) print i,sduline[ss+14,ss2-1] endif i+=1 while (i<numpnts(textwave0)) end