List Arduinos and connect to multiple Simulink
Hi,
I have 2 questions. 1 is about the com port and 2 is about the setting up the simulink via code.
So I found out that 2024A version has the function to list the Arduino using arduinolist – List available Arduino hardware – MATLAB (mathworks.com) this function.
However, I am currently unable to get 2024a but has 2023b version so I am looking for some suggestions how to make this list automatically so I can utilize. My start idea is to list the comport using the serialportlist("available") to obtain the comport that are connected which was successful but couldn’t find a way to obtain the information from the comport to detect what which Arduino is connected to which comport.
Can anyone give me some suggestions?
The second question is about how to connect the Simulink to these each Arduino.
I am able to open the Simulink using the open_system But couldn’t get each Simulink to connect to each Arduino. Is there a way to code so that the specific Simulink can connect to a specific Arduino. Any ideas please?
Thanks!Hi,
I have 2 questions. 1 is about the com port and 2 is about the setting up the simulink via code.
So I found out that 2024A version has the function to list the Arduino using arduinolist – List available Arduino hardware – MATLAB (mathworks.com) this function.
However, I am currently unable to get 2024a but has 2023b version so I am looking for some suggestions how to make this list automatically so I can utilize. My start idea is to list the comport using the serialportlist("available") to obtain the comport that are connected which was successful but couldn’t find a way to obtain the information from the comport to detect what which Arduino is connected to which comport.
Can anyone give me some suggestions?
The second question is about how to connect the Simulink to these each Arduino.
I am able to open the Simulink using the open_system But couldn’t get each Simulink to connect to each Arduino. Is there a way to code so that the specific Simulink can connect to a specific Arduino. Any ideas please?
Thanks! Hi,
I have 2 questions. 1 is about the com port and 2 is about the setting up the simulink via code.
So I found out that 2024A version has the function to list the Arduino using arduinolist – List available Arduino hardware – MATLAB (mathworks.com) this function.
However, I am currently unable to get 2024a but has 2023b version so I am looking for some suggestions how to make this list automatically so I can utilize. My start idea is to list the comport using the serialportlist("available") to obtain the comport that are connected which was successful but couldn’t find a way to obtain the information from the comport to detect what which Arduino is connected to which comport.
Can anyone give me some suggestions?
The second question is about how to connect the Simulink to these each Arduino.
I am able to open the Simulink using the open_system But couldn’t get each Simulink to connect to each Arduino. Is there a way to code so that the specific Simulink can connect to a specific Arduino. Any ideas please?
Thanks! arduino, simulink, appdesigner MATLAB Answers — New Questions