~d-nelson/research-assistant/nextDNK

« back to all changes in this revision

Viewing changes to RAPlugins/DemoDevices/DummyTunableCCDDriver.cpp

  • Committer: Dmitrii
  • Date: 2024-03-12 02:02:44 UTC
  • Revision ID: d.nelson@mail.ioffe.ru-20240312020244-nl3fb371j3xy82a6
Have a little progress.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
  WLDriver.ReleaseExclusiveControl();
109
109
}
110
110
 
111
 
void  sDummyTunableCCDDriver::SetDevice_MeasureTime (sPhysValue IntTime)
 
111
void  sDummyTunableCCDDriver::SetDevice_MeasureTime (sPhysValue _MTime)
112
112
{
113
113
  try{
114
 
    int _IT = Round((IntTime/(sPhysValue(1.0e-3,"s"))).ToReal());
 
114
    int _IT = Round((_MTime/(sPhysValue(1.0e-3,"s"))).ToReal());
115
115
    _IT = (_IT / 10) * 10;
116
116
    if (_IT < 10) _IT = 10;
117
117
    MeasureTime =  sPhysValue(_IT*1.0e-3,"s");