# output_interval

Defines how often to output an object

## Synopsis

output_interval = <days>
<list_variable>.output_interval = <days>
<table_variable>.output_interval = <days>


## Description

This settings defines a value in simulation days on which to export data. When set within a network block, this defines how often to export the network. When set for a global list or table variable, this defines how often to export the contents of the list or the table.

## Options

days

The number of days between exports of the associated output data.

list_variable

The name of a global list variable on which to set an output interval.

table_variable

The name of a table variable on which to set an output interval.

## Examples

The following block defines a FRIENDS network that writes an output file for the network every $$7$$ days.

network FRIENDS {
is_directed = 1
has_group_agent = 0
. . .

output_interval = 7
}


In this code, a global list friend_list is defined, and written to the output directory every $$30$$ days.

global_list friend_list
friend_list.output = 1
friend_list.output_interval = 30