Automatic detection of new hardware (serial port)

2 views (last 30 days)
In my program I have a drop down box which I populate with the available COM ports. I currently have a button which I need to press each time I want to refresh this list (which I need to do when a new USB to serial converter is plugged in, for instance).
Is there a way to do this automatically? I mean to capture an event that occurs when new HW is plugged in which would trigger the execution of the refresh function, without having to press the function.
Best regards,
Cristian

Answers (0)

Categories

Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!