| ||||||||||||||||||||||||
rsRsiOpenOpen an existing or create a new .rsi file. Open an existing .rsi file or create a new .rsi file if it does not exist. If the .rsi file does not exist, this function creates the .rsi file on disk and pre-populates the list of input ports as specified in modelFileName. SyntaxRsiFile *rsRsiOpen ( RsHandle * h, const char *rsiFileName, const char *modelFileName); Parameters
Return Value
Pointer to an RsiFile structure that must be used in all subsequent calls
to rsRsi* functions. NULL, if an error occurred. In that case, call
rsGetLastError to retrieve the error message string.
rsRsiCloseClose an .rsi file. Close a .rsi file that was opened with rsRsiOpen. Syntaxvoid rsRsiClose (RsiFile *h); Parameters
Return Value
None.
rsRsiGetModelNameReturns a pointer to the name of the model. Returns a pointer to the name of the model specified in the rsRsiOpen call. Syntaxconst char *rsRsiGetModelName(RsRsiFile *h); Parameters
Return ValuePointer to a string representing the model name.
rsRsiSaveSave changes to an .rsi file. Save a .rsi file after modifying it. Syntaxint rsRsiSave (RsiFile *h, const char *filename); Parameters
Return Value
rsRsiGetParameterValueGet the value of a model-specific setting. Get the value of a parameter in the .rsi file. Parameters are listed in section Model-Specific and Harness-Library-Specific Parameters. Syntaxint rsRsiGetParameterValue (RsiFile *h, const char *parameterName, char *buffer, int bufferSize); Parameters
Return Value
rsRsiSetParameterValueSet the value of a model-specific setting. Set the value of a parameter in the .rsi file. Parameters are listed in section Model-Specific and Harness-Library-Specific Parameters. Syntaxint rsRsiSetParameterValue (RsiFile *h, const char *parameterName, const char *newValue); Parameters
Return Value
rsRsiGetNumDependenciesGet number of files listed in the "Additional Dependencies" list. Get number of files listed in the "Additional Dependencies" list of the .rsi file. Syntaxint rsRsiGetNumDependencies(RsRsiFile *hRsi); Parameters
Return ValueReturns the number of files added as additional dependencies.
rsRsiGetDependencyReturn a file from the "Additional Dependencies" list. Return a file from the "Additional Dependencies" list in the .rsi file. Syntaxint rsRsiGetDependency(RsRsiFile *hRsi, int index, char *buffer, int bufferSize ); Parameters
Return Value
rsRsiAddDependencyAdds the file specified by the 'file' parameter as an additional dependency. Adds the file specified by the 'file' parameter as an additional dependency. No checking for duplicate listings is performed. A file does not need to exist to be added to this list. Syntaxint rsRsiAddDependency(RsRsiFile *hRsi, const char *file); Parameters
Return Value
rsRsiRemoveDependencyRemove a file from the "Additional Dependencies" list. Remove a file from the "Additional Dependencies" list in the .rsi file. Syntaxint rsRsiRemoveDependency(RsRsiFile *hRsi, const char *file); Parameters
Return Value
rsRsiClearDependenciesRemoves all entries from the "Additional Dependencies" list. Removes all entries from the "Additional Dependencies" list in the .rsi file. Syntaxint rsRsiClearDependencies(RsRsiFile *hRsi); Parameters
Return Value
| ||||||||||||||||||||||||