Question: dsolve(numeric) procedure; returning values other than dependent variable values

I am using dsolve(numeric)with the procedure option to output the position of a body subject to acceleration. The results(position and velocity) are written into an array for the specified time-points. It all works fine. I use NLPSolve within the procedure called by dsolve as an intermediate step to calcualting the specified acceleration of the body. Is there a way to return the values calculated by NLPSolve? I can back-calculate from the output array values but it is extremely tedious. I can also view the results of NLPSolve using lprint but it is not clear how these results relate to the specified time points and I would want to store the values in a matrix. Any help much appreciated
Please Wait...