Be sure that you are not stopping and re-starting the acquisition in between reads. Also, be sure you are not reading from a new record each time. There will be some time between separate acquisitions or separate records.
The best way to acquire continuously is to configure a single record, set the Reference Trigger to Software, and never send a Software Trigger. Set the Fetch Relative To attibute to Read Position. That way, every time you read data, it will start at the first unread data point. So you shouldn't see any gaps in the data (the chunks will be contiguous).
Please refer to two examples included in the NI-Scope driver:
- niScope EX Fetch Forever
- niScope EX Fetch In Chunks