12-15-2012 12:41 PM
Bildavid wrote:I am having a problem while trying to run any vi on my PC. I cannot run any VI by hitting RUN . the only way i can run the vi is by hitting run continuously and it's not a normal way of running a vi . without specifying any Vi all VI's are the same . do i have a problem related to the installation of the labview ?? .
Do you see the run button?
What exactly does/does not happen if you click it?
What happens if you enable execution highlighting and press the run button on the diagram window?
Is your ctrl key stuck? (e.g. pressing ctrl+run would just recompile without actually running)
Open any of the examples from the example finder. Do they show the same problem?
12-15-2012 03:11 PM
Dear Altenbach
Thank you for your time
okay . when i open the examples they do not show the same problem . it is only in the VI's i create. and i see the run button but the problem is when i hit run it runs for 1 second and stops directly.
Thank you so much !
12-15-2012 03:17 PM - edited 12-15-2012 06:13 PM
@Bildavid wrote:
okay . when i open the examples they do not show the same problem . it is only in the VI's i create. and i see the run button but the problem is when i hit run it runs for 1 second and stops directly.
As has been said before, if your VIs don't contain an outer while loop, they will run the code exactly once and then stop. Your code is not very complicated and completes in the blink of an eye.
Why should the program start over from the beginning if the code does not say it should?
If you use "continuous run", it continuously re-runs the VI whenever it completes. This is a debugging tool, nothing more and should not be used for regular operations.
12-15-2012 04:32 PM
@altenbach wrote:
@Bildavid wrote:
okay . when i open the examples they do not show the same problem . it is only in the VI's i create. and i see the run button but the problem is when i hit run it runs for 1 second and stops directly.
As has been said before, if your VIs don't contain an outer while loop, they will run the code exactly once and then stop. Your code is not very complicated and completes in the blink of an eye.
Why should the program start over from the beginning if the code does not say it should?
If you use "continuous run", it continuously re-runs the VI whenever it completes. This is a debugging tool, nothing more and sould not be used for regular operations.
I sure hope this isn't the answer. Billdavid said in earlier posts that things were working fine before installing 8.5. And after 154 posts on the forum, I sure hope he'd know the difference between the Run button and th Run Continuous button and know what a while loop is for.
12-16-2012 11:54 AM - edited 12-16-2012 11:55 AM
As i said in post #1. 🙂
/Y
12-16-2012 02:29 PM
@Yamaeda wrote:
As i said in post #1. 🙂
That's why I said "As has been said before ...". 😄
However, I felt that the message probably did not get through. (You did not mention an outer main loop, just some generic comment about loops and event structures, which do not necessarily solve the problem. A small FOR loop or an event structure with a timeout would not change much.)