Skip to content

LipsonX/fastrak_mex

Repository files navigation

Polhemus Fastrak matlab mex

This is a solution of mex for Polhemus Fastrak. the code just subject to Li,Ru's research, a sensor uesed. you can download and modify any where, just thanks.

project usage

  • git clone
  • modify project properties
    • modify VC++ Directories adjust to your install of matlab include and library
    • modify output in Linker->General->Output File(optional)
  • select Debug/Release and x64 try to release or debug

fastrak.mexw64 usage

  • open matlab.exe(x64)
  • change dir into fastrak.mexw64
  • fastrak('initAll')include discover dev and connect setup. this can be separated into fastrak('init') fastrak('connect') fastrak('config')

  • fastrak('start')

  • fastrak('reset')save begin timestamp and clear data buffer

  • [begin end frameData] = fastrak('getData')get begin, end timestamp and frameData between reset and getData called.

  • fastrak('stop')to stop Cont and close connect from device

platform

  • at least Windows 7 SP1, x64
  • Matlab 2016a
  • VS2012
  • Polhemus SDK with VS2012 install

Debug usage(optional)

  • ctrl + atl + p attach to matlab.exe
  • set a break point in code
  • build
  • open matlab and change dir into project dir
  • tab >>fastrak('test')
  • clean mex
  • rebuild and try your new code

it may be help in Mex文件在VS2010中调试方法 and Compiling a MEX file with Visual Studio

About

a sample Polhemus Fastrak matlab mex version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published