Click here to show toolbars of the Web Online Help System: show toolbars
 

| Customize Help
| Save Settings

MobjInquire



Function Map
Synopsis
Inquire about a MIL object setting in a Distributed MIL publishing application.
Syntax
MIL_INT MobjInquire(
MIL_ID ObjectId, //in
MIL_INT64 InquireType, //in
void *UserVarPtr //out
)
Description

This function inquires about general MIL object settings in a publishing application within the Distributed MIL monitoring configuration.

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 if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
ObjectId

Specifies the identifier of the MIL object about which to inquire. The MIL object can be a MIL utility object (allocated using MobjAlloc()) or any other MIL object, except for MIL objects allocated using MfuncAlloc().

InquireType

Specifies the MIL object setting 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_TEXT_CHAR
  • MIL_INT
  • MIL_INT64

Specifies the address in which to write the requested information. Since the MobjInquire() 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 tables below list possible values for the InquireType parameter and possible values returned to the UserVarPtr parameter.

The following InquireType parameter settings can be specified for any MIL objects allocated using an M...Alloc() function.

function map For inquiring about MIL object settings
Click to summarizeInquireType Description
UserVarPtr
- Possible values returned
Click to summarize M_DMIL_PUBLISH

Inquires the MIL object's remote access rights. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_NO

Specifies that the MIL object will not be visible.

Click to summarize M_READ_ONLY

Specifies that the MIL object can only be used as a source or to be inquired. INFO

Click to summarize M_READ_WRITE

Specifies that the MIL object can be used as a destination or can be controlled by MIL functions. INFO

Click to summarize M_OBJECT_NAME

Inquires the MIL object's user-defined name. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: array of type MIL_TEXT_CHAR (more details...)
Click to summarize M_OBJECT_NAME_SIZE

Inquires the number of characters in the MIL object's user-defined name.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_OBJECT_TYPE

Inquires the type of the specified MIL object.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT64
Click to summarize M_3DMAP_ALIGNMENT_RESULT

Specifies a MIL 3D reconstruction result buffer allocated using M3dmapAllocResult() with M_ALIGNMENT_RESULT.

Click to summarize M_3DMAP_DEPTH_CORRECTED_DATA

Specifies a MIL 3D reconstruction result buffer allocated using M3dmapAllocResult() with M_DEPTH_CORRECTED_DATA.

Click to summarize M_3DMAP_GEOMETRY

Specifies a MIL 3D geometry object allocated using M3dmapAlloc() with M_GEOMETRY.

Click to summarize M_3DMAP_LASER_CALIBRATION_DATA

Specifies a MIL 3D reconstruction result buffer allocated using M3dmapAllocResult() with M_LASER_CALIBRATION_DATA.

Click to summarize M_3DMAP_LASER_CONTEXT

Specifies a MIL 3D reconstruction context allocated using M3dmapAlloc() with M_LASER.

Click to summarize M_3DMAP_PAIRWISE_ALIGNMENT_CONTEXT

Specifies a MIL pairwise 3D alignment context allocated using M3dmapAlloc() with M_PAIRWISE_ALIGNMENT_CONTEXT.

Click to summarize M_3DMAP_POINT_CLOUD_CONTAINER

Specifies a MIL 3D reconstruction result buffer allocated using M3dmapAllocResult() with M_POINT_CLOUD_CONTAINER.

Click to summarize M_3DMAP_STAT_RESULT

Specifies a MIL 3D reconstruction result buffer allocated using M3dmapAllocResult() with M_STAT_RESULT.

Click to summarize M_APPLICATION

Specifies a MIL application context allocated using MappAlloc().

Click to summarize M_ARRAY

Specifies a MIL array buffer allocated using MbufAlloc2d() with M_ARRAY.

Click to summarize M_BEAD_CONTEXT

Specifies a MIL bead context allocated using MbeadAlloc().

Click to summarize M_BEAD_RESULT

Specifies a MIL bead result buffer allocated using MbeadAllocResult().

Click to summarize M_BLOB_CONTEXT

Specifies a MIL blob analysis context allocated using MblobAlloc().

Click to summarize M_BLOB_RESULT

Specifies a MIL blob analysis result buffer allocated using MblobAllocResult().

Click to summarize M_CAL_CONTEXT

Specifies a MIL camera calibration context allocated using McalAlloc().

Click to summarize M_CAL_FIXTURING_OFFSET

Specifies a MIL fixturing offset object allocated using McalAlloc() with M_FIXTURING_OFFSET.

Click to summarize M_CODE_CONTEXT

Specifies a MIL code context allocated using McolAlloc().

Click to summarize M_CODE_MODEL

