05-20-2009 08:58 AM
I have created an executable vi to communicate with a serial instrument. The device has two possible communication methods: serial to USB cable or wireless via Bluetooth (generic serial connection).
The executable vi works fine with the serial to USB cable. However, I noticed that it initially would not connect via Bluetooth. I opened MAX and was able to communicate with the device using the VISA test panel. I then closed MAX and attempted to connect again through my vi. No luck. Eventually through trial and error I found that the vi only communcates via Bluetooth if MAX is open! Any idea why this would be the case?
Thanks in advance for your thoughts.
05-21-2009 05:47 PM
Hello,
You might want to take a look at this DevZone article : http://zone.ni.com/devzone/cda/tut/p/id/3260
There are a number of good examples that should help with building a LabVIEW application that communicates with Bluetooth. If you're able to communicate with your device through the VISA Test Panel, you should be able to communicate in LabVIEW, so it might just be a programming issue. You may also want to take a look at the Bluetooth LabVIEW examples in the NI Example Finder. To get to these examples, go to Help->Find Examples... in LabVIEW, verify that the Browse tab is selected, and navigate to Networking->Bluetooth.