BinaryWriter¶
- class picodaq.binwriter.BinaryWriter(dev: PicoDAQ, nscans: int, asources: Dict[int, Sampled], dsources: Dict[int, Sampled])¶
- property productionfinished¶
Has the production finished?
This property reads as true once all the data for all channels have been sent to the device.
Critically, this does not guarantee that all data have been sent out from the device into the world. For that, check the
flags()from the binary reader.It is OK to call
sendchunk(...)afterproductionfinished()becomes True.
- sendchunk(pre: bool)¶
Send a single chunk of data to the device
Parameter
pre - True if prebuffering
Returns
True if more data remain to be sent
If pre is
True, sending of the data is preceded by an “outdata” command and the returned checksum is checked. Use this before youstart()the acquisition. Once the device is in binary mode, set pre toFalseto send the data without preceding material.