Welcome to the TRNSYS Users Forum.

The forum is a place where people can interact and have discussions about different topics involving the use of the TRNSYS software package. Here you can post topics for discussion or questions on using TRNSYS and get advice from other users or TRNSYS experts. This forum is not intended for detailed technical support. Users should contact their distributor’s hotline for such assistance.

Some tips for success on using the forum:

  • Follow the Forum Rules posted in Forum Administration.
  • There are categories for different types of topics and questions. Post your topic or question into the proper category.
  • Before posting a topic or question search the existing topics  (and the TRNSYS Users listserv archive) to see if a similar topic or question has already been answered.
  • Use a descriptive topic name. Don’t use attention getting subjects, they don’t get attention and only annoy people.
  • State the version of TRNSYS and which add-ons your are using.
  • Include enough specific details for your topic of question to be answered. Just posting “Why am I getting an error?” without describing the specific error and what you are trying to do when you get the error will not receive a response that fixes your issue.
  • Remember when people help you, they are doing you a favor. Be patient, help people out by posting good descriptions of what you need help with, and be polite even if a response does not solve your issue.
  • Moderators may edit your post for clarity or move your topic to a more appropriate category.

Notifications
Clear all

Getting the time value of the specific event

1 Posts
1 Users
0 Likes
254 Views
0
Topic starter

Hi,

I want to get the time value during the simulation when the specific condition occurs.
For example, I have a controller and when the control signal reaches zero, I want to print the latest time value of the simulation. 
I can get simulation time dependent values from the online plotter, but I can't get the same values from the printer(Type65c) block.
I need them as text files formatted by the printer(Type65c). Because I will use them in the MOBO optimization tool.
 
Here is the conditions I have used:
 
A = GT(CONTROL,20)
B = LT(CONTROL,44)
C = EQL(COLD_FLOW,0)
D = EQL(HOT_FLOW,TOTAL_FLOW)
X = AND(AND(AND(A,B),C),D)
STOP_COND = GTWARN(X,0,2) (I stop simulation with error when the condition triggers, it may be unnecessary)
LITRAJ = TIME*TOTAL_FLOW (This is my main goalI can see the calculated values from plotter, but not from printer)
1 Answer
0
Topic starter

Mehmet,

  There is a "triggered printer" component in the TESS Utility library. It is nearly identical to the Type25 printer except that it takes an additional input and only writes to the output file when that additional input is greater than zero. 

kind regards,

 David

 

Share: