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.


ApiSuccess upon success, or an error code. See RETURN_CODE for more detailed information.


This function is part of the single-port data acquisition API. It cannot be used with the dual-port AutoDMA APIs.

  • [in] handle: Board handle

  • [in] buffer: Reserved (Set to NULL)

  • [in] bufferSize: Number of samples to process

  • [out] viewBuffer: Buffer to receive processed data

  • [in] viewBufferSize: Size of processed data buffer in bytes

  • [in] numOfPixels: Number of HyperDisp points

  • [in] option: Processing mode. Pass 1 to enable HyperDisp processing.

  • [in] channelSelect: Channel to process

  • [in] record: Record to process (1-indexed)

  • [in] transferOffset: The offset, in samples, of first sample to process relative to the trigger position in record.

  • [out] error: Pointer to value to receive a result code.