| Customize Help
| Save Settings

MfpgaInquire



Function Map
Synopsis
Inquire global information about a specified Processing FPGA.
Syntax
MIL_INT MfpgaInquire(
MIL_ID MilSystemId, //in
MIL_INT FpgaDeviceNumber, //in
MIL_INT64 InquireType, //in
void *UserVarPtr //out
)
Description

This function inquires global information about a Processing FPGA, including all loaded PUs. See MfpgaCommandInquire() to retrieve information about a specific command context.

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
MilSystemId

Specifies the identifier of the system that has the required Processing FPGA.

FpgaDeviceNumber

Specifies the Processing FPGA to inquire. This parameter must be set to the following value:

function map For specifying the rank of the Processing FPGA
Click to summarizeValue Description MIL system-specific
tooltip (‡)
Click to summarize M_DEVn

Specifies the rank of the Processing FPGA about which to inquire, where n can be a value between 0 and the total number of Processing FPGAs-1.

j k
M10
l m p r
U27
y
U75
aa
InquireType

Specifies the information about which to inquire.

See the Parameter associations section for possible values that can be specified.

UserVarPtr
Accepts the address of one of the following (see the Parameter associations section for specifics on which is expected):
  • array of type MIL_INT [optionally, in C++: a reference to a std::vector<MIL_INT> ]
  • array of type MIL_TEXT_CHAR [optionally, in C++: a reference to a MIL_STRING]
  • MIL_INT

Specifies the address at which to write the requested information. Since the MfpgaInquire() function also returns the requested information, you can set this parameter to M_NULL.

See the Parameter associations section for possible values that can be returned.

The table below lists possible values for the InquireType parameter and possible values returned to the UserVarPtr parameter.

function map For FPGAs
Click to summarizeInquireType Description MIL system-specific
tooltip (‡)
UserVarPtr
- Possible values returned
Click to summarize M_FPGA_CONFIGURATION_FILENAME

Inquires the string containing identifying information about the file name of the Processing FPGA configuration. The information consists of the location of the file (its path), followed by the name of the file (for example, "C:\mydirectory\myfile").

For a file on the remote computer (under Distributed MIL), the path and file name will be preceded by "remote:///" (for example, "remote:///C:\mydirectory\myfile").

(summarize)
j k
M10
l m p r
U27
y
U75
aa
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: array of type MIL_TEXT_CHAR [optionally, in C++: MIL_STRING ] MORE
j k
M10
l m p r
U27
y
U75
aa
Click to summarize MIL_TEXT("String") 1

Specifies the string containing information about the file name.

j k
M10
l m p r
U27
y
U75
aa
Click to summarize M_FPGA_CONFIGURATION_FILENAME_LENGTH

Inquires the length of the string returned by M_FPGA_CONFIGURATION_FILENAME.

(summarize)
j k
M10
l m p r
U27
y
U75
aa
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
j k
M10
l m p r
U27
y
U75
aa
Click to summarize Value

Specifies the length of the string, including the terminating null character ("\0").

j k
M10
l m p r
U27
y
U75
aa
Click to summarize M_FPGA_PACKAGE_NAME

Inquires the string containing identifying information about the Processing FPGA on your board. The information consists of the specific package name, followed by an underscore, followed by the speed grade.

(summarize)
j k
M10
l m p r
U27
y
U75
aa
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: array of type MIL_TEXT_CHAR [optionally, in C++: MIL_STRING ] MORE
j k
M10
l m p r
U27
y
U75
aa
Click to summarize MIL_TEXT("String") 1

Specifies the string containing information about the Processing FPGA.

j k
M10
l m p r
U27
y
U75
aa
Click to summarize M_FPGA_PACKAGE_NAME_LENGTH

Inquires the length of the string returned by M_FPGA_PACKAGE_NAME.

(summarize)
j k
M10
l m p r
U27
y
U75
aa
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
j k
M10
l m p r
U27
y
U75
aa
Click to summarize Value

Specifies the length of the string, including the terminating null character ("\0").

j k
M10
l m p r
U27
y
U75
aa
Click to summarize M_NUMBER_OF_PU

Inquires the number of PUs currently loaded in the Processing FPGA.

(summarize)
j k
M10
l m p r
U27
y
U75
aa
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
j k
M10
l m p r
U27
y
U75
aa
Click to summarize Value

Specifies the number of PUs.

j k
M10
l m p r
U27
y
U75
aa
Click to summarize M_PU_LIST

Inquires the list of function identifiers of all PUs currently loaded in the Processing FPGA.

(summarize)
j k
M10
l m p r
U27
y
U75
aa
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: array of type MIL_INT [optionally, in C++: a reference to a std::vector<MIL_INT> ] MORE
j k
M10
l m p r
U27
y
U75
aa
Click to summarize Value

Specifies the function identifier.

j k
M10
l m p r
U27
y
U75
aa

1 If the value was passed in a variable, it won't be returned enclosed in MIL_TEXT().

Return value
The returned value is M_VALID if successful. If the operation fails, M_NULL is returned.
Compilation information
Header Include mil.h; milfpga.h.
Library Use mil.lib; milfpga.lib.
DLL Requires mil.dll; milfpga.dll.
DEVn FPGA CONFIGURATION FILENAME FPGA CONFIGURATION FILENAME LENGTH FPGA PACKAGE NAME FPGA PACKAGE NAME LENGTH NUMBER OF PU PU LIST M_DEVn