06-14-2013 01:44 AM
Hello,
I am facing one problem that after finishing one operation its take lots of time to stop the vi.
Means when one compete operation is done than its ask to save file and after saving file vi should be stop but before stop it take lots of time and then its stop.
And I have set that when user open vi its already in running condition.
Please guide me that how can I overcome this problem
thank you very much in advance.
Solved! Go to Solution.
06-14-2013 02:13 AM - edited 06-14-2013 02:14 AM
Your vi has a significant amount of inappropriate programming/logic (for example, you keep closing VISA throughout your vi even though you use it in so many cases - and even usage of VISA itself is done in a strange way).
In any case, I "skipped" past all your cases and triggered just the last case where you save file and then it is supposed to stop right away - well on my computer it does stop pretty much right away after writing a file (and file seems to be written ok too).
Not sure what problem you're seeing, perhaps you could look at some examples of how to use VISA and how to use state-machines and clean up the vi a little which would certainly improve your performance.
-DP
06-14-2013 02:24 AM
Thank you very much for reply.
Yea file is saving OK,
then vi should stop, but its not stop immediately its take nearly 1 min to stop, I have remove all extra close vi and please let me know is there any other thing to reduce the complexity of the vi which can be useful to speed up the vi.
thank you very much once again.
06-14-2013 02:43 AM
Try running your vi on another computer and see if it has that same lag after you save the file - as I mentioned, it seems to have no lag after saving the file on my computer. If you see a lag AFTER you select what name to give the output file and save it, the problem might be somewhere else...
-DP
06-14-2013 03:38 AM
May be it possible to have problem with system because I made new structure for same program and even though I am getting same problem.
Now I am trying to reduce repeated function and making vi smooth.
Thank you very much.