OK, so now explain the files A, tm, s1, and s2. I know that these file names match the parameters of the Gaussian Impulses you are generating, but I'm puzzled by the arrangement of numbers in these files. I see nine rows of three numbers, with the final row being three zeros. I'm guessing (but am not sure) that each row represents a PQR complex formed by summing the Gaussian impulses created by the three sets of A, tm, s1, and s2 values. But why are there 8 rows and a zero row? What is it that you want to do with these multiple rows?
Here's what I've got so far -- I've taken your Impulse Parameter Cluster (with A, tm, s1, and s2 values) and created a TypeDef from it. I've written a function that takes "t" and an Impulse Parameter Cluster as inputs and returns an Impulse Value. I'm working on a routine to read the A, tm, s1, and s2 files and create an Array structure of Impulse Parameter Clusters, but as the first paragraph suggests, I'm uncertain whether this should be a 1D or 2D array, and what the dimensions signify.
The final question is what do you want as a simulation? I see some strange code going into your ecg VI, but despite reading your VI's documentation (what? there's no documentation?), I wasn't sure what you intended. How does timing of the beats work? Are there supposed to be 8 different waveforms? If so, how do you choose which to use (or are they mixed together somehow)?
This is kind of fun -- too bad I have no idea what I'm supposed to be doing ...
Bob Schor