10.06.2016 Views

eldo_user

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Post-Processing Library<br />

LOAD_FILE<br />

LOAD_FILE<br />

Eldo PPL function to access waves inside an external database<br />

Loads a .wdb, .cou, .tr0, .fsdb, or .csv file in memory. The extension of the file is used to<br />

identify which format to use.<br />

Usage<br />

load_file $filename<br />

Arguments<br />

• filename<br />

The name of the file.<br />

Return Values<br />

Returns a list of run identifiers. These identifiers are labelled RunX where X is an absolute<br />

counter starting from 0.<br />

Examples<br />

If a file test.wdb contains one run:<br />

puts "[load_file test.wdb]"<br />

Implies “Run0” will be used as the run identifier label.<br />

If a file test2.wdb contains three runs:<br />

puts "[load_file test2.wdb]"<br />

Implies “Run0 Run1 Run2” will be used as the run identifier labels.<br />

If both commands are called in the same UDF:<br />

puts "[load_file test.wdb]"<br />

Implies “Run0” will be used as the run identifier label.<br />

puts "[load_file test2.wdb]"<br />

Implies “Run1 Run2 Run3” will be used as the run identifier labels.<br />

These identifiers are used to identify waves. For example if file test.wdb contains waves v(1)<br />

and i(r1), their internal names inside the PPL will be Run0::v(1) and Run0::i(r1). These names<br />

can be used in all expressions.<br />

1234<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!