AlazarHyperDisp

Function Syntax

RETURN_CODE AlazarHyperDisp(HANDLE handle, void * buffer, U32 bufferSize, U8 * viewBuffer, U32 viewBufferSize, U32 numOfPixels, U32 option, U32 channelSelect, U32 record, long transferOffset, U32 * error)

Enable the on-board FPGA to process records acquired to on-board memory, and transfer the processed data to host memory.

HyperDisp processing enables the on-board FPGA to divide a record acquired to on-board memory into intervals, find the minimum and maximum sample values during each interval, and transfer an array of minimum and maximum sample values to a buffer in host memory. This allows the acquisition of relatively long records to on-board memory, but the transfer of relatively short, processed records to a buffer in host memory.

For example, it would take an ATS860-256M about ~2.5 seconds to transfer a 250,000,000 sample record from on-board memory, across the PCI bus, to a buffer in host memory. With HyperDisp enabled, it would take the on-board FPGA a fraction of a second to process the record and transfer a few hundred samples from on-board memory, across the PCI bus, to a buffer in host memory.

Return
ApiSuccess upon success, or an error code. See RETURN_CODE for more detailed information.
Note
This function is part of the single-port data acquisition API. It cannot be used with the dual-port AutoDMA APIs.
Parameters
  • handle: Board handle
  • buffer: Reseved (Set to NULL)
  • bufferSize: Number of samples to process
  • viewBuffer: Buffer to receive processed data
  • viewBufferSize: Size of processed data buffer in bytes
  • numOfPixels: Number of HyperDisp points
  • option: Processing mode. Pass 1 to enable HyperDisp processing.
  • channelSelect: Channel to process
  • record: Record to process (1-indexed)
  • transferOffset: The offset, in samples, of first sample to process relative to the trigger position in record.
  • error: Pointer to value to receive a result code.