1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: Measurement Computing USB-1608G_2AO support |
From: | Mark L Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | "Dudley, David" <dudleyd at frib.msu.edu> |
Cc: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 25 Oct 2021 21:22:52 +0000 |
Hi David, I have imported the latest USB-1608G and USB-3100 files from Warren Jasper’s repository into measComp/measCompApp/Linux_Drivers/. I modified them to add device-specific
prefixes to all of the symbolic constants in the .h files. This is needed to avoid conflicts with cbw.h from Measurement Computing, and to avoid conflicts between Warren’s drivers themselves. For example, in his original drivers DIFFERENTIAL is defined differently
in these files for different versions of the USB-1608: usb-1608G.h:#define DIFFERENTIAL 1 usb-1608HS.h:#define DIFFERENTIAL (0x0) Thus if a single source file needed to use both of those drivers it would not work.
DIFFERENTIAL is defined as follows in cbw.h: #define DIFFERENTIAL 0 This thus conflicts with usb-1608G.h, and both of those include files will be needed in the mcBoard_USB-1608G that you are writing. I normally feed my fixes back to him so they are in a future release. I suggest you pull the master branch of measComp before working more on your driver. Mark From: Dudley, David <dudleyd at frib.msu.edu> Yes, I have a working version of it, and I am working on making sure that it works properly. I can read all the analog inputs, and they all seem to be correct and scanning correctly, next week I plan on working on the analog outputs, the counters, and the waveform generator. The thing does so much it’s just a lot to manage quickly. I’ll let you know as soon as I am farther along on getting the completed version, and submit it either back on github or I’ll just email it directly to you. Personally, I’m very interested in the USB-2500 for the next device I want to get supported. Sent from my iPhone
|