Hi PTLanza,
Correct me if I'm wrong, but it sounds like you are performing different tests in LabVIEW Real-Time and one of the tests involves a large array. If this is the case and you are using LabVIEW 8.5, you can use the Request Deallocation function found on the Application Control » Memory Control palette. If you modulate your different tests so that each test runs its own sub VI, you can place the Request Deallocation function at the end of the sub VI (once the sub VI's code has finished executing). This should deallocate all memory used by the sub VI when your program returns to the main VI.
I suppose the larger question is why is it important to deallocate this memory? In general, memory deallocations within a time-critical loop will induce
jitter and affect the deterministic properties of a LabVIEW Real-Time
program. Memory should be preallocated before the main loop and deallocated after the program finishes if you want your application to run as deterministically as possible.
I hope this helps, please let me know if you have any other questions.
Regards,
Erik