Specifies a MIL code model allocated using McodeModel() with M_ADD.

Click to summarize M_CODE_RESULT

Specifies a MIL code result buffer allocated using McodeAllocResult().

Click to summarize M_COL_MATCH_CONTEXT

Specifies a MIL color analysis context (for matching) allocated using McolAlloc() with M_COLOR_MATCHING.

Click to summarize M_COL_MATCH_RESULT

Specifies a MIL color analysis result buffer (for matching) allocated using McolAllocResult() with M_COLOR_MATCHING_RESULT.

Click to summarize M_COL_RELATIVE_CALIBRATION_CONTEXT

Specifies a MIL relative color calibration context allocated using McolAlloc() with M_COLOR_CALIBRATION_RELATIVE.

Click to summarize M_COM_CONTEXT

Specifies a MIL industrial communication context allocated using McomAlloc().

Click to summarize M_COUNT_LIST

Specifies a MIL count list result buffer allocated using MimAllocResult() with M_COUNT_LIST.

Click to summarize M_DIGITIZER

Specifies a MIL digitizer allocated using MdigAlloc().

Click to summarize M_DISPLAY

Specifies a MIL display allocated using MdispAlloc().

Click to summarize M_DMR_CONTEXT

Specifies a MIL SureDotOCR context allocated using MdmrAlloc().

Click to summarize M_DMR_RESULT

Specifies a MIL SureDotOCR result buffer allocated using MdmrAllocResult().

Click to summarize M_EDGE_CONTOUR

Specifies a MIL edge contour context allocated using MedgeAlloc() with M_CONTOUR.

Click to summarize M_EDGE_CREST

Specifies a MIL edge crest context allocated using MedgeAlloc() with M_CREST.

Click to summarize M_EDGE_RESULT

Specifies a MIL edge result buffer allocated using MedgeAllocResult().

Click to summarize M_EVENT

Specifies a MIL event allocated using MthrAlloc() with M_EVENT.

Click to summarize M_EVENT_LIST

Specifies a MIL event list result buffer allocated using MimAllocResult() with M_EVENT_LIST.

Click to summarize M_EXTREME_LIST

Specifies a MIL extreme list result buffer allocated using MimAllocResult() with M_EXTREME_LIST.

Click to summarize M_FIND_ORIENTATION_LIST

Specifies a MIL find orientation list result buffer allocated using MimAllocResult() with M_FIND_ORIENTATION_LIST.

Click to summarize M_GRAPHIC_CONTEXT

Specifies a MIL graphics context allocated using MgraAlloc().

Click to summarize M_GRAPHIC_LIST

Specifies a MIL graphics list allocated using MgraAllocList().

Click to summarize M_HIST_LIST

Specifies a MIL histogram list result buffer allocated using MimAllocResult() with M_HIST_LIST.

Click to summarize M_IM_CONTEXT

Specifies a MIL image processing context allocated using MimAlloc().

Click to summarize M_IMAGE

Specifies a MIL image buffer allocated using MbufAllocColor() with M_IMAGE.

Click to summarize M_KERNEL

Specifies a MIL kernel buffer allocated using MbufAlloc2d() with M_KERNEL.

Click to summarize M_LOCATE_PEAK_1D_RESULT

Specifies a MIL locate 1D peak result buffer allocated using MimAllocResult() with M_LOCATE_PEAK_1D_RESULT.

Click to summarize M_LUT

Specifies a MIL LUT buffer allocated using MbufAlloc2d() with M_LUT.

Click to summarize M_MEAS_CONTEXT

Specifies a MIL measurement context allocated using MmeasAllocContext().

Click to summarize M_MEAS_MARKER

Specifies a MIL measurement marker allocated using MmeasAllocMarker().

Click to summarize M_MEAS_RESULT

Specifies a MIL measurement result buffer allocated using MmeasAllocResult().

Click to summarize M_MESSAGE_MAILBOX

Specifies a MIL message mailbox allocated using MobjAlloc().

Click to summarize M_MET_CONTEXT

Specifies a MIL metrology context allocated using MmetAlloc() with M_CONTEXT.

Click to summarize M_MET_DERIVED_GEOMETRY_REGION

Specifies a MIL metrology derived geometry region object allocated using MmetAlloc() with M_DERIVED_GEOMETRY_REGION.

Click to summarize M_MET_RESULT

Specifies a MIL metrology result buffer allocated using MmetAllocResult().

Click to summarize M_MOD_GEOMETRIC

Specifies a MIL Model Finder context allocated using MmodAlloc() with M_GEOMETRIC.

Click to summarize M_MOD_GEOMETRIC_CONTROLLED

