在 09-18-2014 05:45 AM
這邊有一些關於DataSocket在使用上的討論,提供給你參考囉~
http://forums.ni.com/t5/LabVIEW/DataSocket-memory-leak-problem-2VO0SF00-more-info/td-p/615730
關於你提到的問題,在討論串中也有提到~
When you place a DS Read or Write VI on your block diagram with no DS Open or DS Close VI, it is going to open and close that reference everytime that Read or Write VI is called. Therefore, it is basically the same as putting the DS Open and DS Close VI inside the loop, which will cause memory leaks. This should be avoided.