3 #include "FPGAInterface.h"
4 #include "FPGAIO5771.h"
5 #include "NiFpga_AnalogDemultiplexerV2_NI5771.h"
10 class InputsFPGAAnalogDemultiplexer;
27 std::array<NiFpga_AnalogDemultiplexerV2_NI5771_TargetToHostFifoU64, 2>
fifos;
30 std::array<NiFpga_AnalogDemultiplexerV2_NI5771_ControlU32, 2>
reqpixels;
43 double SetPixeltime(
const uint32_t& _area,
const double& _pixeltime)
override;
44 double SetLinetime(
const uint32_t& _area,
const double& _linetime)
override;
51 int32_t
ReadPixels(
DaqChunk& _chunk,
const double& _timeout,
bool& _timedout)
override;
Abstract base class for FPGA classes.
parameters::InputsFPGAAnalogDemultiplexer * parameters
the parameter set
void StartAcquisition() override
Starts the acquisition on the FPGA.
void SetTriggering(const bool &_waitfortrigger) override
Sets if the FPGA should wait for a trigger before starting acquisition.
double SetLinetime(const uint32_t &_area, const double &_linetime) override
Sets the time per line (in seconds) for the generation of the line clock (if implemented) ...
void SetRequestedPixels(const uint32_t &_area, const uint32_t &_reqpixels) override
Sets the number of pixels per channel the FPGA should acquire, set to -1 for live scanning...
void SetChannelProps()
Set channel properties as baseline cutoff and bitshift.
std::array< NiFpga_AnalogDemultiplexerV2_NI5771_TargetToHostFifoU64, 2 > fifos
all FIFOs for both areas
Wraps an FPGA that does two area demultiplexing and analog integration with the NI 5771 FlexRio adapt...
std::array< NiFpga_AnalogDemultiplexerV2_NI5771_ControlU32, 2 > reqpixels
requested pixels for both areas
Handels the NI FlexRIO adapter module IO-5771.
A DaqChunk contains data from all channels sequentially.
void StopAcquisition() override
Stops the acquisition on the FPGA.
NiFpga_AnalogDemultiplexerV2_NI5771_ControlU16 smplsperpixel
samples per pixel for both areas
double SetPixeltime(const uint32_t &_area, const double &_pixeltime) override
Sets the time per pixel/dwell time (in seconds)
void SetContinuousAcquisition(const bool &_cont) override
Sets if the FPGA should acquire data continuously or acquire the number of pixels per channel set wit...
void Initialize(parameters::InputsFPGA *_parameters) override
Set initial parameters.
int32_t ReadPixels(DaqChunk &_chunk, const double &_timeout, bool &_timedout) override
Read only pixels from the FPGA FIFO.
~FPGAAnalogDemultiplexer()
Close FPGA session.
void ClearFIFOs()
Clears the interloop and ToHost FIFOs.
void CheckFPGADiagnosis()
Checks the status of the FIFOs on the FPGA.
FPGAAnalogDemultiplexer()
Load the FPGA bitfile, set the IO module's onboard clock and initialize the acquisition.