00README.txt -- This file afvp.c -- main source file of the model afvp.h -- header file of the model vpintv.c -- functions used for determining ventricular pacing rate (called by afvp.c, only 2 VRS algorithms are included as examples) rand.c -- functions used for determination of AF rate (called by afvp.c) config.txt -- an example of configuration file used as model input plotRR.m -- a simple Matlab script for quick view of the model- generated RR intervals (eg., outrr1.txt) To compile: make This should generate no errors. Run the model by typing: ./afvp config.txt The program will read the configuration parameters from config.txt and generate the following output files (filename defined in config.txt): outaa1.txt -- atrial intervals (or AA intervals, PP intervals) outrr1.txt -- ventricular intervals and event types (RR intervals, and flags for pace/sense) outav1.txt -- time, activation direction flag, AVJ recovery time, AVJ conduction time, AVJ refractory period outlog1.txt -- detailed event log file (for purpose of debug and detailed analysis) You may specify random seed numbers by an extra command line argument, otherwise the random number is taken from the system clock. Note that for repeated rapid executions of the code, some sequential calls may have the same random number. Plot the output in Matlab with plotRR('outrr1.txt')