Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

NIMA_mathError error

Hello,

I’m using Motion Assistant  1.2 API to generate the data points for a contoured move. After calling NIMAGetPositionProfile I’m getting NIMA_mathError error (error code -77410). The error description is very brief, so I’m not sure were the problem is. What could be the causes for NIMA_mathError?

Thanks.

0 Kudos
Message 1 of 2
(3,112 Views)
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.
0 Kudos
Message 2 of 2
(3,084 Views)