Commit be2379bb authored by Martin Schaefer's avatar Martin Schaefer Committed by thomas.forbriger
Browse files

added debug output

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.
error condition in SU output is triggered is sampling frequency cannot
be represented when passing dt via WID2 line in PrepWID2 in libfapidxx
and libsffu
Problem must be fixed in libfapidxx by providing specifc PrepWID2

SVN Path:
SVN Revision: 3836
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 2989f72e
......@@ -342,6 +342,11 @@ namespace datrw {
"set WID2 values");
Mheader.ns=static_cast<unsigned short>(wid2.nsamples);
double scaleddt=1.e6*wid2.dt;
if (!(scaleddt>0 && scaleddt < USHRT_MAX))
std::cerr << "received sampling interval: "
<< scaleddt << " us" << std::endl;
DATRW_assert((scaleddt>0 && scaleddt < USHRT_MAX),
"ERROR (SUheader::set): "
"sampling interval cannot be represented by "
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment