From: Scott H. <st...@ma...> - 2005-01-14 03:20:20
|
At 22:26 +0100 1/13/05, Martin Henz wrote: > Scott Hannahs has a set of serial drivers maybe from > Albert Geven. Yes, these are based on Albert's NLSerial library from phillips. > > What is needed is a CROSS PLATFORM serial interface. > >So we need developers esp. for Mac OS and Linux. Since OS X and linux use the same ioctl and unix read/write calls that are posix compatible it should be a single piece of code that is cross compiled. >The next steps would be the examination of the collected >packages. Then we'll decide what we exactly want to do. The trick will be deciding how to do a lot of the visa properties, opening and closing and locking resources. I have a VISA imitation framework that I used for my GPIB driver. This was sort of VISA looking thing but it worked. Properties are stored as strings as a key and data as a variant. It was kept in an array of visa resource names. That code is all Labview and certainly available as well to open G. At the base level it called into the GPIB driver, but it could call serial port primitives as well. It would be nice to keep as much of the code as possible in Labview and only stubs in platform specific libraries. There is a cute trick that Christophe Salzmann has for making fat libraries with multiple code objects for all platforms in it. -Scott |