Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

6602 heap overflow

Hello all,
 
after several measurements, my program shuts down because of heap overflow.
I searched the forum and found out that on Win NT a maximum buffer of 64MB for buffered counter measurements exists.
I nearly reach these 64MB when measuring.
 
My question is:
 
How can I clear the buffer? I only allocate memory for 15 PWM-measurements and after calculation this memory is freed.
But it seems that the 6602 uses always new memory...
 
My system: PXI 233Mhz (!), PXI 6602
NI-Daq 6.9.1f28
measured signal 2x PWM, 5V
CVI 6.0
 
Measurement is done in a do while loop (but always crashes after 5,5 hours).
Before any measurement the counters are reset an configured.
I attached a piece of my software with setup and measurement routine...
 
Is there any help ?
 
Thanks, Mike
0 Kudos
Message 1 of 3
(3,686 Views)

hello mike,

basically you cannot clear memory, while the counter is running. may it possible to reinitialize the boards before your critical time is reached?

besides you could update the driver to version 7.4.

regards,

robert h
NI germany

0 Kudos
Message 2 of 3
(3,658 Views)

Hello Robert,

 

How can I reinitialize the board?

Init_DA_Brds() won't help, this is already implemented.

ND_RESET is always done before a measurement.

 

For driver 7.4 I need SP6 for NT?

Now SP2 is running.

 

Gerne auch in deutsch 🙂

regards, Mike

0 Kudos
Message 3 of 3
(3,647 Views)