How is the DataReader block supposed to be configured to read in float data? I have used a sig_source and the DataWriter block to successfully write to a file. Since I cannot find a description of the DataReader block, my expectation is that it would then be able to read a file generated by the DataWriter block. However, when I attempt to read the file I do not see any data generated. Here is the procedure I followed:
- Start DataWriter
- Start sig_source
- Verify output to file (Result = SUCCESS)
- Turn everything off
- Start DataReader (pointing to file created by DataWriter)
- Monitor output port (Result = No data present)
I have also tried attaching a block to the output of the DataReader in case RedHawk requires a sink before data flows from a source. This did not work either.
EDIT: I performed an additional experiment to test determine if the DataReader loop parameter was in fact the issue. In this experiment I connected the DataReader (pointing to the original file) to a DataWriter (pointing to a new file). The component properties for both blocks were per Youssef's post. I was expecting this to generate a copy of the file. The results were strange. The new file was only 65536 bytes while the original was much larger. It does appear to match on those 65536 bytes. Further, if I delete the new file and try to rerun the blocks there is no output (i.e. the file is not created again). In order to generate the new file a second time, I have to delete the DataReader block from the Chalkboard and reload it.