Clear Filters
Clear Filters

MCC DaqHat and Raspberry Pi Guidance

23 views (last 30 days)
Paul Elliott
Paul Elliott on 2 Jul 2024 at 12:54
Commented: Walter Roberson on 18 Jul 2024 at 22:11
We are in the process of building a data acquisitoin system using a remote Raspberry Pi, and 2 Daqhats from MCC-DAQ. I am wondering if anyone else has tried this configuration and if so is there any guidance that they would recommend?
-Matlab says that they don't support these modules. I was pretty sure when we purchased it they acted like they did. I have been unable to find any reference to this within Mathlab or the Forums.
-MCC-DAQ acted like it was fairly straightforward. However, since starting this they have made it very difficult to communicate with them. I have not really found any material there either yet.
I apologize for this being a vague post but I don't have many details to share yet.
Sincerely, Paul

Accepted Answer

Umar
Umar on 2 Jul 2024 at 21:18
Edited: Walter Roberson on 18 Jul 2024 at 22:08
Hi Paul,
I am wondering if anyone else has tried this configuration and if so is there any guidance that they would recommend? -Matlab says that they don't support these modules. I was pretty sure when we purchased it they acted like they did. I have been unable to find any reference to this within Mathlab or the Forums. -MCC-DAQ acted like it was fairly straightforward. However, since starting this they have made it very difficult to communicate with them. I have not really found any material there either yet.
To answer your questions, please see my comments below.
There are alternative ways to interface with these devices using Matlab. One approach is to utilize the MCC-DAQ provided APIs or SDKs to communicate with the Daqhats directly from Matlab. By leveraging these APIs, you can access the functionalities of the Daqhats within your Matlab environment, enabling seamless integration with your data acquisition system.
Here is a simplified example of how you can interact with the Daqhats in Matlab using the MCC-DAQ API:
% Load the MCC-DAQ library
loadlibrary('mccdaq', 'mccdaq.h');
% Initialize the Daq device
boardNum = 0; % Specify the board number
errorCode = calllib('mccdaq', 'mccOpen', boardNum);
if errorCode == 0 disp('Daq device opened successfully'); % Perform data acquisition operations here else disp('Failed to open Daq device'); end
% Unload the library
unloadlibrary('mccdaq');
If you are experiencing difficulties in communicating with MCC-DAQ directly, exploring their documentation, knowledge base, or contacting their technical support team might provide valuable insights and solutions.
While the initial hurdles you are encountering may seem daunting, there are avenues to explore and resources to leverage in order to successfully build your data acquisition system with Raspberry Pi and Daqhats. By combining technical knowledge, community support, and perseverance, you can overcome these challenges and create a robust and efficient data acquisition setup tailored to your needs.
  3 Comments
Umar
Umar on 18 Jul 2024 at 21:11
Hi Paul,
Thank you for the update on your progress with Matlab and Raspberry Pi. It's great to hear that you have been able to make some headway despite the setbacks you encountered. I understand that it must have been frustrating to discover that Matlab does not support PI5 and Bookworm, which caused a delay in your work. It's unfortunate that this information was not made clear at the time of purchase, and I apologize for any inconvenience this may have caused. It's good to know that you were able to install the PI package on Matlab and communicate with the PI from Matlab. Additionally, it's promising that you have successfully installed the DAQHAT C and Python libraries from Github and have been able to read data using the Python library. I will make sure to pass on your feedback about the lack of support or documentation for data acquisition through Matlab at the time of purchase. At Mathworks, we always strive to provide our customers with accurate information and will take your experience into consideration for future improvements. If there is anything else we can do to assist you further, please do not hesitate to reach out.
Walter Roberson
Walter Roberson on 18 Jul 2024 at 22:11
Raspberry Pi applications seem to be a distant 2nd or 3rd thought with Matlab.
Would you prefer that Mathworks prioritize Raspberry Pi applications over basic accuracy and speed of MATLAB itself?

Sign in to comment.

More Answers (0)

Categories

Find more on Raspberry Pi Hardware in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!