Jump to content
  • 0

MATLAB r2022a DAQ functions unable to recognise USB-1616HS-BNC DAQ box


Jorn
 Share

Question

Hello,  I am trying to run a program for data acquisition on MATLAB r2022a (64bit) connected to a USB-1616HS-BNC. While Instacal can recognise the board when i connect it, the daq toolbox on MATLAB can't. Is this because the board can only connect to 32 bit software, and if so are there any drivers I can do to overcome this problem? Thanks.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Hello @Jorn.

Please verify that you are using InstaCal v6.73.  If you are not, then you can download and install the 'mccdaq' installation using the following link.

https://www.mccdaq.com/downloads/MCCDaqCD/mccdaq.exe

Next, verify that InstaCal is not running, when you launch MATLAB R2022a.  Once in MATLAB, run the following command as shown in my screen capture below.

v = daqvendorlist

Do you see the 'mcc' vendor in the list?

image.thumb.png.0a1bd63d0836c5a3b1310ce0d394d710.png

 

Please reply with a screen capture from your system.

Regards,

Fausto

 

Link to comment
Share on other sites

  • 0

Thank you for the screen capture.

Please open MATLAB R2022a and click on the 'Add-Ons' menu option.  Select 'Manage Add-Ons'.  Does the list show version 22.1.0 of the 'Data Acquisition Toolbox Support Package for Measurement Computing Hardware'?

image.thumb.png.0a14743ec52af7bb9472c3fd0433cf67.png

 

If it does not list this support package, then you will need to install the 'Data Acquisition Toolbox Support Package for Measurement Computing Hardware' via the Add-On manager. 

However, if the Measurement Computing support package version 22.1.0 is listed, then please uninstall the 'Data Acquisition Toolbox Support Package for Measurement Computing Hardware' from the Add-On manager.  To uninstall the package, click on the vertical ellipsis at the far right and select 'Uninstall'.

image.thumb.png.5df69d438bc52dcbdafd648b8afa3e8d.png

Afterwards, exit MATLAB and open Windows Control Panel - Programs & Features (use 'appwiz.cpl' from Windows Taskbar).  Uninstall Measurement Computing’s InstaCal/Universal Library and then restart the PC.    Launch MATLAB and reinstall the 'Data Acquisition Toolbox Support Package for Measurement Computing Hardware' via the Add-On manager.  During the toolbox installation, MATLAB should install MCC’s drivers and libraries.  Let me know if this step does not happen.  Next, exit MATLAB.  Connect your USB-1616HS-BNC device and launch InstaCal.  Verify that the device appears in the list and then close InstaCal.  Launch MATLAB and run the 'daqvendorlist' command.  Does MATLAB detect the MCC vendor and your hardware?  Please respond whether these steps were successful or not. 

If your issue is not resolved, then execute the ‘daqsupport’ function in MATLAB’s Command window.  This command will save useful diagnostic information to a text file ('daqtest.txt'), which should be sent to MathWorks support group.  

Regards,

Fausto

 

Link to comment
Share on other sites

  • 0

Hello @Jorn.

Thank you for the screen captures.  It appears your USB-1616HS-BNC is detected by InstaCal, but that is not the reason why MATLAB showed the 'mcc' vendor as 'not operational' nor why 'mcc' is not shown in the vendor list now.  The screen capture also shows that you have the 'Data Acquisition Toolbox' package installed, which is a prerequisite.  At this point, I would recommend you reach out to MathWorks for support.  MathWorks developed and manages the 'Data Acquisition Toolbox Support Package for Measurement Computing Hardware' for MCC.

Please reply to this post if they are successful.  Other users may find the solution helpful.

Regards,

Fausto

Link to comment
Share on other sites

  • 0
On 6/22/2022 at 9:52 AM, Fausto said:

Thank you for the screen capture.

Please open MATLAB R2022a and click on the 'Add-Ons' menu option.  Select 'Manage Add-Ons'.  Does the list show version 22.1.0 of the 'Data Acquisition Toolbox Support Package for Measurement Computing Hardware'?

image.thumb.png.0a14743ec52af7bb9472c3fd0433cf67.png

 

If it does not list this support package, then you will need to install the 'Data Acquisition Toolbox Support Package for Measurement Computing Hardware' via the Add-On manager. 

However, if the Measurement Computing support package version 22.1.0 is listed, then please uninstall the 'Data Acquisition Toolbox Support Package for Measurement Computing Hardware' from the Add-On manager.  To uninstall the package, click on the vertical ellipsis at the far right and select 'Uninstall'.

image.thumb.png.5df69d438bc52dcbdafd648b8afa3e8d.png

Afterwards, exit MATLAB and open Windows Control Panel - Programs & Features (use 'appwiz.cpl' from Windows Taskbar).  Uninstall Measurement Computing’s InstaCal/Universal Library and then restart the PC.    Launch MATLAB and reinstall the 'Data Acquisition Toolbox Support Package for Measurement Computing Hardware' via the Add-On manager.  During the toolbox installation, MATLAB should install MCC’s drivers and libraries.  Let me know if this step does not happen.  Next, exit MATLAB.  Connect your USB-1616HS-BNC device and launch InstaCal.  Verify that the device appears in the list and then close InstaCal.  Launch MATLAB and run the 'daqvendorlist' command.  Does MATLAB detect the MCC vendor and your hardware?  Please respond whether these steps were successful or not. 

If your issue is not resolved, then execute the ‘daqsupport’ function in MATLAB’s Command window.  This command will save useful diagnostic information to a text file ('daqtest.txt'), which should be sent to MathWorks support group.  

Regards,

Fausto

 

I had a similar issue with the device MCC USB-201-OEM in MATLAB R2022a, but I resolved it following the procedure posted by Fausto. In addition, I added screen captures before and after applying the procedure.

Initial error related to the driver, code error -226:

DriverError_Matlab_2022a_PC_Luis_2.thumb.jpg.f6396acc9f979c9557540d8aea807507.jpg

Bug fixed:

DriverError_Matlab_2022a_Resolved.thumb.png.3b5e7f90bf753b72f3b393e05c2214f8.png

Thanks Fausto!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...