LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bluetoothctl

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

0 Kudos
Message 1 of 4
(561 Views)

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

0 Kudos
Message 2 of 4
(557 Views)

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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 4
(512 Views)

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.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(362 Views)