Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can I communicate with my serial instrument via Bluetooth only when MAX is open?

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.

0 Kudos
Message 1 of 2
(3,217 Views)

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.

Justin E
National Instruments R&D
0 Kudos
Message 2 of 2
(3,179 Views)