interface between Simulink and Motive with API (not NatNet)

Post Reply
orhirshfeld
Posts: 16
Joined: Tue Jun 17, 2014 9:42 am

interface between Simulink and Motive with API (not NatNet)

Post 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
אור הירשפלד
MikeWitham
Posts: 1477
Joined: Mon Nov 04, 2013 10:19 am

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

Post 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,
Mike Witham
TrackIR Product Manager
orhirshfeld
Posts: 16
Joined: Tue Jun 17, 2014 9:42 am

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

Post 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
Post Reply