@@ -157,7 +157,7 @@ void SiglentBINImportFilter::OnFileNameChanged()
157
157
string name = string (" C" ) + to_string (i+1 );
158
158
AddStream (Unit (Unit::UNIT_VOLTS), name, Stream::STREAM_TYPE_ANALOG);
159
159
auto wfm = new UniformAnalogWaveform;
160
- wfm->m_timescale = FS_PER_SECOND / wh.s_rate ;
160
+ wfm->m_timescale = round ( FS_PER_SECOND / wh.s_rate ) ;
161
161
wfm->m_startTimestamp = timestamp * FS_PER_SECOND;
162
162
wfm->m_startFemtoseconds = fs;
163
163
wfm->m_triggerPhase = 0 ;
@@ -204,7 +204,7 @@ void SiglentBINImportFilter::OnFileNameChanged()
204
204
string name = string (" F" ) + to_string (i+1 );
205
205
AddStream (Unit (Unit::UNIT_VOLTS), name, Stream::STREAM_TYPE_ANALOG);
206
206
auto wfm = new UniformAnalogWaveform;
207
- wfm->m_timescale = wh.math_s_interval [i] * FS_PER_SECOND;
207
+ wfm->m_timescale = round ( wh.math_s_interval [i] * FS_PER_SECOND) ;
208
208
wfm->m_startTimestamp = timestamp * FS_PER_SECOND;
209
209
wfm->m_startFemtoseconds = fs;
210
210
wfm->m_triggerPhase = 0 ;
@@ -253,7 +253,7 @@ void SiglentBINImportFilter::OnFileNameChanged()
253
253
string name = string (" D" ) + to_string (i);
254
254
AddStream (Unit (Unit::UNIT_VOLTS), name, Stream::STREAM_TYPE_DIGITAL);
255
255
auto wfm = new UniformDigitalWaveform;
256
- wfm->m_timescale = FS_PER_SECOND / wh.d_s_rate ;
256
+ wfm->m_timescale = round ( FS_PER_SECOND / wh.d_s_rate ) ;
257
257
wfm->m_startTimestamp = timestamp * FS_PER_SECOND;
258
258
wfm->m_startFemtoseconds = fs;
259
259
wfm->m_triggerPhase = 0 ;
0 commit comments