//genesis // // silib.g adds the si (spike interval) object into the // genesis runtime. /* ** Now deal with the new object ** ** new class definitions can be added using the 'newclass' command ** Note that classes are simply used for grouping of related elements ** and do not alter the element functionality in any way ** See scheduling (/usr/genesis/startup/schedule.g) for an example of class use */ /* newclass exampleclass */ /* ** New actions which are used by elements are defined with the 'addaction' ** command. The action number must be consistent with the case number ** used in the element code (see example.c) */ /* addaction NEWACTION 20 */ /* ****************************************************************************** ** Example OBJECT TABLE ** ****************************************************************************** */ //============================================================================ // name data_type function class //============================================================================ object spikeinterval si_type SpikeInterval buffer \ -author "S.J. Nowlan Salk Institute 8/91" \ -actions RESET PROCESS CHECK \ -messages VOLTAGE 0 1 Vm \ THRESHOLD 1 1 threshold \ -fields interval thresh abs_refract prev_time interval_fname interval_file file_io \ -description "Computes interspike interval in its interval field. Interspike intervals may then be graphed or saved to the file specified in interval_fname by setting file_io to 1(true)."