Home › Forums › SYSTEM › Exporting results as a text or csv file › Reply To: Exporting results as a text or csv file
Hello,
I have been working with the VB scripting for each component and I found the results I had been expecting. I wrote some simple scripts for each component and stored the output result in individual text files for each component. A little knowledge on VB and the tutorial that came along with the documentation helped a lot.
Attached with this reply is a text file with the VB code that I wrote for obtaining the Total Power Value of an Optical Power Meter for 10 iterations.
* Using the ‘Component Result’ I noted the parameters the values for which are to be populated in the text file.
* The script was written on the ‘Component Script’ window after ‘enabling script’ and I chose the option for running the script at the end of complete simulation
Now, I am trying to figure out a way of appending the results at each simulation because the text file is overwritten with each simulation. Also, I am trying to put the results of all components into a single file. At present the result for each component is written on a different text file.