It's the latter. The user can select both the total duration and sample rate. The file attached (converted from lvm to xlsx) is the output when I set the duration to 1 sec and the rate to 1,000 Hz. But I ended up with 1.099 sec of data. The extra .099 sec is not a big deal for my kind of applications.