matde Posted August 28, 2023 Posted August 28, 2023 Is it possible to directly acquire data with MCC 128 / 172 and Raspberry Pi 4 in Matlab/Simulink?
0 DAQman Posted August 28, 2023 Posted August 28, 2023 MatLab has no native support for the MCC 128 & 172. If you could install MatLab onto a Raspberry PI, you might be able to access the boards by importing the library and using C code.
0 matde Posted August 28, 2023 Author Posted August 28, 2023 Matlab allows the use of Python code/functions - Could this be a work around?
0 DAQman Posted August 28, 2023 Posted August 28, 2023 I ran a few searches and it appears that MatLab cannot be installed into Raspbian. The MCC 128 and 172 require the Raspbian OS, so there is no way to make it work. I also saw that MatLab has native support for Raspberry PI hardware. Unfortunately, this does not include our boards.
0 matde Posted August 30, 2023 Author Posted August 30, 2023 And it's not possible to read the signals directly from the Raspberry GPIO Pins? Which GPIO Pins are used by MCC 128 / 172?
0 DAQman Posted August 30, 2023 Posted August 30, 2023 It is not possible to read the inputs with simple GPIO control. Our driver uses GPIO and the SPI bus to select and control each board, and how it works is proprietary information. If you want it to work with MatLab, create a program that turns the Raspberry PI into a device capable of sending data (Ethernet or Serial) and investigate the best way to read the data with MatLab. The GPIO resources are listed in the Interface Specifications of the electrical specifications pdf: https://mccdaq.github.io/daqhats/_static/esmcc128.pdf https://mccdaq.github.io/daqhats/_static/esmcc172.pdf
0 floordoc Posted July 2 Posted July 2 The short answer is that we were told it was possible. However, we are working through the details. Matlab does have the ability to remotely connect to a raspberry pi either via wired or wifi. From there it is supposed to be possible to execute python and C++ scripts on the pi that perform the desired data acquisition tasks. Not sure if you found an answer yet or not. If you did, I'd be interested in knowing how you handled it.
Question
matde
Is it possible to directly acquire data with MCC 128 / 172 and Raspberry Pi 4 in Matlab/Simulink?
6 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now