I am encountering a memory growth issue while running my LabVIEW program. As the program executes, the memory usage (as monitored by task manager) keeps increasing until the program eventually crashes.
Program Overview:
- Move the motorized stage to a specific position.
- Measure data (100 averages).
- Plot each point
- Repeat the measurement for scanning across different X positions.
Troubleshooting Attempts:
- Initializing shift register data before each loop iteration.
- Closing the motor connection after each movement.
- However, none of these effectively resolved the issue.
I have attached an image showing the main parts of my program.
If anyone has insights or suggestions on how to efficiently manage memory, I would greatly appreciate your advice.