Search Tech-talkIndexDateThreadSubject:Re: Measurement Computing Linux C DriversFrom:Matt Rippa To:'Lang, Keenan C.' , 'Rivers, Mark L.' , ' Date:Tue, 21 Apr 2015 11:10:48 -1000Hi Keenan and Mark,Thanks for the replies. I've been in touch with WarrenJasper, the developer of the Linux drivers. He's open toanswer any questions. Here's some recent comments below.Wouldn't want anyone to duplicate any work.Here's the link to his latest (beta) release:-Matt My code has pretty wide acceptance in the Linux community. Yes the AInScan and AOutScan are tricky to implement and still get decent performance.
Remember, USB and especially HID under USB was not designed to be hard real-time. The newer MCC devices, like the 1608G are not HID (Human Interface Device like a mouse or joystick) and use bulk endpoints that are faster and better implemented. By the way, my latest packing running libusb 1.0 and hidapi should work on Windows and Mac OS in addition to Linux to it would give you the portability and reliability you want. Since it is written in C it should also interact better with other languages such as Java and Python.
I have already ported over support for the usb-ctr and usb-dioXX and the usb-1608G which is what you would need for your applications. The optical encoders is another matter.
Regards, WarrenOn 12:09 PM, Lang, Keenan C. Wrote: I'm confused. What about the Linux drivers here: I downloaded that package, and there is a nice library for the USB-1608G, for example.
It has different functions from the ones in the Measurement Computing Windows library, but they appear to be quite complete. I would think it would be pretty straightforward to re-implement my 1608G EPICS driver for Linux using that library. Sorry if I was unclear, that is what I used and almost everything was easy enough to implement. The daqflex code I have is only being used as example code, so I could make sure that I was taking care of everything that the library is supposed to implement. I saved scanning for last because of it needing just a bit of extra work with polling threads and locking, but other things started taking priority and there wasn't much of a want here at APS, so it just sort of sat there at 90% for the past run.
Now that there is an interested party, I can finish it up relatively soon. Keenan From: Mark Rivers rivers@cars.uchicago.edu Sent: Monday, April 20, 2015 3:42 PM To: Lang, Keenan C.; Matt Rippa; tech-talk@aps.anl.gov Subject: RE: Measurement Computing Linux C Drivers Since Measurement Computing didn't release a port of their control library in addition to the communications drivers, all the command calls that the measComp driver relies upon need to be reverse engineered from the documentation. I'm confused. What about the Linux drivers here: I downloaded that package, and there is a nice library for the USB-1608G, for example. It has different functions from the ones in the Measurement Computing Windows library, but they appear to be quite complete. I would think it would be pretty straightforward to re-implement my 1608G EPICS driver for Linux using that library.
Regarding the DACFlex library, this appears to have been abandoned by Measurement Computing. This is from their Linux FAQ page: Question: Hi I've noticed that for a while the new USB devices I'm receiving info on are not being listed on the Linux page. Is the Linux support (DAQFlex etc) no longer being supported? The device I'm interested in currently is the USB-230-OEM. Answer: Regrettably, no new products will be added to our DAQFlex library. Support for existing hardware will continue. For an easier out-of-the-box Linux experience, we recommend using the MCC 3rd party drivers.
Please see for more details. Currently, the USB-230-OEM series is not supported by our Linux drivers.
The hardware architecture of the USB-230-OEM series does not lend itself easily to Linux development. For that reason we have chosen to hold off with Linux development. For a low cost 16 bit DAQ device with Linux support, I would recommend one of our USB-1608G series products. Please see Mark -Original Message- From: Lang, Keenan C. Sent: Monday, April 20, 2015 3:17 PM To: Mark Rivers; Matt Rippa; tech-talk@aps.anl.gov Subject: RE: Measurement Computing Linux C Drivers I had put development of porting the support to Linux on hiatus, but can try to finish things up now that there is a want.
Since Measurement Computing didn't release a port of their control library in addition to the communications drivers, all the command calls that the measComp driver relies upon need to be reverse engineered from the documentation. This was a simple enough task for most of the calls, but the AIScan and AOScan commands are a bit tougher to match the expected behavior. I have C# source code for measComp's new control library (called DAQFlex), but the code base is enormous and a bit convoluted. As well, once all is said and done, the performance may be undesirable. Keenan From: Mark Rivers rivers@cars.uchicago.edu Sent: Sunday, April 19, 2015 8:46 AM To: Matt Rippa; tech-talk@aps.anl.gov Cc: Lang, Keenan C. Subject: RE: Measurement Computing Linux C Drivers Hi Matt, That Linux support is not new, it has been there since I started working on the drivers. I was discouraged by this document for the Linux support: The document is old (2008), so perhaps it no longer applies.
But it states that the fastest performance they could get was 50 kHz, which is an order of magnitude slower than the Windows drivers from Measurement Computing. That being said, I believe that Keenan Lang from APS BCDA has been working on Linux drivers for these devices. I have not yet seen any official release from him, but I have CC'd him on this message so he can respond directly.
I also believe that the accelerator group at APS got Linux support working for some models which are used for the APS vibration monitoring system. Again, I don't think that have released their drivers.
Mark From: Matt Rippa mrippa@gemini.edu Sent: Saturday, April 18, 2015 11:18 PM To: tech-talk@aps.anl.gov; Mark Rivers Subject: Measurement Computing Linux C Drivers Hi Mark, I was looking at your package for measurement computing devices below. Their website now links to open source Linux drivers written in C. Have you seen this yet?
And are you planning to incorporate this into your existing epics support? Thanks, -MattReferences: Matt Rippa Mark Rivers Lang, Keenan C. Mark Rivers Lang, Keenan C.Navigate by Date: Prev:John Dobbins Next:Emmanuel Mayssat Index:Navigate by Thread: Prev:Lang, Keenan C.
Next:Andrew Johnson Index:, 16 Dec 2015.
NORTON, Mass., March 9 /PRNewswire/ - Measurement Computing Corporation (MCC), the market leader of value-priced data acquisition hardware and software, today announced the release of MCC DAQ Software CD version 6.0 with 64-bit drivers and ULx (Universal Library Extensions) for National Instruments LabVIEW.(Logo: )New with Version 6.0Users of Measurement Computing data acquisition devices can now install the Universal Library™ on 64-bit operating systems such as Microsoft Windows® 7 and Vista™. The new driver allows MCC DAQ users to port their existing 32 bit applications to Microsoft's latest operating systems.LabVIEW programmers using Measurement Computing data acquisition devices will benefit from a new library of virtual instruments (VIs) and example programs for application development. The new ULx for LabVIEW offers easy-to-use support for LabVIEW versions 8.2.1 and later.Additional Software IncludedMeasurement Computing provides complimentary installation, configuration, and measurement software so that customers can get up and running quickly and easily.
The MCC DAQ Software CD version 6.0 includes:. InstaCal – Installation, calibration and test software.
Universal Library – Programming libraries and components for developing 32-bit applications using Windows programming languages. Includes 64-bit driver support for Microsoft Windows 7 and Vista. Aisc steel manual shapes with 4 answers. TracerDAQ® – Virtual instrument application suite with strip chart, oscilloscope, function generator, and rate generator. Provides easy export to Excel®. ULx for LabVIEW – Library of virtual instruments (VIs) and example programs for use with National Instruments LabVIEW Version 8.2.1 and later. UL for LabVIEW is available for LabVIEW Version 6.0 through 8.2.The complimentary MCC DAQ Software CD version 6.0 is available for download from the Measurement Computing website and ships with most Measurement Computing hardware products.for a photo of the MCC DAQ Software CD version 6.0:About Measurement ComputingMeasurement Computing is the market leader in the design, manufacture, and distribution of value-priced data acquisition hardware and software. Headquartered in Norton, MA, the company provides test and measurement solutions for both programmers and non-programmers, as well as custom designs for OEMs.
The company offers high-quality, reliable products, backed by limited lifetime warranties and free technical support.