|
From: Frank M. H. <fm...@sp...> - 2008-09-13 23:29:11
|
On Friday 12 September 2008 17:39, Dan Lenski wrote: > On Thu, 11 Sep 2008 20:22:22 -0700, Keith Dart wrote: > > > > Uh oh, I actually have another heavily modified Python wrapper. :-O > > > > This version has: > > > > - more complete error reporting. > > - ibask wrapper > > - Faster "ask" function (write-read query). - Also works with Ines > > driver and compatibility library (with a #define) - Supports the > > lockdev library to keep multiple processes from stomping on > > each other (in the "find" function). > > Frankly, I would vote for Keith's code!!! It is much more complete than > the patch I just submitted (although mine has a few minor cleanups that > it lacks, I could "patch the patch" if desired). I've tried to integrate the patches from Keith and Dan, plus made some additional changes of my own (in svn now). I deliberately left out the lockdev stuff since I don't believe the binding should prohibit multiple processes from using a board. If you want that kind of functionality, I'd suggest adding support for iblock/ibunlock to the main library, then adding bindings. I also left off the "ask" part which combined a write and read into one function, as I don't want to extend the library in bindings, and it seems unlikely to provide significant speedup due to the slowness of the gpib bus. If I dropped anything else from the patches, it might just be an oversight. Also, I haven't actually tested the changes beyond making sure it compiles. |