Please enable JavaScript to view this site.

Vensim Help

C/C++int VEFCC vensim_get_vecvals(const unsigned long *vecoff,float *vals,int nvals)  ;

int VEFCC VensimCGetVecVals(int context,const unsigned long *vecoff,float *vals,int nvals)  ;

Javapublic static native int get_vecvals(int vecoff[],float val[],int nvals)  ;

public static native int CGetVecVals(int context,int vecoff[],float val[],int nvals)  ;

VBPrivate Declare Function vensim_get_vecvals Lib "vendll32.dll" (vecoff As Long, varvals As Single, ByVal nelm As Long) As Long 
Pascalfunction vensim_get_vecvals(vecoff:LongintPtr; varvals: SinglePtr;veclen:Integer):  Integer ; stdcall ; external 'vendll32.dll' ;

Gets a vector of values at the current simulation time.  For use during a game, or when controlling simulation using vensim_start_simulation and vensim_continue_simulation.  Getting a vector of values can speed up data retrieval.

Arguments

vecoff        A vector containing offsets as returned by vensim_get_varoff.  

vals                The location into which the values for variables should be written.

nvals        The number of elements in the vector.

Returns

The number of elements in the vector or 0 on error.

Notes

If any offset is invalid and NA will be returned at that location.