Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Again closing references and reentrant vi-calls

Hello,

i create a static-vi-reference that is then opened in a loop for 10 times in parallel. At the end i wait for all are finished. Then i close the reference that was created from "Open Vi reference".

Question 1: Do i also have to close the reference that is coming from "Static vi reference"?

(This 10x opening happens each second).

 

Question 2:

Currently the vi that is used as static vi-reference is set in VI-Poperties + Execution to "Shared clone reentrant execution".

What about all the subvis that are called in there? Do i also have to set them  to "Shared clone reentrant execution" or is this done automatically?

 

Question 3:

I have the effect that everything seems to run fine but the CPU and memory increases

After starting the program 50 MB RAM and CPU at 15%

Then i can be seen that there are cpu-peaks from time to time, Seems as this are the parallel-calls.

Then cpu goes higher and higher up to 72% and ram goes to 230MB (after 4 hours)

 

Is ther something that can be changed in this mimic? There is nothing else running that can eat my cpu und ram.

 

Thx

 

 

 

CloseReferences.jpg

0 Kudos
Message 1 of 2
(4,213 Views)
0 Kudos
Message 2 of 2
(4,210 Views)