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 COMobject, 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 DirectlowlevelcommunicationwithMTiorMTx
Direct interfacing with the MTi or MTx (RS232) is the natural choice if you are looking for fullcontrol,
maximum flexibility and/or have hard realtime performance requirements. The MTi or MTx’s low power
embeddedDSPperformsallthecalculations/calibration,youjustretrievethedatafromtheserialportusing
theMTbinarycommunicationprotocolusingstreaming(freerunning)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 Lowlevel communication protocol documentation and the doxygen HTML
documentationformoreinformationonthistopic.
Appliesto:WindowsPCplatform
Appliesto:Any(RT)OSorprocessorplatform(C++)