05-31-2013 09:18 AM
Hi ,
I have a case in which my DAQ programs sometimes hangs and locks out and after force quit it gives " Resetting Vi" message , I have to then go to task manager and do end task before starting the program again.My DAQ program is a big while loop communicating to several hardware with many instances of visa open and close and consist of several other subvi's. The Hang doesnt occur during terminating the program it just locks out during taking data.
Is there something specifically which I should I lookout for inside the program to prevent hang in future, Is it a visa issue, I am doing visa open and close on every instances of visa call.Please let me know.
Thanks,
Ankit
05-31-2013 10:18 AM
Have you checked the CPU and memory usage? You might want to look into your VIs to make sure none is using all the CPU resources and there is no memory leakage in your program.
05-31-2013 10:38 AM
You should share your code, to help us, to help you better..!!
05-31-2013 11:11 AM
@moderator1983 wrote:
You should share your code, to help us, to help you better..!!
Hi moderator1983,
My code is a very big project with more then 80+ subvi and files, also I couldnt share that because of our group policy.
05-31-2013 11:24 AM
@SLee2004 wrote:
Have you checked the CPU and memory usage? You might want to look into your VIs to make sure none is using all the CPU resources and there is no memory leakage in your program.
Hi SumTum,
During Data acquisition or running the executable the CPU usage is about 50-55% , and meomry usage is 1.5 gb of the 4 Gb on the computer. Also How should I check that there is a memory leak in a program.
Thanks,
05-31-2013 11:31 AM
Restart LabVIEW....!!
>> open your project
>> open top level VI
>> start "Performance and Memory"
>> Run your code... and then wait & watch "Performance and Memory Window"...!!
05-31-2013 11:38 AM
The CPU and memory seems ok. To check for memory leaks, record your memory usage at startup. Let the application run for a while and check to see it the memory creeps up. You can use the task manager or the system manager in LabVIEW.
05-31-2013 11:48 AM
@moderator1983 wrote:
Restart LabVIEW....!!
>> open your project>> open top level VI
>> start "Performance and Memory"
>> Run your code... and then wait & watch "Performance and Memory Window"...!!
Thanks, I will check that.
05-31-2013 11:48 AM
@SLee2004 wrote:
The CPU and memory seems ok. To check for memory leaks, record your memory usage at startup. Let the application run for a while and check to see it the memory creeps up. You can use the task manager or the system manager in LabVIEW.
Thanks,I wil try to see If I can get any info on memory leaks
06-03-2013 11:45 AM
Ankit
What operating system are you working with?