Specifies a MIL Model Finder context allocated using MmodAlloc() with M_GEOMETRIC_CONTROLLED.

Click to summarize M_MOD_RESULT

Specifies a MIL Model Finder result buffer allocated using MmodAllocResult() with M_DEFAULT.

Click to summarize M_MOD_SHAPE_RESULT

Specifies a MIL Model Finder result buffer allocated using MmodAllocResult() with M_SHAPE_CIRCLE.

Click to summarize M_MUTEX

Specifies a MIL mutex allocated using MthrAlloc() with M_MUTEX.

Click to summarize M_OCR_FONT

Specifies a MIL character recognition font context allocated using MocrAllocFont().

Click to summarize M_OCR_RESULT

Specifies a MIL character recognition result buffer allocated using MocrAllocResult().

Click to summarize M_PAT_CONTEXT

Specifies a MIL pattern matching context allocated using MpatAlloc().

Click to summarize M_PAT_RESULT

Specifies a MIL pattern matching result buffer allocated using MpatAllocResult().

Click to summarize M_PROJ_LIST

Specifies a MIL project list result buffer allocated using MimAllocResult() with M_PROJ_LIST.

Click to summarize M_REG_EDOF_CONTEXT

Specifies a MIL registration context allocated using MregAlloc() with M_EXTENDED_DEPTH_OF_FIELD.

Click to summarize M_REG_EDOF_RESULT

Specifies a MIL registration result buffer allocated using MregAllocResult() with M_EXTENDED_DEPTH_OF_FIELD_RESULT.

Click to summarize M_REG_STITCHING_CONTEXT

Specifies a MIL registration context allocated using MregAlloc() with M_STITCHING.

Click to summarize M_REG_STITCHING_RESULT

Specifies a MIL registration result buffer allocated using MregAllocResult() with M_STITCHING_RESULT.

Click to summarize M_SELECTABLE_THREAD

Specifies a MIL selectable thread allocated using MthrAlloc() with M_SELECTABLE_THREAD.

Click to summarize M_SEQUENCE_CONTEXT

Specifies a MIL sequence context allocated using MseqAlloc().

Click to summarize M_SHAPE_CIRCLE

Specifies a MIL Model Finder context allocated using MmodAlloc() with M_SHAPE_CIRCLE.

Click to summarize M_STATISTICS_RESULT

Specifies a MIL MimStatCalculate() result buffer allocated using MimAllocResult() with M_STATISTICS_RESULT.

Click to summarize M_STR_CONTEXT

Specifies a MIL string context allocated using MstrAlloc().

Click to summarize M_STR_RESULT

Specifies a MIL string result buffer allocated using MstrAllocResult().

Click to summarize M_STRUCT_ELEMENT

Specifies a MIL structuring element buffer allocated using MbufAlloc2d() with M_STRUCT_ELEMENT.

Click to summarize M_SYS_IO_CONTEXT

Specifies a MIL system I/O context allocated using MsysIoAlloc().

Click to summarize M_SYSTEM

Specifies a MIL system context allocated using MsysAlloc().

Click to summarize M_THREAD

Specifies a MIL thread context object allocated using MthrAlloc() with M_THREAD.

Click to summarize M_USER_OBJECT_1 +

Specifies a MIL object from group one of the user-defined object types allocated using MfuncAllocId() with M_USER_OBJECT_1.


This value is combined with a value from the following table:
(summarize)
Click to summarize M_USER_OBJECT_2 +

Specifies a MIL object from group two of the user-defined object types allocated using MfuncAllocId() with M_USER_OBJECT_2.


This value is combined with a value from the following table:
(summarize)
Click to summarize M_WAVELET_TRANSFORM_RESULT

Specifies a MIL wavelet transform result buffer allocated using MimAllocResult() with M_WAVELET_TRANSFORM_RESULT.

Combination value for M_USER_OBJECT_1 (when InquireType=M_OBJECT_TYPE and UserVarPtr=M_USER_OBJECT_1); M_USER_OBJECT_2 (when InquireType=M_OBJECT_TYPE and UserVarPtr=M_USER_OBJECT_2).

The following value is combined with the above-mentioned values to set the offset.

The offset allows you to distinguish between the different object types of the same group (for example, M_USER_OBJECT_1 + 0x0001).

function map For distinguishing between the different object types
Click to summarizeCombination value Description
Click to summarize Value

Specifies the offset within the selected object type group. The value must have only one of its 16 least significant bits set.

(summarize)

The following InquireType parameter settings can be specified for a MIL message mailbox object allocated using MobjAlloc() with M_MESSAGE_MAILBOX.

