[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Problem with Boolean Input



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

www.itf.biz
www.itf.biz
Adrien JEZEQUEL
Simulations Thermiques Dynamiques
ITF
62, Rue du Bolliet
73230 St Alban Leysse
FRANCE
Phone :
Fax :
Mail:
+33(0) 479 750 029
+33(0) 479 852 122
a.jezequel@itf.biz ou aj@itf.biz
Afin de contribuer au respect de l'environnement, merci de n'imprimer cet e-mail que si nécessaire
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!


_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@cae.wisc.edu
https://mailman.cae.wisc.edu/listinfo/trnsys-users