02-11-2015 11:21 PM - edited 02-11-2015 11:25 PM
hello everyone,
I was given a LV 2010 vi to integrate with another functionality.This Vi is used for a long time on XP and Windows 7 platform having various RAM size.it still runs fine on those PCs. This Vi has functionality that it waits for user to press start button that it reads data and plots.however i am not giving start command and it starts consuming too much RAM and resulting system Crash.
System Config: I have Core i5 CPU 650 @ 3.20GHz with 2 GB RAM and windows 7 .
Plz show some methods to prevent them and why it is happening.?
Note:1) i also checked my ram through windows test and it has no error.
2) windows shows me some low disk error sometimes.
plz help me out here i am stuck here for week.
thanks & regards
02-11-2015 11:28 PM
hello everyone again,
this is my first work on labview so if any prerequisite for memory allocation or any other settings.
thanks & regards,
02-11-2015 11:59 PM
How do you expect us to help you troubleshoot your code when you've neither told us anything about the code itself nor attached the code so we can see what's going on?
If I told you my car wasn't working, would you be able to tell me what's wrong with that information alone?
02-12-2015 01:04 AM
most we can see this problems occurs have several resons.
Release your memory is very important.
1. open reference, if u dont use it anymore. u must to close reference.
2. flush queue.
3. vision, we must use IMAQ dispose to release you memory.
Patrick
02-12-2015 02:47 AM
hello every one....
Sorry in hastiness i didnot explain anything.
We have a Vi which read data burst on edge and do some processing and plot it on histogram.I am using Daq X series 6343.
--> Patrick0418: sir you have suggetsed some thing but it would be helpfull if you can give some example related it or any links because i have started labview few months back and i am learning by my self and experience only.
02-12-2015 03:03 AM
02-12-2015 03:14 AM
hie everyone again...
I have looked into old Vi and found something suspicious. it may be bug.
In this vi program wait untill user press some button. so till that vi executes in while loop and initiallize physical channel and DAQ Vi and properties.so could it be causing bug?
and Blokk.... thanks for such a good advise.i will try some afterward.
02-12-2015 03:25 AM
02-12-2015 10:18 PM - edited 02-12-2015 10:20 PM
No i am not getting any error msgs i only get as error is memory cannot complete this action.
Actually i changed PFI pins configuration and read pin.previouslly we used(still on other system this confuguration are used) PFI 2 for clock and PFI 6 for trigger pulse.Now i changed it to PFI 8 for clock and PFI 9 for trigger.
I also change my port pin from P0.0 to P0.8.and that's why i am also dividing data to 256 to compatible it with P0.0 data because afterward everything is fine.
I am thinking that what i am receiving might be having some false data so i have to varify that pin configuration is not a problem here.
Note: I am using USB X series DAQ 6343.