User manual
DocumentMT0100P.N
©XsensTechnologiesB.V. MTiandMTxUserManualandTechnicalDocumentation
4
2.3.3 InterfacethroughDLLAPI
IfyouwanttodevelopaWindowssoftwareapplicationusingaprogramminglanguage(C,C++,etc.)thatuses
theMTiorMTxyoucanconsiderusingtheDLLAPI.Thismethodofinterfacing(thefunctioncalls)issimilarto
theCOMobject,butisbasedonastandardCdynamiclinkedlibraryinterfacemethod.So,thereisnoneedto
registertheDLLontheoperatingsystem,thefunctionsareaccesseddirectlyinyoursourcecodebylinkingthe
DLL. The DLL to be used is the XsensCMT.DLL, so it is the same binary as the COM‐object, but a different
interface. If you program in C, C++ or other programming languages you will find that the DLL interface
provideseasiersupportforstructureddata,andthisisthereforetherecommendedmethod.
ÆPleaserefertotheMTSoftwareDevelopmentKitDocumentationformoreinformationonthistopic.Fora
detailedfunctionlisting,pleaserefertotheHTML/CHMdoxygendocumentation.
2.3.4 Directlow‐levelcommunicationwithMTiorMTx
Direct interfacing with the MTi or MTx (RS‐232) is the natural choice if you are looking for full‐control,
maximum flexibility and/or have hard real‐time performance requirements. The MTi or MTx’s low power
embeddedDSPperformsallthecalculations/calibration,youjustretrievethedatafromtheserialportusing
theMTbinarycommunicationprotocolusingstreaming(free‐running)modeorpolling(request)mode.Even
thispartismadeeasyforyoubytheinclusionofthesourcecode(C++)oftheCommunicationMTC++classes
(theCMTsourcecode)intheMTSDK.ExampleC++application codeshouldgetyouquicklystartedonyour
development platform of choice. Example code that has been functionally checked and compiled on both
WindowsandLinuxisincluded.
ÆPlease refer to the MT Low‐level communication protocol documentation and the doxygen HTML
documentationformoreinformationonthistopic.
Appliesto:WindowsPCplatform
Appliesto:Any(RT)OSorprocessorplatform(C++)