Hello, I have a question regarding the data generated in Monte Carlo simulations. Currently I have an schematic which I need to simulate and save/retrieve specific transient values. My problem is that it doesnt save all the iterations, only the first or the last to a text file. I need to save those values to work later on python/Matlab and in a .txt is the easiest way.
I have the following in a .ocn (ocean script) which triggers after the simulation
Out_It1 = outfile(".../Iteration_1.txt" "w")
Out_It2 = outfile(".../Iteration_1.txt" "w")
for(i 1 19200
sprintf(g "/I%d/Vp" i)
ocnPrint(?output Out_It1 value(VT(g) 100m 'iteration 1) ?numberNotation 'none)
)
close(Out_It1)
for(i 1 19200
sprintf(g "/I%d/Vp" i)
ocnPrint(?output Out_It2 value(VT(g) 100m 'iteration 2) ?numberNotation 'none)
)
close(Out_It2)
I tried different things, and the data regarding this is very limited. Is it possible to do using an ocean script? Or if it isnt that easy could I get some insight on how to achive what I want. Thanks in advance,
Yass