Clear Filters
Clear Filters

MCC DaqHat and Raspberry Pi Guidance

25 views (last 30 days)
Paul Elliott
Paul Elliott on 2 Jul 2024 at 12:54
Commented: Paul Elliott ongeveer een uur ago
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.
  4 Comments
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?
Paul Elliott
Paul Elliott ongeveer een uur ago
@Walter Roberson - I understand your point. However, We explained repeatedly what we wanted to do and how we wanted to do it. No this was never something we could explore and finalize within a trial period while hitting all of our other timeline commitments. We asked repeatedly if this was within its capability and were told yes it was in a manner that acted like it was relatively simple and or common. From where I sit right now, I'd say the correct simple answer may have been somethign like, "Yes you can probably do that, but maybe there are better options out there." Yes we looked into other options. Yes I like the speed and accuracy you mentioned. Yes Ilike the programming language. However,

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!