| Customize Help
| Save Settings

MfpgaSetDestination



Function Map
Synopsis
Specify a destination buffer for the FPGA processing operation.
Syntax
void MfpgaSetDestination(
MIL_FPGA_CONTEXT FpgaCommandContext, //in
MIL_BUFFER_INFO DstBuf, //in
MIL_INT StreamOutputNumber, //in
MIL_INT64 ControlFlag //in
)
Description

This function specifies a destination buffer for the FPGA processing operation. This buffer is used to save the data from the specified stream output port of the PU associated with the specified FPGA command context. To route the data to another PU, refer to MfpgaSetLink().

All PUs have documented limitations on the types of buffers to which their stream output port(s) can output data. You must keep these limitations in mind when allocating your destination MIL buffer(s). This function will not automatically convert the buffers so that they are appropriate for the operation. For more information, refer to the PU documentation available in the Matrox FPGA Component Reference help file.

Note that in general, child buffers are not supported; only color-band child buffers are supported.

[Matrox Solios eA/XA; Matrox Solios ecl/xcl/ev-cl]

When allocating destination buffers on Matrox Solios, special care should be taken regarding the buffer width. The width of buffers allocated in acquisition memory must be a multiple of 64 bytes. The width of destination buffers on the Host must be a multiple of 8 bytes.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
FpgaCommandContext

Specifies the handle of the FPGA command context associated with the PU.

DstBuf

Specifies the handle of the destination buffer. Use MfuncInquire() with M_BUFFER_INFO to get the handle. The destination buffer can reside in Host memory or in on-board memory, if supported by the FPGA configuration. If allocated in Host memory, the destination buffer must be in non-paged, Processing FPGA accessible memory (using MbufAlloc...() with M_FPGA_ACCESSIBLE + M_HOST_MEMORY). If allocated on-board, the destination buffer must be allocated in on-board, Processing FPGA accessible memory (using MbufAlloc...() with M_FPGA_ACCESSIBLE).

StreamOutputNumber

Specifies the stream output port whose data will be routed to the destination buffer. You must set this parameter to the following value:

function map For specifying the rank of the stream output port
Click to summarizeValue Description MIL system-specific
tooltip (‡)
Click to summarize M_OUTPUTn

Specifies the rank of the stream output port. You can set n to a value between 0 and 9, inclusive.

(summarize)
j k
M10
l m p y
U75
ControlFlag

Reserved for future expansion. Set this parameter to M_DEFAULT.

Compilation information
Header Include mil.h; milfpga.h.
Library Use mil.lib; milfpga.lib.
DLL Requires mil.dll; milfpga.dll.
OUTPUTn M_OUTPUTn