| MIL 10 Reference
| Customize Help
| Save Settings

MfpgaSetDestination



See also
Availability
Available in MIL-Lite
Available in MIL

Available on Windows
Available on Linux

Not supported on:
Not supported on Host system
Not supported on Matrox CronosPlus
Not supported on Matrox GPU processing driver
Not supported on Matrox GigE Vision driver
Not supported on Matrox IEEE 1394 IIDC driver
Not supported on Matrox Iris GT
Not supported on Matrox Morphis
Not supported on Matrox Morphis QxT
Not supported on Matrox Orion HD
Not supported on Matrox USB3 Vision driver (requires Update 19)
Not supported on Matrox Vio
Partially supported on:
Partially supported on Matrox Solios eA/XA
Partially supported on Matrox Solios ecl/xcl/ev-cl

Fully supported on:
Fully supported on Matrox Radient eCL
Fully supported on Matrox Radient eV-CXP

For any information regarding a MIL system added during a MIL Update, see the MIL system’s release note

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
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
CollapseValue Description
MIL system-specific
tooltip (†)
Collapse 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 l m p q
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