question in cmd.c demo file.

Hi,

I have a question about a sample code in comedi distribution.
In ~/comedi/comedi_examples/comedi/demo/cmd.c file, line 147,

there is this line inside while loop :
for(i=0;i<ret/2;i++){

why is ret divided by 2?

In the graph of the digitized signal, I only see the first half on
the left. The second half on the right drops to zero.

If I want to see the full graph, what should I do?

Regards,
Ju

Received on 2004-12-09Z08:56:26