07-23-2025 10:00 AM
Hello. I managed to complete trhough TeraTerm a procedure of pairing of a bluetooth custom board to the bluetooth usb adapter connected to pc.
Now I am trying to develop the same procedure in Labview but I already see that the first command (bluetoothctl) is not written by the VISA Write function (I am monitoring the serial port data). If I use the VISA Write to write test file (Ex: test.sh) it works correctly. Thank you
07-23-2025 10:21 AM
I'm not sure I understand what the question/problem is. It sounds like you are having trouble talking to a VISA device.
If this is the case, you can/should investigate your device using MAX (LabVIEW's Measurement and Automation Explorer). When you open MAX, you should look in Devices and Interfaces. Serial devices are usually on top, and may be called "COM1". If you see your adapter, you can open a Test Panel for it, which will allow you to configure it (Baud Rate, etc.) and send "Commands" to your Bluetooth-connected device. A common first command is the "Identify yourself" (I don't remember it off the top of my head, but it is something like "<something>idn", but your Manual should tell you). You'll then have to do a VISA Read to see if you got a Reply, which is commonly the name of the Device.
If that works, you have the beginning of communication! Now go to Tim Robinson's excellent presentation on how to communicate using VISA (it's on the web, just click the link).
Bob Schor
07-23-2025 01:30 PM - edited 07-23-2025 01:31 PM
Could be anything, but if you upload your code we could probably narrow it down to a few "somethings". And I mean code not pictures. My guess is that the code is doing what you're telling it to do, which isn't always the same as what you want it to do.
07-24-2025 04:27 PM
Bluetoothctl is as far as I know a command line tool under Linux that is part of the blue-z package. Are you on Linux? If so you would use System Exec to call bluetoothctl and then VISA to communicate over the virtual port that you setup with bluetoothctl.