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
function


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3836
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 2989f72e
...@@ -342,6 +342,11 @@ namespace datrw { ...@@ -342,6 +342,11 @@ namespace datrw {
"set WID2 values"); "set WID2 values");
Mheader.ns=static_cast<unsigned short>(wid2.nsamples); Mheader.ns=static_cast<unsigned short>(wid2.nsamples);
double scaleddt=1.e6*wid2.dt; 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), DATRW_assert((scaleddt>0 && scaleddt < USHRT_MAX),
"ERROR (SUheader::set): " "ERROR (SUheader::set): "
"sampling interval cannot be represented by " "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