C/C++ | int VEFCC vensim_get_sens_at_time(const char *filename,const char *varname,const char *timename,const float *attime,float *vals,int maxn) ; |
int VEFCC VensimCGetSensAtTime(int context,const char *filename,const char *varname,const char *tname,const float *intime,float *vals,int maxn) ;
Java | public static native int get_sens_at_time(String filename,String varname,String tname,float intime[],float vals[],int maxn) ; |
public static native int CGetSensAtTime(int context,String filename,String varname,String tname,float intime[],float vals[],int maxn) ;
VB | Private Declare Function vensim_get_sens_at_time Lib "vendll32.dll" (ByVal filename$, ByVal varname$, ByVal timename$, attime As Single, vals As Single, ByVal maxpoint As Long) As Long |
Pascal | function vensim_get_sens_at_time(filename: PChar; varname:PChar; timename:PChar; attime:Single; vals:SinglePtr; maxn:Integer ): Integer ; stdcall ; external 'vendll32.dll' ; |
Gets results from a sensitivity run at a specific type and across sensitivity runs.
Arguments
filename Dataset (.vdf) file containing the sensitivity results.
varname Name of the variables to get results for (fully subscripted)
timename Time base name (usually "Time")
attime The time at which results should be retrieved
vals vector of values at the specified time
maxn The maximum number of value to put into vals.
Returns
The number of values placed in vals - 0 on failure. If the function is called with maxn equal to 0 it returns the number of values available (that is the number of sensitivity simulations performed).
Notes
This function will return 0 if the run does not exist, if the run is not a sensitivity run, or if the variable does not exist or was not saved.
See Also
vensim_get_data