From: dave p. <dpe...@gm...> - 2022-11-17 12:46:20
|
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 <lin...@li...> 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 > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linux-gpib-general |