Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Create custom simulink block from low-level C++

1 vue (au cours des 30 derniers jours)
Federico Massimi
Federico Massimi le 28 Mai 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
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

Réponses (0)

Cette question est clôturée.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by