Dear Marco, If you want to use data value written on your text file, you have to put parameter 5 of your data reader (interpolate or not) to "-1" instead of "1". Best regards
Please, consider our environmental responsability before printing this email Le 15/03/2012 13:18, Marco D'Urso a écrit : Dear TRNSys users, it's the first time I use this program and I have a problem importing a simple txt file with boolean value (0 or 1) with a Data Reader: In my file a have something like this ..... 21 0 0 0 0 0 1 0 22 0 0 0 0 0 1 0 23 0 0 0 0 0 1 0 24 0 0 0 0 0 1 0 25 0 0 0 0 0 0 1 26 0 0 0 0 0 0 1 27 0 0 0 0 0 0 1 28 0 0 0 0 0 0 1 ...... but when i go to read this inputs with a plotter and a printer (creatinh a .out file) i have this response: ...... +2.3000000000000000E+01 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +0.0000000000000000E+00 +2.4000000000000000E+01 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +0.0000000000000000E+00 +2.5000000000000000E+01 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +5.0000000000000000E-01 +5.0000000000000000E-01 +2.6000000000000000E+01 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +2.7000000000000000E+01 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 +2.8000000000000000E+01 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +0.0000000000000000E+00 +1.0000000000000000E+00 ...... It seems like it try to give a mean value, but in my simulation, where i use a neural network created with Matlab, this is a big problem! How can i import these without change? Which settings I have to use? Thanks! |