In you subvi.vi you do feed the correct dt into the function, but then you do not use it when defining your output function (i.e. when you convert it to dynamic data, so the default is 1). I have attached a change that will eliminate the dt mismatch.
In addition, the waveform you simulate is only 1000 points while the up/down ramp is 10000. These two need to be the same to see what you want to see (probably both set at 1000). Also, you have a function to determine the duration of the sine wave, you need to connect this to the time duration input of you sub-vi so that they have the same duration.
Message Edited by rpursley8 on 06-22-2005 08:25 AM
Randall Pursley