Hi there...
I've found a memory leak using visa VIs for controlling my PC serial
port.
I have a loop, with about 1sec cycle, tha call a subVI that
communicate with the serial port:
The sub VI do the following:
1. Open Serial Port Session
2. Set serial port parameters
3. Read (to empty buffer)
4. Write
5. Read answer
6. Close Visa Session
Each loop, the memory is increased of about 4k.... when I press the
'STOP' on my VI, it take some time (15 secs, depemds on how long the
program ran) to release memory, and you can see the memory usage
decreasing.
1st question.
It is correct to open & close a VISA session for each single serial
query?
2nd question
There is a way to avoid this memory leak?
Thanks to all, OldSmobile