Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

XBee Signal Lost - Error 1073807339 (1073807194)

Hi,

 

I am a newbie to LabView and have been trying to fix up a VI that uses a wireless XBee module to collect and plot data from a portable wind turbine every 5 seconds (I didn’t write it, just trying to fix it).  The XBee is connected by a virtual COM port to the computer.  Under normal operating conditions, the program works perfectly.  However, there are a few situations where the program ceases to work.  Problems start to arise when either:

 

  • The computer goes to sleep while running the program
  • The wireless signal is lost while the program is running

If either of these happens, I get the following error:

 

Error -1073807339 occurred at VISA Read in MWEL_Simple_rev4.vi
VISA:  (Hex 0xBFFF00A6) The connection for the given session has been lost.

 

If I stop and re-run the VI, I then get:

Error -1073807194 occurred at Property Node (arg 😎 in VISA Configure Serial Port (Instr).vi->MWEL_Simple_rev4.vi
VISA:  (Hex 0xBFFF00A6) The connection for the given session has been lost.

 

I have currently been fixing this problem by closing LabView then disabling and re-enabling the COM port using the device manager.

 

After doing a bit of reading (most of which is over my head), I believe that the error occurs because the VISA isn’t being closed properly.  If this is the case, how can I go about closing the VISA properly?  Is there a way to check if the signal is coming in before attempting to read it?  Any advice on this problem or tips on using LabView would be much appreciated.  

 

If you have any questions about the setup, I will do my best to answer them.

 

Thanks in advance,

Ethan

 

Using LabView 2009 and Windows 7

0 Kudos
Message 1 of 3
(4,121 Views)

The first problem is easiest to solve - don't let the computer go to sleep.

0 Kudos
Message 2 of 3
(4,118 Views)

Hi metrooo,

 

I would suggest that you open up LabVIEW and go to Tools>Options then under the Environment Category place a checkmark in the Automatically close VISA sessions. This will close any sessions that are open when LabVIEW is exited. 

 

DylanC

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