Jump to content
Sign in to follow this  
VisSim Forum Archives

Rereading a Data File

Recommended Posts

 

Submitted by Joe on Wed, 10/27/2010 - 22:35 

 

I have a compound block that reads a data file for 1440 seconds (the current length of the simulation). I now want to make the simulation 2880 seconds. This means reading the same data file twice over the course of the simulation. I would like to do something like "auto restart" for the compound block but I didn't see that option in "compound properties". What is the best way to have the compound block reread the data for the second half of the simulation?

Share this post


Link to post
Share on other sites

Submitted by Anders89 on Wed, 10/27/2010 - 22:43.

The easiest way to do this is to use a map block instead of an import block with your data file and feed the map block with a sawtooth block (period=1440 and amplitude=1440) as input. This will cause your data to be rescanned every 1440 seconds.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...