DataWriter Device Class
pyrogue.DataWriter is a base device for writing received stream
frames to files.
For application use, pyrogue.utilities.fileio.StreamWriter is the
concrete subclass you should typically instantiate.
Custom data writers can be created by subclassing DataWriter.
Key Methods
The following methods control the operation of the file writer and are typical override points in a custom writer:
pyrogue.DataWriter._setBufferSize()pyrogue.DataWriter._setMaxFileSize()pyrogue.DataWriter._getFrameCount()
Included Command Objects
The following pyrogue.LocalCommand objects are created when
DataWriter is instantiated.
Open: Open data file. The new file name will be the contents of
DataFile.Close: Close data file.
AutoName: Auto create data file name using date and time.
Included Variable Objects
The following pyrogue.LocalVariable objects are created when
DataWriter is instantiated.
DataFile: Data file for storing frames for connected streams. This is the file opened when the
Opencommand is executed.IsOpen: Status field which is
Truewhen the data file is open.BufferSize: File buffering size. Enables caching of data before calls to the file system.
MaxFileSize: Maximum size for an individual file. Setting to a non-zero value splits run data into multiple files.
CurrentSize: Size of current data file in bytes.
TotalSize: Total bytes written.
FrameCount: Total frames received and written.
DataWriter Class Documentation
See DataWriter for generated API details.