LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Bluetooth Communication Problem after exe.

Solved!
Go to solution

Hello, 

 

I am trying to communicate one Bluetooth device with LabVIEW.

 

When I am simply running the VI then its working fine,

 

but when I am developing the executable after that its doesn't work. 

 

I am using LabVIEW 19, What will be the problem?

 

Yours solution will appreciable!

 

Thanks in advance!

Mr. Prashant A. Shirke
R&D Engineer
0 Kudos
Message 1 of 6
(1,459 Views)

The first step in asking for help with a problem is to actually tell us something about the problem.

 

"it doesn't work"  tells us nothing.

 

In what way doesn't it work?  What would it be doing if it was "working" and what is it doing instead?  Do you get error messages?

 

Do you have any actionable information?

0 Kudos
Message 2 of 6
(1,425 Views)

1.  When I am running normal Bluetooth VI then it's working fine.

2. After development of exe When I am running exe Then exe is running without error.

But communication between Bluetooth module and LabVIEW it not happening.

3. And again when I am opening VI from project folder and seperately running it then communication between Bluetooth module and LabVIEW is happening.

 

Mr. Prashant A. Shirke
R&D Engineer
0 Kudos
Message 3 of 6
(1,402 Views)

Without seeing your code what can we do besides guess what you did wrong?

 

My experience with BT is limited to BT serial devices. These install a virtual serial port and after the device(s) are paired in Windows the BT part becomes transparent and communication with the instrument with VISA through BT was no different than communicating with that instrument using VISA through a wired serial port.

 

If yours is similar is it possible the virtual com port your BT device is using changing?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 6
(1,387 Views)

Hi,

 

I am trying to communicate with 8 channel Numato Bluetooth Relay Module.

 

I am attaching here its Project and VI

 

May be it will help you to diagnose the actual problem

 

 

Mr. Prashant A. Shirke
R&D Engineer
Download All
0 Kudos
Message 5 of 6
(1,313 Views)
Solution
Accepted by topic author MrPrashant

Greeting,

 

This problem get solved!

 

I am assuming this was the problem

 

1. I don't want to close VISA session for my complete execution

that why when I was running "only VI" that time it was working perfectly fine.

 

2. After that when I was running .exe its was not communicating with Bluetooth module,

(Because that particular COM was till engaged with last run VI)

 

3. Then I close the "only VI" session first and then run .exe again

and it start to communication.

 

I would like to thanks RavensFan and RTSLVU for theirs quick support

 

 

 

 

Mr. Prashant A. Shirke
R&D Engineer
0 Kudos
Message 6 of 6
(1,308 Views)