Page 1 of 1

interface between Simulink and Motive with API (not NatNet)

Posted: Sun Nov 23, 2014 4:25 am
by orhirshfeld
Hello
I'm trying to interface between Simulink and Motive
I'm having trouble to do it with NatNet and I wish to try solve it with Motive API as i did it before for Tracking Tools
however I didn't find any information regarding the Motive API
Where I can find which commands available and which dll's need to be loaded?
Maybe there is example for Matlab or Simulink (for API not NatNet)?

Thnak you
Or Hirshfeld
אור הירשפלד

Re: interface between Simulink and Motive with API (not NatN

Posted: Tue Nov 25, 2014 4:38 pm
by MikeWitham
Hello Or,

I have responded to the ticket you submitted at help.naturalpoint.com, but I will re-post the information here so others may find it.

The Motive API comes with the Motive installer. The relevant files can usually be found in C:\Program Files\OptiTrack\Motive. There are several .dll's in that folder that need to be included in the root directory of the resulting executable. The most direct and simple solution is to include them all. The inc folder contains all the needed header file, which can be used to see which commands are available. The lib folder contains additional .dll's and libs that may be needed depending on how you end up linking. Yet again, the most simple solution is to place them all in the root exevutable for the Motive API. You can then find Commands in NPTrackingTool.h.

Regards,

Re: interface between Simulink and Motive with API (not NatN

Posted: Sun Apr 26, 2015 1:51 pm
by orhirshfeld
Thank you for the help
I succeed connecting using simulink, my project is in GitHub and MatlabCentral
http://www.mathworks.com/matlabcentral/ ... -hirshfeld