Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

While loops

Hi guys,
I have a code that includes several loops:
A flat sequence inside a case structure which is inside a while loop.
At the very end of the flat sequence i have a display message VI, when i press the ok button on the popup message it is supposed to stop the program, what i did is i wired the OK of the display message vi from inside the flat sequence to the stop condition of the while loop however i see that some the program runs back again before it fully stops.
Can someone please suggest a way to fix this or is there some other more efficient way to do it?
Thanks in advance
0 Kudos
Message 1 of 4
(4,239 Views)

It would help if you actually showed your code.

 

You say you have several loops.  How are you stopping them?  How do they know how to run?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(4,231 Views)
I stopped working on the code a while ago, will post it tomorrow with detailed explanation on what it is supposed to do.
Sorry but it's close to 5am here.
0 Kudos
Message 3 of 4
(4,227 Views)

hello again,

i have solved the above issue however i have another with a different code.

the code is about a parkmeter that takes 1$ in the day for 1 hour and 2$ for more

at night it takes 2$ for 1 hour and 4$ for more.

i used an optocoupler for this however the code is kind of bugged meaning that there's a delay between the money counter and  the message display that says that the money is enough. i attached the code i am using, it also contains several DAQs for 2 motors and an ldr to detect day or night.

i hope you guys can help and i am here if more information is needed.

thanks.

0 Kudos
Message 4 of 4
(4,194 Views)