LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC in labview

I use the following labview programming to communicate
with the Newport temperature controller instrument.(see attachment. This program is a little modification of labview shipped example communication>> datasocket>>Demo OPC. It work very well at first 30minutes. But after 30 minutes, It does not get any new data from instrument (it still take data into computer, but the data is same as exactly data at 30 minutes). There is also no error show up. I tested it several times(including restart the labview programming and restart computer),all programming only worked 30 minutes, Could you help me to solve this problems ?

thanks

Zhou
0 Kudos
Message 1 of 3
(2,826 Views)
Zhou,

Unless someone out there is intimately familiar with the exact issue and functions, you are going to have to send this one to NI. Having looked at the code, it looks to me like you have a memory leak. If you have the ability, I would run it, and check your memory resources (if you don't have it, run solitaire, and check the help>>about, this should give you an instant notification of memory availability.) I can't tell off hand where the memory leak is, but it may involve open references that are somehow duplicated in your loop. If all else fails, try monitoring (probe or indicator) your references for changes.

As a work around, you may want to close and reopen your session once in a while.

Good luck
Message 2 of 3
(2,826 Views)
Don't know if this will help....
If you are using LabVIEW 6.x, try using the DataSocket primitives (yellow and black icons)

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 3 of 3
(2,826 Views)