06-18-2013 01:59 AM
Hello,
I am facing problem regarding to time consumption means after finishing one operation vi should be stop but the thing is its take 2 to 3 min and some time more than this time before stopping the vi.
And I have mansion this problem in other thread they told me that this vi is stop properly in our system, so might be there is problem form your system.
Will you please guide me that what are the possible reasons for that.??
How can I solve this problem which is not form labview but form the system that takes time after finishing one operation.
Thank you very much.
06-18-2013 08:38 AM
So if I understand, your VI runs but when you go to stop it the VI can take 2 to 3 minutes to return to the idle state, correct?
One reason that I have seen for this is that the code is openning up a bunch of references (like DAQ devices or XML entities) and not closing them. When the VI stops, LV will automatically start closing all the references that the VI left open - which, depending on the number of open references, can take several minutes. I saw one VI several years ago that too over a half an hour to stop.
What exactly is your VI doing?
Mike...
06-18-2013 08:57 AM
@AnkitRamani wrote:
And I have mansion this problem in other thread they told me that this vi is stop properly in our system, so might be there is problem form your system.
If you refer to another discussion here, please provide a link so we can see the details of the conclusions.
Can you show us some code?
06-18-2013 09:00 AM - edited 06-18-2013 09:05 AM
Thank you very much for reply.
Here in attachment I have attach my vi.
My vi is for measuring the capacitance form hameg8118 LCR bridge (which is connected trough GPIB cable ) with changing the voltage which is measure from the charge amplifier and its connected with PC with DAQ (analog card reader form NI).
After finishing all the measurement when user press Stop button then vi should be close suddenly but its take time to be stop.
Hope you will get my point.
Thank you very much once again.
06-18-2013 09:12 AM - edited 06-18-2013 09:14 AM
Your code is pretty hopeless and should be rewritten from scratch.
Most things make no sense:
In what state is the program when you try to stop?
06-19-2013 03:37 AM
Thank you very much for suggestion .
yea you are right that's all things which you mentioned were sense less I have removed that all and now I will try with that one.
But I have to wait for testing,as measurement devices are busy with other testing.
So I will let you know if every thing is fine or not.
Thank you very much once again for guidance.