Info
This question is closed. Reopen it to edit or answer.
Create custom simulink block from low-level C++
1 view (last 30 days)
Show older comments
hi, I never created a block for simulink and before starting, since I saw that there are many ways to do it, I wanted to ask for some advice.
The block I want to implement is to use an I/O hardware interface
https://store.digilentinc.com/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply/
which is only supported in matlab parsially. What I wanted to do is create a simulink block to use it at 100%.
Hardware has its own SDK in C++, and I am very familiar with this programming language. So the simulink block should call low-level C++ functions.
what the simulink block should do is (all via C++ SDK):
1) initialize the device.
2) exchange data in real time with the outside world through the I/O hardware interface.
3) close the device
Can you recommend the best way to create this block, if there is any documentation you recommend reading or if there is a better way to do what I have described?
Thanks in advance,
Federico
0 Comments
Answers (0)
This question is closed.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!