09-19-2022 08:25 AM
@EssperAlex wrote:
@JÞB wrote:
There should not be more than one each! They should be outside any loop and if you use an autoindexing loop make sure the session wire is on a shift register.
I had check on the listmode.VI that I am using within the For-loop. They are being close at 1:1 ratio.
For-loop,
I will re-check the whole full program VI to check if I miss out or added any additional VISA open/close or driver open/close.
Currently latest update, I am still having the same error "Insufficient System Resources". When I tried to run for long time.
A few more critiques
09-21-2022 02:43 AM
@JÞB wrote:A few more critiques
- Your open and close are inside a loop! Bad. Even if it is a single iteration loop
- Why a single iteration loop? Not bad bad but, certainly silly and it may hurt later if you edit it.
- Why oh why do you pass the DEAD, DEAD, DEAD IVI Session wire out of the sub vi and out of the loop? The session is closed! Very bad! If you are using that wire downstream... that's probably where your error is.
Hi Jay,
Yes I agree to the open & close inside a loop, I just came to understand it after you mentioned it, I had removed and move the open and close to the outer loop as mentioned by Yamaeda previously. Now I am able to run more steps than usual but still having some error as it might be some other issued with my open/close at other loops.
I will continue to check the program and rewrite the open/close session as I had use too many of them which results over-using it. But many thanks to your advise as It really allows me to breakthrough and understand my mistake on the open/close session which is making the error appearing.
I will update here again once I have amend my program and do a full-long run.
09-26-2022 12:48 AM
Hi All,
Thank you so much for all the help in resolving the open/close session which occurs error of "Insufficient System Resources".
Just an update; I have managed to run the program with long hours now! (Currently tried 3.5hours, without any issues occurs. As compare to last time whereby I could only run est. 50mins)
09-26-2022 07:23 AM - edited 09-26-2022 08:22 AM
@EssperAlex wrote:
Hi All,
Thank you so much for all the help in resolving the open/close session which occurs error of "Insufficient System Resources".
Just an update; I have managed to run the program with long hours now! (Currently tried 3.5hours, without any issues occurs. As compare to last time whereby I could only run est. 50mins)
Just a little more information after a bit of research on my part. Since, I wanted to understand this more.
One difference between IVI and straight VISA ( the V in IVI I for VISA)
is the option to use a state cashe. When Cashe is enabled during a IVI Session open session, IVI hold the device settings in memory and only communicates with the instrument if a property needs to change. VISA will open a session or use an existing session.
But SUPPOSE you open an IVI session with Cashe enabled, the close it. The CASHE is destroyed whenever the OS garbage collection throws out the no longer useful memory location BUT, VISA knows the name in the Dup IVI Session. Using the value on the Dup Session. Some subsequent call to open the session is going to look for the IVI Session state Cashe....and won't find it! BECAUSE....there is insufficient information about the cashe.
That's a working theory. In practice; don't ever branch the IVI Session wire going into a Close Session.! We really have no idea how each IVI driver dll implements session resource management if they are even consistant!