uli Posted January 11, 2023 Share Posted January 11, 2023 Hello, Using a DT9817-R in LabView leads to a computer crash because the memory runs full. Running the very simple DO Test.vi leads to a crash after some hours because of full memory. Here is the block diagram of DO Test.vi And here the block diagram of the called DT9817 Dout.vi. Both vi's are also attached. What could I do to avoid these crash? Is this a problem in the used measurement computing vi's or dll's? Regards, Uli DT9817 Dout.vi DO Test.vi Link to comment Share on other sites More sharing options...
0 JRys Posted January 11, 2023 Share Posted January 11, 2023 Move the DtCreateDOutChan.v and the DTOLCloseTask.vi outside the while loop. (Take a look at the DtDoutSingle.vi)This is because every time you call the dt create dout channel vi, memory is allocated for the channel object. Ideally the close task vi deallocate all the memory however, in LabVIEW memory management does always behave the way it should and it sounds like it not being deallocated. Link to comment Share on other sites More sharing options...
0 uli Posted January 18, 2023 Author Share Posted January 18, 2023 That solved my problem. Thanks a lot for the fast answer. My repley is late but I had to test this some days. But I the problem with the deallocation of the memory in the close task.vi is still unclear for me. I built the same structure for an digital input and there the memory runs not full. Maybe the problem is related to the DTCreateDoutChan.vi? Regards, Uli Link to comment Share on other sites More sharing options...
Question
uli
Hello,
Using a DT9817-R in LabView leads to a computer crash because the memory runs full.
Running the very simple DO Test.vi leads to a crash after some hours because of full memory. Here is the block diagram of DO Test.vi
And here the block diagram of the called DT9817 Dout.vi. Both vi's are also attached.
What could I do to avoid these crash? Is this a problem in the used measurement computing vi's or dll's?
Regards,
Uli
DT9817 Dout.vi DO Test.vi
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now