function map For inquiring message mailbox settings
Click to summarize
InquireType
Description
UserVarPtr
- Possible values returned
Click to summarize M_INIT_FLAG

Inquires the initialization of the allocated object. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_OVERWRITE
//For message mailbox objects

Specifies that only one message can be kept in the mailbox and is replaced at each write. INFO

Click to summarize M_QUEUE
//For message mailbox objects

Specifies that multiple messages can be queued in the mailbox. INFO

Click to summarize M_MESSAGE_COUNT

Inquires the number of messages in the message mailbox.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize Value >= 0

Specifies the number of messages in the message mailbox.

Click to summarize M_MESSAGE_LENGTH

Inquires the length of the next message in the message mailbox.

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize Value > 0

Specifies the length of the next message in the message mailbox.

Click to summarize M_QUEUE_FULL_MODE

Inquires the behavior of the queue when the message limit is attained. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DEFAULT

Same as M_WRITE_TIMEOUT.

Click to summarize M_ERROR

Specifies that a MIL error is generated when the message limit is attained.

Click to summarize M_WRITE_TIMEOUT

Specifies to wait for the write timeout to elapse.

Click to summarize M_QUEUE_SIZE

Inquires the number of messages the queue can hold. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DEFAULT

Specifies the default value; the default value is 100 messages.

Click to summarize Value > 0

Specifies the number of messages the queue can hold.

Click to summarize M_READ_TIMEOUT

Inquires the amount of time to wait for a read operation. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DEFAULT

Same as M_INFINITE.

Click to summarize M_INFINITE

Specifies that the read operation waits indefinitely.

Click to summarize Value > 0

Specifies the amount of time to wait, in msecs.

Click to summarize M_WRITE_TIMEOUT

Inquires the amount of time to wait for a write operation. SET

(summarize)
Expand data type infoCollapse data type info UserVarPtr extra info
Data type info: Data type: address of a MIL_INT
Click to summarize M_DEFAULT

Same as M_INFINITE.

Click to summarize M_INFINITE

Specifies that the write operation waits indefinitely.

Click to summarize Value > 0

Specifies the amount of time to wait, in msecs.

Return value
The returned value is the requested information, cast to a MIL_INT. If the requested information does not fit into a MIL_INT, this function will return M_NULL or truncate the information.
Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.
DMIL PUBLISH NO READ ONLY READ WRITE OBJECT NAME OBJECT NAME SIZE OBJECT TYPE 3DMAP ALIGNMENT RESULT 3DMAP DEPTH CORRECTED DATA 3DMAP GEOMETRY 3DMAP LASER CALIBRATION DATA 3DMAP LASER CONTEXT 3DMAP PAIRWISE ALIGNMENT CONTEXT 3DMAP POINT CLOUD CONTAINER 3DMAP STAT RESULT APPLICATION ARRAY BEAD CONTEXT BEAD RESULT BLOB CONTEXT BLOB RESULT CAL CONTEXT CAL FIXTURING OFFSET CODE CONTEXT CODE MODEL CODE RESULT COL MATCH CONTEXT COL MATCH RESULT COL RELATIVE CALIBRATION CONTEXT COM CONTEXT COUNT LIST DIGITIZER DISPLAY DMR CONTEXT DMR RESULT EDGE CONTOUR EDGE CREST EDGE RESULT EVENT EVENT LIST EXTREME LIST FIND ORIENTATION LIST GRAPHIC CONTEXT GRAPHIC LIST HIST LIST IM CONTEXT IMAGE KERNEL LOCATE PEAK 1D RESULT LUT MEAS CONTEXT MEAS MARKER MEAS RESULT MESSAGE MAILBOX MET CONTEXT MET DERIVED GEOMETRY REGION MET RESULT MOD GEOMETRIC MOD GEOMETRIC CONTROLLED MOD RESULT MOD SHAPE RESULT MUTEX OCR FONT OCR RESULT PAT CONTEXT PAT RESULT PROJ LIST REG EDOF CONTEXT REG EDOF RESULT REG STITCHING CONTEXT REG STITCHING RESULT SELECTABLE THREAD SEQUENCE CONTEXT SHAPE CIRCLE STATISTICS RESULT STR CONTEXT STR RESULT STRUCT ELEMENT SYS IO CONTEXT SYSTEM THREAD USER OBJECT 1 USER OBJECT 2 WAVELET TRANSFORM RESULT INIT FLAG OVERWRITE QUEUE MESSAGE COUNT MESSAGE LENGTH QUEUE FULL MODE DEFAULT ERROR WRITE TIMEOUT QUEUE SIZE DEFAULT READ TIMEOUT DEFAULT INFINITE WRITE TIMEOUT DEFAULT INFINITE