Re: ibwt() / ibrd() immediatly following ibclr()

dave penkler <[email protected]> Thu, 17 Nov 2022 13:45:16 +0100
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <CAL=kjP1E7uuGr9od_-F7sDZGruuHeMP=wmMmC8fAwnUk4kiF3Q@mail.gmail.com>
When reproducing the problem with an HP34401A using an NI-PCI board
the error message was intermittent . Adding a delay of ~1ms between
the ibclr() and ibwrt() fixed it.
There is no problem with the driver, it just takes a certain time for
different instruments to complete the device clear operation.
cheers,
-Dave


On Wed, 16 Nov 2022 at 20:21, Michael K via Linux-gpib-general
<[email protected]> wrote:
>
> I have some code that writes an "IDN?" and reads the requested string from a device.
> I issue an ibclr() immediately before the ibwt(). It seems that if I do this, I receive an error (2 - 'You have attempted to write data or command bytes, but there are no listeners currently addressed.').
> If I add a ~20ms delay after the ibclr(), before the ibwt(), then it works as expected.
>
> Is this a problem with the device ? (HP8753b) or in the driver (or my approach).
>
> Michael
>
>
> _______________________________________________
> Linux-gpib-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general