Bluetooth error in Windows 11 standalone desktop app (MATLAB Compiler)

2 次查看(过去 30 天)
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 个评论
Philippe
Philippe 2024-4-5
Great news everyone,
The latest MATLAB R2024a version has fixed the problem we were facing!
Upgrade now for smoother workflows.

请先登录,再进行评论。

采纳的回答

Gowthami
Gowthami 2023-4-25
Hello John,
I understand that you are getting an error while using MATLAB BLE functions.
Kindly note that the Bluetooth Low Energy interface is supported on these platforms:
  • macOS 10.13 High Sierra or later
  • Windows® 10, version 1709 or later
In order to resolve your issue, kindly try on the above mentioned platforms.
For more information on Bluetooth Low Energy Communication, kindly go through the following link - https://www.mathworks.com/help/matlab/bluetooth-low-energy-communication.html
  3 个评论
Pablo ZISMANNE
Pablo ZISMANNE 2023-12-4
Hello Walter, thanks for your response. I dont know why this problem is still there for compiled app (compiled with latest Matlab Version R2023b) on windows 11 but not when it's not compiled...

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Instrument Control Toolbox 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by