Re: continuous acquisition on PCI-DAS4020/12

On Thursday 02 August 2007 11:40, Kurt Rosenfeld wrote:
> We can't seem to get the cmd.c program to do continuous
> streaming with our card.  The following modifications
> did not do it.  The program still outputs 32768 samples
> and then exits.  The reason it exits the main loop is
> that the read() call returns 0.
>
>  //cmd->stop_src = TRIG_COUNT;
>  cmd->stop_src =   TRIG_NONE;
>  //cmd->stop_arg = n_scan;
>  cmd->stop_arg =   0;
>
> Is this card known to work in continuous mode?  Suggestions?
> thanks, -kurt

It used to work, but it's been a long time since I've had access to that 
hardware.  You should uncomment the line in the driver defining 
PCIDAS64_DEBUG, which should generate kernel debug messages you can see in 
dmesg or your system log files.

Also, it looks like, you're editing the wrong function in demo/cmd.c.  
prepare_cmd() isn't used by the unmodified cmd.c

-- 
Frank

Received on 2007-08-02Z21:41:21