Hello Lou,
It sounds as if you have already determined the algorithm for detecting the peak of the etalon trace. Is this correct? If so then you will have some condition at which you would like to "record" the output value. If you've already got this done, then there may be a better way to proceed than using an occurrence.
You mentioned that you will be recording the output value for a given etalon input value. In what way are you creating a record? Are you writing these values to file or simply creating an array to display on the front panel? In any case, I will assume that you need a data acquisition loop and a "recording" loop. I would recommend using a queue for this operation. If you take a look at the producer / consumer (data) design template, you will see how this process works. Essentially under a given condition, your peak detected condition, you will send data from the data acquisition loop down to the "record" loop. In this loop you can be writing to file or processing these data points however you'd like. Please post back and let me know if this helpful for you, or if I have misunderstood your question. Thanks,
Mike D.