MappInquireConnection
Synopsis
查詢 Distributed MIL publishing application 之中的 published MIL objects。
Syntax
MIL_INT MappInquireConnection(
MIL_ID ContextAppId, //in
MIL_INT64 InquireType, //in
MIL_INT64 ControlFlag, //in
MIL_INT64 ExtraFlag, //in
void *UserVarPtr //out
)
Parameters
ContextAppId
指定使用的 application context identifier。
| Value |
Description |
| M_DEFAULT |
指定 current application context。 |
| Application Context Identifier |
指定 application context identifier。
一般來說,這用來指定一個遠端電腦上的 remote application 的 application context identifier。但是這也可以用來指定本機電腦中的 remote application,甚至 current application。 |
InquireType
指定要查詢的 Distributed MIL connection setting。
這個參數可使用的值,請看 Parameter associations。
ControlFlag
指定查詢操作的屬性。如果所選擇的查詢操作不需要這一項參數,請將此設為 M_DEFAULT。
這個參數可使用的值,請看 Parameter associations。
ExtraFlag
指定查詢操作的屬性。如果所選擇的查詢操作不需要這一項參數,請將此設為 M_DEFAULT。
這個參數可使用的值,請看 Parameter associations。
UserVarPtr
用來寫入查詢資訊的地址。
因為 MappInquireConnection() 也會回傳查詢的結果,所以你可以將這個參數設為M_NULL。
這個地址指向的資料,格式只能是以下三種之一:
- array of type MIL_ID
- MIL_ID
- MIL_INT64
這個參數可使用的值,請看 Parameter associations。
Parameter associations
以下的表格會列出 InquireType、ControlFlag、ExtraFlag 所有可能的值,以及 UserVarPtr 可能的回傳值。
For inquiring about a DMIL monitoring configuration connection
| InquireType |
Description |
| M_DMIL_PUBLISHED_LIST |
取得 MIL objects identifiers 的列表。
ControlFlagSpecifies to limit the returned list from all MIL objects to all MIL objects of the specified MIL object type.
M_DEFAULTSpecifies to include all MIL object types in the Distributed MIL publishing application.
M_3DMAP_GEOMETRYSpecifies a MIL 3D geometry object.
M_3DMAP_LASER_CONTEXTSpecifies a MIL 3D reconstruction context object that can be used for laser-line profiling.
M_3DMAP_LASER_DATASpecifies a MIL 3D reconstruction result object that can store laser-line profiling results.
M_3DMAP_STAT_RESULTSpecifies a MIL 3D reconstruction result object which can be used to store statistics results.
M_APPLICATIONSpecifies a MIL application object.
M_ARRAYSpecifies a MIL array object.
M_BEAD_CONTEXTSpecifies a bead context object.
M_BEAD_RESULTSpecifies a bead result object.
M_BLOB_FEATURE_LISTSpecifies a MIL blob feature list object.
M_BLOB_RESULTSpecifies a MIL blob result object.
M_CAL_CONTEXTSpecifies a MIL calibration context.
M_CAL_FIXTURING_OFFSETSpecifies a MIL fixturing offset object.
M_CODE_CONTEXTSpecifies a MIL code context object.
M_CODE_RESULTSpecifies a MIL code result object.
M_COL_MATCH_CONTEXTSpecifies a MIL color matching context object.
M_COL_MATCH_RESULTSpecifies a MIL color matching result object.
M_COUNT_LISTSpecifies a MIL MimCountDifference() result object.
M_DIGITIZERSpecifies a MIL digitizer object.
M_EDGE_CONTOURSpecifies a MIL Edge Finder contour context object.
M_EDGE_CRESTSpecifies a MIL Edge Finder crest context object.
M_EDGE_RESULTSpecifies a MIL Edge Finder result object.
M_EVENT_LISTSpecifies a MIL MimLocateEvent() result object.
M_EXTREME_LISTSpecifies a MIL MimFindExtreme() result object.
M_GRAPHIC_CONTEXTSpecifies a MIL graphics context object.
M_GRAPHIC_LISTSpecifies a MIL graphics result object.
M_HIST_LISTSpecifies a MIL MimHistogram() result object.
M_IM_CONTEXTSpecifies a MIL image processing context.
M_IMAGESpecifies a MIL image object.
M_KERNELSpecifies a MIL kernel object.
M_LUTSpecifies a MIL LUT object.
M_MEAS_CONTEXT Specifies a MIL measurement context object.
M_MEAS_MARKERSpecifies a MIL measurement marker object.
M_MEAS_RESULTSpecifies a MIL measurement result object.
M_MET_CONTEXTSpecifies a MIL metrology context object.
M_MET_DERIVED_GEOMETRY_REGIONSpecifies a MIL metrology derived geometry region object.
M_MET_RESULTSpecifies a MIL metrology result object.
M_MOD_GEOMETRICSpecifies a MIL Model Finder context object that can be used to perform searches using a general geometric search algorithm.
M_MOD_GEOMETRIC_CONTROLLEDSpecifies a MIL Model Finder context object that can be used to perform searches using a controlled geometric search algorithm.
M_MOD_RESULTSpecifies a MIL Model Finder result object.
M_OCR_FONTSpecifies a MIL OCR font context object.
M_OCR_RESULTSpecifies a MIL OCR result object.
M_PAT_MODELSpecifies a MIL pattern matching model object.
M_PAT_RESULTSpecifies a MIL pattern matching result object.
M_PROJ_LISTSpecifies a MIL MimProject() result object.
M_REG_CONTEXTSpecifies a MIL registration context object.
M_REG_RESULTSpecifies a MIL registration result object.
M_SEQUENCE_CONTEXTSpecifies a sequence context object.
M_STAT_LISTSpecifies a MIL MimStat() result object.
M_STAT_MULTIPLE_RESULTSpecifies a MIL MimStatMultiple() result object.
M_STR_CONTEXTSpecifies a MIL String Reader context object.
M_STR_RESULTSpecifies a MIL String Reader result object.
M_STRUCT_ELEMENTSpecifies a MIL structural element object.
M_SYSTEMSpecifies a MIL system object.
M_USER_OBJECT_1Specifies the first user-defined object.
M_USER_OBJECT_2Specifies the second user-defined object. </blockquote>
ExtraFlag
Specifies the size of the array.
UserVarPtr
Data type: array of type MIL_ID Array size: Specified with ExtraFlag.
|
| M_DMIL_PUBLISHED_LIST_SIZE |
Inquires the current number of MIL objects published on a host.
ControlFlagSpecifies to limit the count from all MIL objects to all MIL objects of the specified MIL object type.
M_DEFAULTSpecifies to count all MIL object types in the Distributed MIL publishing application.
M_3DMAP_GEOMETRYSpecifies a MIL 3D geometry object.
M_3DMAP_LASER_CONTEXTSpecifies a MIL 3D reconstruction context object that can be used for laser-line profiling.
M_3DMAP_LASER_DATASpecifies a MIL 3D reconstruction result object that can store laser-line profiling results.
M_3DMAP_STAT_RESULTSpecifies a MIL 3D reconstruction result object which can be used to store statistics results.
M_APPLICATIONSpecifies a MIL application object.
M_ARRAYSpecifies a MIL array object.
M_BEAD_CONTEXTSpecifies a bead context object.
M_BEAD_RESULTSpecifies a bead result object.
M_BLOB_FEATURE_LISTSpecifies a MIL blob feature list object.
M_BLOB_RESULTSpecifies a MIL blob result object.
M_CAL_CONTEXTSpecifies a MIL calibration context.
M_CAL_FIXTURING_OFFSETSpecifies a MIL fixturing offset object.
M_CODE_CONTEXTSpecifies a MIL code context object.
M_CODE_RESULTSpecifies a MIL code result object.
M_COL_MATCH_CONTEXTSpecifies a MIL color matching context object.
M_COL_MATCH_RESULTSpecifies a MIL color matching result object.
M_COUNT_LISTSpecifies a MIL MimCountDifference() result object.
M_DIGITIZERSpecifies a MIL digitizer object.
M_EDGE_CONTOURSpecifies a MIL Edge Finder contour context object.
M_EDGE_CRESTSpecifies a MIL Edge Finder crest context object.
M_EDGE_RESULTSpecifies a MIL Edge Finder result object.
M_EVENT_LISTSpecifies a MIL MimLocateEvent() result object.
M_EXTREME_LISTSpecifies a MIL MimFindExtreme() result object.
M_GRAPHIC_CONTEXTSpecifies a MIL graphics context object.
M_GRAPHIC_LISTSpecifies a MIL graphics result object.
M_HIST_LISTSpecifies a MIL MimHistogram() result object.
M_IM_CONTEXTSpecifies a MIL image processing context.
M_IMAGESpecifies a MIL image object.
M_KERNELSpecifies a MIL kernel object.
M_LUTSpecifies a MIL LUT object.
M_MEAS_CONTEXTSpecifies a MIL measurement context object.
M_MEAS_MARKERSpecifies a MIL measurement marker object.
M_MEAS_RESULTSpecifies a MIL measurement result object.
M_MET_CONTEXTSpecifies a MIL metrology context object.
M_MET_DERIVED_GEOMETRY_REGIONSpecifies a MIL metrology derived geometry region object.
M_MET_RESULTSpecifies a MIL metrology result object.
M_MOD_GEOMETRICSpecifies a MIL Model Finder context object that can be used to perform searches using a general geometric search algorithm.
M_MOD_GEOMETRIC_CONTROLLEDSpecifies a MIL Model Finder context object that can be used to perform searches using a controlled geometric search algorithm.
M_MOD_RESULTSpecifies a MIL Model Finder result object.
M_OCR_FONTSpecifies a MIL OCR font context object.
M_OCR_RESULTSpecifies a MIL OCR result object.
M_PAT_MODELSpecifies a MIL pattern matching model object.
M_PAT_RESULTSpecifies a MIL pattern matching result object.
M_PROJ_LISTSpecifies a MIL MimProject() result object.
M_REG_CONTEXTSpecifies a MIL registration context object.
M_REG_RESULTSpecifies a MIL registration result object.
M_SEQUENCE_CONTEXTSpecifies a sequence context object.
M_STAT_LISTSpecifies a MIL MimStat() result object.
M_STAT_MULTIPLE_RESULTSpecifies a MIL MimStatMultiple() result object.
M_STR_CONTEXTSpecifies a MIL String Reader context object.
M_STR_RESULTSpecifies a MIL String Reader result object.
M_STRUCT_ELEMENTSpecifies a MIL structural element object.
M_SYSTEMSpecifies a MIL system object.
M_USER_OBJECT_1Specifies the first user-defined object.
M_USER_OBJECT_2Specifies the second user-defined object. </blockquote>
UserVarPtrData type info Data type: MIL_INT64 |
| M_DMIL_PUBLISHED_NAME |
Inquires the MIL object's MIL identifier from the MIL object's name.
ControlFlagSpecifies the following.
M_PTR_TO_MIL_INT( MIL_CONST_TEXT_PTR * String )Casts the MIL object name from a MIL_CONST_TEXT_PTR to a MIL_INT. </blockquote>
UserVarPtrData type info Data type: MIL_ID |
Return value
回傳值是查詢的資料,格式是 MIL_INT,如果查詢的資料不是單一的值,或者不是 MIL_INT ,函式便回傳 M_NULL。
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.