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

Re: [TRNSYS-users] problem with RCHECK



Hongbo,
  YCHECK and OCHECK are arrays that carry three letter codes for the units (C, kg/h, etc.) of a Type's inputs and outputs. The code "TE1" for example, means "temperature in degrees C." Each component passes the codes for its inputs and outputs to RCHECK and RCHECK looks to make sure that you do not have any inconsistent connections made in the input file (such as connecting a mass flow rate output to a temperature input). There are features in the Trnsys Studio that perform similar checks as well. I had a look at the Type564.for code and I do not see why it would generate an access violation as you describe. I would recommend that you send the project you are trying to run as well as your Type564 code to your distributor to see if they can help you. I would not recommend simply deleting the call to RCHECK since the access violation error is a good indication that there is a real problem somewhere.
Kind regards,
 David

On 1/8/2011 18:17, He Hongbo wrote:
Hi,

I found the problem about the code type564.for. In the code DATA STATEMENT part, if we delete the "CALL RCHECK(INFO,YCHECK,OCHECK)", then it works well. Or else we will get the error message "Access violation at address 10037D25 in module 'TRNDLL.DLL'. Read of address 00000003." In the TRNSYS manual chapter 8 8.3.5, an example code about how to create a new component does not include "CALL RCHECK(INFO,YCHECK,OCHECK)" in the DATA STATEMENT part. What is the function of RCHECK?

Thank you so much
 
Best Regards!!
_______________________________________________ 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