Please enable JavaScript to view this site.

Function to read data related to a point on an MOT.

Syntax

i32 mot_get (i32 motId, i32 nPoint, real posX, real posY=NULL, real velY=NULL, real accY=NULL [, other=NULL])

motId

MOT reference code (obtained from the mot_create() function)

nPoint

Point number (0 = first point, -1 = last point)

posX

Value (returned by the function) of the interpolation key associated with the point (abscissa, x-coordinate)

posY

Array of doubles intended to hold the data (returned by the function) of the n ordinates (position coordinates relative to the posX abscissa).

Specify NULL (default) if you do not want to get the data. If specified <>NULL, the mot_get() function will download the nPoint data into the array

velY

Array of doubles intended to hold the data (returned by the function) of the n velocities (velocity coordinates relative to the posX abscissa).

Specify NULL (default) if you do not want to get the data. If specified <>NULL, the mot_get() function will download the nPoint point data into the array

accY

Array of doubles intended to hold the data (returned by the function) of the n accelerations (acceleration coordinates relative to the posX abscissa ).

Specify NULL (default) if you do not want to get the data. If specified <>NULL, the mot_get() function will download the nPoint data into the array

other

Data structure intended to hold the auxiliary data (returned by the function). (optional, default NULL)

If specified, the mot_get() function downloads into the array the data of the nPoint

Result

Returns:

Value

Meaning

1

Unable to enter point, container full

0

Operation OK

-1

motID does not exist

-2

Illegal nPoint value

-3

Illegal posY value (smaller data size than expected)

-4

Illegal other value (size different from the size specified at creation)

-6

MOT manager busy (other operation in progress)

-7

Empty (no point)

Validity

Rule, Task

Note


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC