LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Code Module used in NI TestStand: Memory leakage

hello, I have the following problem and cannot find a workaround:

 

  • In testStand I call a SubSequence as new execution, by passing an array [0..7] of Waveforms (Labview Analog Waveform Type) as reference.
  • Within the called Subsequence I call a LabVIEW Code Module for reversing each passed Waveform (each array[0..7] element) using the "Reverse  1D Array". (see attached screenshots with Block Diagram and Parameters as used in the testStand code module step).
  • The VI execution mode is set to “Shared Clone Reentrant” since I need to use it in 5 parallel testStand Executions.
  • The VI input and output parameters refer to the same TS Sequence Parameter (but I think it is normal since I need to reverse in place the same array). See the attached picture as reference.
  • The labview code module works fine (it does what I expect) but…I experience a MEMORY LEAKAGE after a while.

Is anybody able to help me?

 

thank you in advance!

Giovanni

Certified TestStand Developer
Download All
0 Kudos
Message 1 of 2
(2,003 Views)

You might have better luck with "Preallocated" because LabVIEW will preallocate one clone for each instance, while "Shared" creates them dynamically - on the fly - as needed.

 

To be clear, I'm not sure if this will make a difference.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 2
(1,970 Views)