Bluetooth Serial Connection Matlab Gui

Bluetooth Serial Connection Matlab GuideBluetooth Serial Connection Matlab Gui

Devilian there. I am sending accelerometer data via bluetooth into Matlab where I will process it and build a GUI. I am currently working on getting the bluetooth data into Matlab. I'm using a dongle which gets data into port COM18. This is the code I'm using: s= serial ('COM18'); set(s,'DataBits',8); set(s,'StopBits',1); set(s,'BaudRate',9600); set(s,'Parity','none'); fopen(s); When I start from scratch (disconnect and connect bluetooth and dongle, reopen matlab etc) The port successfully opens and allows me to read data. Driver Dell Inspiron 3421 Win8 64 Bit there.

Mar 31, 2014. How to make a GUI work with bluetooth. Learn more about bluetooth, matlab gui, 3d plots, serial, communication, parallel computing. Download the free trial version below to get started. Double-click the downloaded file to install the software.

However, if I close and then try to open, it will give me an error: Error using serial/fopen (Line 72) Open failed: Port COM 18 is not available. Available ports: COM6, COM7, COM19. Use INSTRFIND to determine if other instrument objects are connected to the requested device. I know that my device isn't connected to anything else. So I then have to disconnect my bluetooth, dongle, and restart matlab. Is there a more efficient way to do this?