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.

Eldo Control Language<br />

Library of Functions for Tasks<br />

.define_task main_task<br />

set myfile = NULL<br />

// Open the "jitter.results" file here:<br />

myfile = fopen("jitter.results", "w", \<br />

"cannot open jitter.results.\n")<br />

period_jitter(corner="tt", myfile=myfile)<br />

period_jitter(corner="ss", myfile=myfile)<br />

period_jitter(corner="ff", myfile=myfile)<br />

// Close the "jitter.results" file :<br />

fclose(myfile)<br />

.end_define_task<br />

.define_task period_jitter(corner="tt", myfile=stdout)<br />

/* Instead of calling here fopen("jitter.results", "w") during the<br />

* first call to this task to overwrite the file and then<br />

* fopen("jitter.results", "a") to append it,<br />

* it is much more efficient to move the call to fopen into the<br />

* main task and to use here the file variable myfile to print<br />

* some data in this file. */<br />

...<br />

simulation(...)<br />

fprint(myfile, "...")<br />

..<br />

.end_define_task<br />

Related Topics<br />

Library of Functions for Tasks<br />

fclose<br />

904<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!