LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

computer freezes while reading from serial port

My computer freezes when i tried to read from a serial port for a longer period of time such as 10 hours. I always close the serial port after reading. please, help me solve this problem
0 Kudos
Message 1 of 6
(3,248 Views)
You need to provide more information about your code. My first guess is you have a memory leak somewhere.

-Joe
Message 2 of 6
(3,247 Views)
grad student,

It would also be helpful to note what operating system you are using. Also what language are you programming in?

Craig H.
NI Applications Engineering
0 Kudos
Message 3 of 6
(3,247 Views)
I too experienced a similar problem twice on my machine and I have no idea how to stop it because it is so intermittent and I cannot replicate it.
Perhaps I can offer some clues.

The Labview screen cannot be stopped and some parts of Windows appears frozen. Oddly enough I can switch to the block diagram but thats about all I can do. The LV stop button will indicate a mouse click on it but the VI does not stop. iT also cannot be closed.

Even the reset button and power button on the PC does not work. I am forced to power down the PC (pull the plug) to get back control.

I believe it is related to a visa call to my serial Balance.
ANyway no solution but hopefully some clues.

Dell Optiplex GX260 w/ 500MB RAM
Win2K 500.2195 w service pak 4,
NI
serial Hardware and NI serial ver1.45 (16 com ports)
Labview 6.1 and 7
0 Kudos
Message 4 of 6
(3,248 Views)
I am using windows XP. And, I am working on labview 7.0.
0 Kudos
Message 5 of 6
(3,247 Views)
What version of NI-VISA are you using? We may want to see an NI-SPY capture (logged to file) in order to help us further diagnose the problem.

You mention that you are always closing the serial port...are you doing this with VISA Close? Also make sure that you are calling VISA Configure Serial Port outside of your loop.

Craig Herdman
NI Applications Engineering
0 Kudos
Message 6 of 6
(3,248 Views)