09.03.2013 Views

Simulator 16 User Guide - PowerWorld

Simulator 16 User Guide - PowerWorld

Simulator 16 User Guide - PowerWorld

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LoadContingencies Function (version 9)<br />

The LoadContingencies function can be used to read a set of predefined contingencies from a<br />

<strong>PowerWorld</strong> Auxiliary Contingency file. Thus once you have defined a set of contingencies in<br />

<strong>Simulator</strong> and saved the list to a <strong>PowerWorld</strong> Auxiliary file, you can specify the filename with this<br />

function and the <strong>Simulator</strong> Automation Server will load the contingencies into memory.<br />

LoadContingencies(fileName, EString, {tAppend})<br />

Parameter Definitions<br />

Example<br />

Filename : String The name of the <strong>PowerWorld</strong> Auxiliary file containing the defined<br />

contingencies. If the file cannot be found, and error will be returned through EString.<br />

EString : Variant This parameter must be assigned a variable declared as a Variant. This<br />

parameter is for a return value only, and will assign the passed variable a string representing an<br />

error that may have occurred in the <strong>Simulator</strong> Automation Server. If no error occurred, the<br />

EString variable will return an empty string.<br />

TAppend : Boolean This parameter is optional. If you have more than one list of contingencies<br />

in separate files, you can append the lists together in the <strong>Simulator</strong> Automation Client by passing<br />

the Boolean value True in this parameter. The default if not passed is False, meaning any<br />

existing contingencies in the <strong>Simulator</strong> Automation Client would be cleared prior to loading the<br />

new list.<br />

LoadContingencies("c:\my files\ctgfile.aux", EString, True)<br />

This function call will load a previously created list of contingencies that was saved in the<br />

<strong>PowerWorld</strong> Auxiliary file format. The file name string identifies the location and name of the<br />

auxiliary file. By passing the value True in the optional parameter tAppend, <strong>Simulator</strong> will read<br />

the list of contingencies and add them to any existing contingencies already loaded in <strong>Simulator</strong>.<br />

Contingencies in the list existing list with the same name as contingencies in the appending list<br />

will be replaced by the records in the appending list.<br />

©2011 <strong>PowerWorld</strong> Corporation<br />

1477

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!