Hey TulioB,
The error you are getting: NIMA_mathError -77410 has a description of "An error occurred in internal math calculations". This is a brief description, but it basically means that the fuction can't perform its operation because of a parameter that you have passed it. I was wondering if you have tried to run one of the Example programs that can be found in the following directory: C:\Program Files\National Instruments\Motion Assistant\API\Examples. I would suggest trying to run the ContourMove Example as it uses the NIMAGetPositionProfile Function. Here is an exert from the example code
nimaCoordPt* positionProfile;
f64* positionTimeIndex;
u32 dataReturned;
herr = NIMAGetPositionProfile(handle, &positionProfile, &positionTimeIndex, &dataReturned);
Try debugging your code with breakpoints to see if you can find out which part of the function is causing the error. Let me know what you find. Also, let me know if you can get the example program to work.
I hope this helps. Please let me know if you have further questions or concerns. Thanks, and have a great day.
Regards,
DJ L.