AnsweredAssumed Answered

2-dimension data in .tim file

Question asked by khseah on Nov 18, 2009
Dear all,

I have written my data to a .tim file with the following format:

! Created Wed Nov 18 12:10:32 2009
VAR mcTrial = 0
BEGIN TIMEDATA
% t v
   0.000000000e+00   4.154076e-01
   4.734848485e-10  -2.952230e-03
   ...
end

VAR mcTrial = 1
BEGIN TIMEDATA
% t v
   0.000000000e+00   4.154076e-01
   4.734848485e-10  -2.952230e-03
   ...
end
...

VAR mcTrial = 100
BEGIN TIMEDATA
% t v
   0.000000000e+00   4.154076e-01
   4.734848485e-10  -2.952230e-03
   ...
end

While trying to do a read-back of the results using a TimedDataRead, I got this error message:

Error detected by hpeesofsim during Ptolemy simulation initialization `DF2'.
    TimedDataRead `T19': Unable to get the last independent variable value
    from data file.
Error detected by hpeesofsim during Ptolemy simulation initialization `DF2'.
    TimedDataRead `T19': Time data must be single dimensional. It is
    currently multi dimensional of size - [31681][31681].

Does anyone know how I can fix this?

Thanks!  

Outcomes