Bluetooth error in Windows 11 standalone desktop app (MATLAB Compiler)
Show older comments
Hello,
I can't get a very basic MATLAB app to function after using Compiler to package a standalone desktop app. The app works fine when running within MATLAB, but not after running the packaged app post-installation.
The app simply calls disp(blelist) when clicking a button.
Attached is the exported code from App Designer, and below is the error displayed in the command window when running the compiled application:
Error using scratch/ScanButtonPushed
Failed to detect nearby Bluetooth Low Energy peripheral devices. Contact Technical Support if issue persists.
Error in appdesigner.internal.service.AppManagementService/executeCallback (line 172)
Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback
Error while evaluating Button PrivateButtonPushedFcn.
Here's a bit of info about my setup:
- Windows 11 Pro 64-bit, updated
- Intel Core i7-10700K @ 3.8GHz
- MATLAB 2023a Update 1 (9.14.0.2239454)
I had the same problem when attempting the compile-and-installation on my laptop (Win11 Home 64-bit, Intel i7-11800H @ 2.3GHz). I have not yet tried on Win10 or a Mac.
Is there a fix to this?
Thanks,
John
1 Comment
Philippe
on 5 Apr 2024
Great news everyone,
The latest MATLAB R2024a version has fixed the problem we were facing!
Upgrade now for smoother workflows.
Accepted Answer
More Answers (0)
Categories
Find more on Bluetooth Low Energy Communication in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!