From: Hernán F. <hj...@hj...> - 2025-09-19 00:47:35
|
hi Dave, thanks for that. It didn't really work for me at first - it'll just stop working after the first chunk of data. I had to modify it by commenting out "end = (stat & END);" But I have to wait for it to time out to print out the last chunk. It's good enough for my needs though! Cheers On Thu, Sep 18, 2025 at 4:45 AM dave penkler <dpe...@gm...> wrote: > Hi Hernán, > This little programme works for me. It sets the pad of the controller to > 23 and goes into listen mode by sending the command string UNL, UNT, LSN 23 > to the controller. > tplot2 >file.hpgl > cheers, > -Dave > > On Thu, 18 Sept 2025 at 09:12, Hernán Freschi <hj...@hj...> wrote: > >> Is it possible to run a device (a ni_pci in particular) in "listen only" >> mode? Instead of being a controller, I'd like it to be a listen only >> device, so I can emulate a plotter >> >> My idea is to just grab all of the HPGL commands a device sends and then >> convert into PDF. >> >> This has already been discussed 2 decades ago: >> https://sourceforge.net/p/linux-gpib/mailman/linux-gpib-general/thread/446940000.1056300621%40%5B192.168.1.1%5D/#msg2697429 >> but the solution is specific to a particular device. >> >> The NI forums mention: >> >> #define IbcLON 0x0022 /*Enter listen only mode*/ >> >> but it doesn't seem like linux-gpib implements this? >> >> Thanks >> _______________________________________________ >> Linux-gpib-general mailing list >> Lin...@li... >> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general >> > |