Hi Wan, That is strange. I made a model that looks identical to your AC_test using 10.1, and the output looks correct. Here are the parameters I'm using for the 'Sine Wave' block: Sine type : Sample based Amplitude: 1 Bias: 0 Samples per period: 10 Number of offset samples: 0 Sample time: 1/8
The sample time of the ADC block should be 1. The ADC block uses 4 or 8 downsample blocks for interleave off and on respectively to mimic the parallel output of the ADC, which is why you have to set sample time to either 1/4 or 1/8. The line with the delay block set to 2 rather than 1 is connected to the downsample block with offset sample = 0. My guess is the latency through the downsample block for the o0 sample is zero, so to keep it aligned with o1-o7, it needs an extra delay. If I'm wrong, someone correct me. In any case I don't think this is your trouble. If you're still having trouble, feel free to email me your model and I'll take a look at it. Good luck, Laura On Tue, Oct 28, 2008 at 10:37 PM, <[email protected]> wrote: > Hi Laura: > > When I set the sample time of sine wave to 1/8, all outputs are still same. > I look at the subsystem of ADC module, and I find, except O1 has 1 more > cycle delay, all other channel have same function. I am not sure how the ADC > is implement. Do you have any idea? > > Thanks > > Wan > > ------------------------------ > *From:* Laura Spitler [mailto:[email protected]] > *Sent:* Wednesday, 29 October 2008 12:15 PM > *To:* Cheng, Wan (ATNF, Marsfield) > *Cc:* [email protected] > *Subject:* Re: [casper] Casper 10.1 library issue > > Hi Wan, > In the Simulink 'Sine Wave' block, do you have your sample time set to 1/8 > or 1? Similarly if you turn interleave off, the sample time should be 1/4. > > Best, > Laura > > > On Tue, Oct 28, 2008 at 8:59 PM, <[email protected]> wrote: > >> Hi All: >> >> I just set a simple ADC module in simulink and check the ADC output. But >> the issue is that all eight outputs have same output data. This is different >> with showed in manual. From manual, these output should generate 8 sequence >> sampling. But as I know, they seems same. For details, please see the >> attached. >> >> Any idea? >> >> Thanks >> >> Wan >> > >

