jsiegle
authored
DataThreads (e.g. IntanThread, FileReaderThread, FPGAThread) are now created at the same time as the source node, rather than at the start of data acquisition. New methods for starting/stopping individual threads are required, although only the appropriate methods for the IntanThread have been written. Another important change is that the SourceNode now periodically checks for an appropriate input source every few seconds while acquisition is not in progress. It's the responsibility of the individual DataThreads to notify the SourceNode if their input has disappears. In the case of the IntanThread, this involves attempting to change the baud rate. If an error code returns, it informs the SourceNode that the input is missing. This, in turn, informs the FilterViewport that the source is no longer enabled, thus deactivating that particular signal chain.