Our online shopping is experiencing intermittent service disruptions.

Support teams are actively working on the resolution.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue: LabView freezes after 30 min of execution when acquiring data from thermocontroller

Hi everyone.

 

I've made a VI in LabView to acquire data from a temperature controller.

The code is very simple and just includes a "DataSocket Open" function which establishes a connection to the instrument (using URL), then "DataSocket Read" function put in a while loop for data acquisition every 1 sec with plotting collected data points on a chart diagram. This program works fine for first 30 min but right after that LabView just freezes and not responds anymore. It's possible to close LabView by only the Task Manager (Windows).
I used "Profile Performance and Memory" tool in LabView to check memory leaks. But it showed that the VI uses extremally small amount of memory (about 100 kB) which slightly increases during the execution.


What could be the problem? How can I fix the program freezing after 30 minutes of work?

LabView version: 2015.

Instrument: 3504 Temperature Controller by Eurotherm company.

Connection: USB.

The VI is attached.

 

Thank you for any suggestions.

0 Kudos
Message 1 of 2
(169 Views)

It could be an issue with particular OPC Server and now with datasocket.

I would like to recommend to check if you have same issue with NI Server, for example, connect to

opc://localhost/National Instruments.NIOPCServers.V5/Simulation Examples.Functions.Sine1

Screenshot 2024-03-15 10.31.27.png

I've used DS in such form many times and haven't seen such issues so far (not from LabVIEW side).

In given example you will collect your data in for loop (on indexed output), but if you run it 30 min only with once per second - it is only 1800 DBL readings, is it nothing critical, should not lead to freezing anyway.

0 Kudos
Message 2 of 2
(134 Views)