Hi All
I'm about to attempt to write a library for communicating with a precision pressure transducer (PPT). The PPT communicates through serial port, with a relatively simple protocol.
I have never written a .dll library before that has been used with another language. So I was wondering, is it possible to write a library that communicates with serial port without having an instance of the serial port connection inside the library? With the goal of being able to use the .dll with different languages. Or is it okay to include references to the .net serial libraries and have an instance used for communicating with the device?
The library is likely to be used in C# and Delphi.
Also, I've been reading about design patterns, and was wondering if anyone could recommend a pattern that could be used for designing sensor / device communication libraries. Ideally whatever architecture I use for this project, it would be good if it can be re-used for another type of sensor.
Cheers guys
Cameron