LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph crashes after about 3 consecutive days running

XY graph is getting 720 points a day. My program tries to erase XY graph each day by setting it to zero to avoid memory program. But it crashes every 2-3 day.
0 Kudos
Message 1 of 8
(3,305 Views)
1. When you say it crashes exactly what is happening, is the program locking-up, the computer itself is crashing and has to be restarted, the program shuts itself down?

2. Have you monitored the memory consumption under the Windows task manager? Is it going up?

3. Are you using anything special (ActiveX, control references, DAQ, VISA, GPIB, etc)?

4. How many traces are you putting on the plot? How often is it getting updated?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 8
(3,305 Views)
1. the program shuts itself down asking whether to restart the program w/ window error message.
2. memory consumption is not going up.
3. I am using DAQ thru SCXI to get temperature values.
4. every 2 min, the program get new 6 values. 30*24 hours are the number of pionts that I draw on the graph or put into an cluster.
0 Kudos
Message 3 of 8
(3,305 Views)
From what you say, there shouldn't be any memory leak issues, and the rate at which you're collecting data shouldn't be causing any trouble. Likewise the amount of data you're plotting is really rather modest.

Ok, Step 1: Write a replacement subVI that is a drop in replacement for the DAQ subVI and generates the 6 values at the exact same rate, but uses a random number generator to produce the datavalues. Insert this dummy into your code instead of the DAQ and let it run. This will isolate one large part of the code and a good approach in troubleshooting something like this is always "divide and conqure".

If this version works without crashing, you know its in the DAQ somewhere. If it still crashes, you have something that other people c
an look at and try to verify there isn't something hinky going on with your PC (Step 2).

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 8
(3,305 Views)
Mike's troubleshooting is right on the money, but you may want to direct this problem to NI tech support. They have more resources for tracking down weird behavior. You can reach them at www.ni.com/ask .
0 Kudos
Message 5 of 8
(3,305 Views)
> every 2 min, the program get new 6 values. 30*24 hours are the
> number of points that I draw on the graph

Isn't that 6*30*24 = 4320 points a day?

Les Hammer
0 Kudos
Message 6 of 8
(3,305 Views)
I found the cause of the problem. After the XY graph is cleared out, when new data comes in, it seems that the graph is displaying new data with old data which I deleted. This is strange to me.

The attachment is my simulation version.

Miyoung
0 Kudos
Message 7 of 8
(3,305 Views)
The problem is that you have the logic for clearing the display in the wrong place. You are sending an empty array to the indicator for exactly one update cycle. You are never emptying out the shift register that is storing the data to be displayed in the graph.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 8
(3,305 Views)