How to make Bluetooth work on a executable Matlab program ?

1 view (last 30 days)
Hi everyone,
I am developing a a matlab program. I used the Bluetooth function from the instrument toolbox and everything work fine when I run the .m program. I made an executable and when I execute it on my computer, it is working, everything good so far. But I installed the .exe (with _mcr.exe) on an another computer and the bluetooth didn't work and I get the following message :
Error using icinterface/fopen (line 83)
Unsuccessful open: Cannot connect to the device.
Possible reasons are another application is connected
or the device is not available.
Error in test_Bluetooth (line 2)
instrument:fopen:opfailed
Here the code that I have been compiled :
B = Bluetooth('HC_05_00', 1);
fopen(B);
for i=1:100
Raw_Data = fscanf(B);
disp(Raw_Data);
end
fclose(B);
I already checked for channels problems with the instrhwinfo function.
Thank you for yours answers ;)

Answers (0)

Categories

Find more on Startup and Shutdown 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!