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

Re: [TRNSYS-users] String information in Type parameters



María,
  The short answer is "no, not really." Parameters are intended to be numerical values. The "string" option in the parameter list of units is for the situation in which you have defined a variable name that is set to a numerical value. You are on the right track with defining special cards in the proforma. The Type itself will need to be able to accept a LABELS statement. The first special card would be always set to:

LABELS 1

then another special card would be set to the user-defined value. You can look at the way that Type62 and Type155 are done both at the proforma level and at the source code level.

Kind regards,
 David


On 11/23/2012 11:28, Maria Ros Izquierdo wrote:
Dear Sir,

I would like to include string information as a parameter in a cycle. Is that possible? I defined a proforma to include it, and changed the source code to jump that new parameter. However, when TRNSYS performs the type_check, it detects the string information as a Variable, and fails. Is there any code or reserved work to include string information apart from comments? I also tried to include them as Special cards, but TRNSYS fails again. I require that the information could be updated by the user.

Thanks in advance for your help,

Best Regards,

María

-- 
María Ros Izquierdo. 
Dept. Computer Science and A.I.
ETSI Informática y de Telecomunicación
University of Granada
18071- Granada (Spain)
Tel. +34-958241774



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

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley@tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com