| 1 |
|
| 2 |
:Begin: |
| 3 |
:Function: sload |
| 4 |
:Pattern: Sload[fn_String, i_List] |
| 5 |
:Arguments: {fn, i} |
| 6 |
:ArgumentTypes: {String, IntegerList} |
| 7 |
:ReturnType: Manual |
| 8 |
:End: |
| 9 |
|
| 10 |
:Evaluate: Sload::usage = "Sload[filename, {ne,ng,ns}] load data sweeps into mathematica workspace. |
| 11 |
ne, ng, and ns are the number of the experiment, the number of the series from this experiment and |
| 12 |
the number of the sweep from this series sweep, respectivly. 0 can be used as wildcard to select all |
| 13 |
sweeps.\nExamples: data = Sload(\"abc.dat\",{1,5,0}) selects all sweeps from 5th series of first experiment; {0,0,0} selects |
| 14 |
all sweeps from file \"abc.dat\".\n |
| 15 |
The output ist a list of three elements, data[[1]] contains the 2-dim array of data samples, |
| 16 |
data[[2]] contains the time axis in seconds, and data[[3]] contains the header information in serialized JSON string. |
| 17 |
It can be converted with ImportString[data[[3]], \"JSON\"]. \n |
| 18 |
\nNOTE: If sweeps were sampled with different sampling rates, all data is converted to the |
| 19 |
least common multiple of the various sampling rates. (e.g. loading a 20kHz and a 25kHz sweep simultaneously, both sweeps are converted to 100kHz). |
| 20 |
\n\nCompiled on __DATE__" |
| 21 |
|
| 22 |
:Evaluate: Sload::failed="Failed to load file" |
| 23 |
|
| 24 |
|
| 25 |
:Begin: |
| 26 |
:Function: uload |
| 27 |
:Pattern: Uload[fn_String, i_List] |
| 28 |
:Arguments: {fn, i} |
| 29 |
:ArgumentTypes: {String, IntegerList} |
| 30 |
:ReturnType: Manual |
| 31 |
:End: |
| 32 |
|
| 33 |
:Evaluate: Uload::usage = "Uload[filename, {ne,ng,ns}] load data sweeps into mathematica workspace. |
| 34 |
uload is very similar to sload except that it returns the raw digital values without scaling |
| 35 |
it's the \"un-calibrated\" load function.\n |
| 36 |
ne, ng, and ns are the number of the experiment, the number of the series from this experiment and |
| 37 |
the number of the sweep from this series sweep, respectivly. 0 can be used as wildcard to select all |
| 38 |
sweeps.\nExamples: data = Uload(\"abc.dat\",{1,5,0}) selects all sweeps from 5th series of first experiment; {0,0,0} selects |
| 39 |
all sweeps from file \"abc.dat\".\n |
| 40 |
The output ist a list of three elements, data[[1]] contains the 2-dim array of data samples, |
| 41 |
data[[2]] contains the time axis in seconds, and data[[3]] contains the header information in serialized JSON string. |
| 42 |
It can be converted with ImportString[data[[3]], \"JSON\"]. \n |
| 43 |
\nNOTE: If sweeps were sampled with different sampling rates, all data is converted to the |
| 44 |
least common multiple of the various sampling rates. (e.g. loading a 20kHz and a 25kHz sweep simultaneously, both sweeps are converted to 100kHz). |
| 45 |
\n\nCompiled on __DATE__" |
| 46 |
|
| 47 |
:Evaluate: Uload::failed="Failed to load file" |
| 48 |
|