- From: Dominik Kuhlen <werkstudent1.icmdti9_at_mch.siemens.de>
- Date: Fri, 9 Aug 2002 10:06:25 +0000
Hello
Thank you for your response, but I think I was misunderstood.
On Friday 09 August 2002 00:42, you wrote:
> Dominik-
>
> I've succesfully hacked the driver to respond to the external REQ0 pin
> on the pcidio32hs card. All you have to do is change the command setup
> to allow for external timers (scan_begin_src = TRIG_EXT; scan_begin_arg
> = 0;)
> and change ni_pdidio_cmdtest() to allow for TRIG_EXT.
I checked the sources and the TRIG_EXT is already a valid scan_begin_src
argument. I tried it with demo/cmd, and this works (strange about this is:
if I apply 5V via 12kOhm to the REQ pin, the level is 0.8V (at a data input
pin I measure 4.4V)).
But : I would like to use the REQ clock just the opposite direction.
I need the DAQ card to generate the clock signal on the REQ1 pin.
This should work with scan_begin_src = TRIG_TIMER.
David said (see below) that the driver needs to get hacked if
I like to have a clock signal that is generated by the DAQ card.
I read all (really all?) the documentation mentioned in the ni_pcidio.c
(341330A ...) but I can't find what to change in the driver to enable the
REQ1 as clock (i.e. the internally generated clock is output to the REQ1).
>
> I did have a bit of trouble getting this to work with DMA enabled on the
>first
> go, so you may want to consider disabling DMA until you are confident
> that
> your code is working correctly.
I think if have DMA support enabled (#define USE_DMA), and this seems to work.
>
> --brent
>
> Dominik Kuhlen wrote:
> > On Wednesday 07 August 2002 19:02, you wrote:
> > > On Wed, Aug 07, 2002 at 03:33:43PM +0000, Dominik Kuhlen wrote:
> > > > Hello
> > > >
> > > > I'd like to use pattern I/O transfer with the NI6533.
> > > > i.e. : Using the REQ1 as clock (internally generated)
> > > > and reading 16-Bit (A0-B7) digital values.
> > > > The ni_pcidio.c sourcecode tells me that this should
> > > > work, but it doesn't. The read() call works but no clock
> > > > is generated.
> > >
> > > I assume you mean that you don't see the clock on an
> > > external pin. You will need to hack the driver to do
> > > this, since it was never added.
> >
> > Yes, that is the situation. I read the DAQ-DIO tech. ref. manual
> > but I can't figure out what's missing, because the ni_pcidio_cmd
> > function does exactly what the manual says in chapter 4.
> > Is there some kind of "hidden" bit that enables REQ1 pin as clock ?
> > I thought this is done by writing 4 to ReqReg.
> > Or do I lack the right documentation?
> >
> > I tried the example that I found in the DIO 6533 Register-Level
> > programmer Manual about burst handshaking transfer, and this works
> > (i.e. I can see a clocksignal on the pclk pin)
> >
> > Do you (does anybody) know how to solve this, or do I have to
> > contact NI for further information.
> >
Thank you
Dominik
Received on 2002-08-09Z09:06:25