I’ve found a temporary “workaround” for this problem. It’s not elegant but works for me in this case. I separated the Bluetooth code from the voice synthesis code and converted the Bluetooth code into an EXE file. I then call it at the appropriate point in the main code. The EXE file blocks the program in the main code until it finishes reading the Bluetooth instrument. The main code then proceeds as normal.
– Val GretchevNov 05 '21 at 16:44