Error "The board 'Standard Devices Serial Port' has no Analog Input channels." occurs when I run a Desktop Real Time model in kernel mode
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to obtain data using Analog Input block (Simulink Desktop Real-Time library) from self made data acqusition device though serial port. But everytime I run the model, error "The board 'Standard Devices Serial Port' has no Analog Input channels." occurs. Even as the test of the serial port has passed. The same question appears when I use the Analog Output Black with the same configuration. The configuration of the Analog Input block is shown below.
what should I do to connect my self made data acqusition device with the Simulink Desktop Real-Time?
0 Kommentare
Antworten (1)
Dhruv
am 17 Jul. 2024
Hi Haotian,
To connect your self-made data acquisition device with Simulink Desktop Real-Time, I would recommend you to use the "Stream Input" block from the Simulink Desktop Real-Time library. This block allows you to configure your serial connection and acquire data from your device. You can set it up by selecting "Install new board > Standard Devices > Serial Port" from the block's mask. For detailed options, refer to the following documentation for details:
If your serial data follows a specific communication protocol, use the "Packet Input" block to separate individual data packets based on the header. This simplifies parsing and post-processing. Refer to the below “Packet Input” documentation for further details:
You can also use a MATLAB Function block for additional parsing or data manipulation as needed.
I hope this helps!
0 Kommentare
Siehe auch
Kategorien
Mehr zu Model Preparation for Real-Time Simulation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!