Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

SubVI is not running in .exe

Hello all,

 

I have built up a VI for communication with zigbee ( wireless protocol) through RS 232. The VI can be described as follows-

 

1. This is a VI in which I first send a handshaking command "+++" (to enter in AT command mode) to zigbee module and receive a response "OK" from zigbee.

2. after receiving "ok" from zigbee; VI sends "ATCN" command (to exit from AT command mode) where zigbee again sends me an "OK" response.

serial VISA read and write VIs has been used for this protocol

3. After receiving this 2nd "ok" response a call to a SubVI is given. This subvi is to write 3 digits to zigbee through COM port which will wirelessly transmit this data to zigbee receiver and in turn to microcontroller where this zigbee receiver is connected.

 

This VI works fine and the result is achieved. But when I create .exe of this VI I can't write to my COM port i.e.when VI calls SubVI; front panel of subvi opens (pops up); but  when I enter data to be written and click on button to send it is not working; i.e I can't see data on hyperterminal of other PC where zigbee receiver is connected.

 

So is there anything that I am missing while buliding an .exe?....as otherwise my VI normally works fine and transmits data wirelessly. Any help in this regard would be highly appreciated. I am attaching snapshot of my [1] VI and [2] SubVI herewith.

 

Best Regards

Download All
0 Kudos
Message 1 of 4
(3,494 Views)

Did you also install visa with the exe?

 

greetings from the Netherlands
0 Kudos
Message 2 of 4
(3,472 Views)

Hello,

 

I have installed VISA runtime engine and labview runtime engine 2011 on the PC where I want to run my .exe....and if that was a problem my first handshaking code wouldn't have run....is there any other option of including VISA in .exe while building application from application builder?

 

best regards

0 Kudos
Message 3 of 4
(3,468 Views)

In the advanced options of building an installer, you can check also to include the visa and other ni-installers.

 

greetings from the Netherlands
0 Kudos
Message 4 of 4
(3,450 Views)