Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
public:user_software:cr-tools:datareader [2011-10-18 12:08] – Lars Bahren | public:user_software:cr-tools:datareader [2017-03-08 15:27] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
* [[# | * [[# | ||
* [[# | * [[# | ||
+ | * [[#Usage with C/C++ code]] | ||
==== Overview ==== | ==== Overview ==== | ||
Line 163: | Line 164: | ||
{{datareader_init_sequence.png? | {{datareader_init_sequence.png? | ||
- | ===== Usage ===== | + | ==== Usage with C/C++ code ==== |
- | ==== ... with C/C++ code ==== | + | - Creation of a new DataReader object: |
- | + | ||
- | === Usage within an application === | + | |
- | + | ||
- | <code cpp> | + | |
#include < | #include < | ||
#include < | #include < | ||
Line 176: | Line 173: | ||
LopesEvent *le = new LopesEvent (eventfile, | LopesEvent *le = new LopesEvent (eventfile, | ||
| | ||
- | | + | |
- | | + | |
dr = le; | dr = le; | ||
- | + | </ | |
- | // processing of the data | + | LopesEvent *le = new LopesEvent (eventfile, |
+ | | ||
+ | </ | ||
+ | - Reading in data for processing: <code cpp> | ||
for (int block(0); block< | for (int block(0); block< | ||
fft = dr-> | fft = dr-> | ||
} | } | ||
</ | </ | ||
- | + | - Data selection: Selection of frequency channels and antennas can be performed directly within the DataReader, e.g. <code cpp> | |
- | With the conversion arrays optional you can even use the simpler construction method | + | |
- | <code cpp> | + | |
- | LopesEvent *le = new LopesEvent (eventfile, | + | |
- | | + | |
- | </ | + | |
- | + | ||
- | === Data selection | + | |
- | + | ||
- | Selection of frequency channels and antennas can be performed directly within the DataReader, e.g. | + | |
- | <code cpp> | + | |
dr-> | dr-> | ||
- | </ | + | </ |
- | where '' | + | |
{{datareader_-_channel_selection.png? | {{datareader_-_channel_selection.png? | ||
- | |||
\\ | \\ | ||
---- | ---- | ||
<- [[public: | <- [[public: |