From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-02-2016 01:50 PM
Yeah I created the enum and connected it to shift register but how do i switch between the values of enum after the time intervals?
11-02-2016 01:53 PM
can you show us what you have?
11-02-2016 02:50 PM
Hi
I don't exactly have anything except for a while loop with an enum attached to a shift register and case structures inside the while loop. I can attach it here but it would be rather embarassing. I'll try to develop something worthwhile today and then post it. I need to understand to work with the elemnets of state machine.
11-02-2016 03:12 PM
@kunal7505 wrote:Hi
I don't exactly have anything except for a while loop with an enum attached to a shift register and case structures inside the while loop. I can attach it here but it would be rather embarassing. I'll try to develop something worthwhile today and then post it. I need to understand to work with the elemnets of state machine.
It's not embarrassing; it's encouraging! Just let it all hang out, like we're your doctor. We won't be too judgemental. 😄
11-02-2016 04:46 PM
See if this rings a bell. (Very generic code!)
11-02-2016 06:45 PM
Here is what I have been able to setup. It's working pretty well but I still need some advice. Throughout the vi I have added comments wherever I am not clear. The major part is how to check for the 30 minute time interval. Another thing that is happening is that the when I switch to backwash valve the feed valve timer keeps on running, but I cannot pause it as well since I keep track of the one minute time for backwash using that timer. Please suggest resolve for the same and also if other tweakings are suggested.
11-02-2016 08:51 PM - edited 11-02-2016 08:52 PM
as a first step, get rid of all these local variables. none are needed. Place the indicators after the case structure and feed relevant values out of the case structure. Also place the controls outside the case.
Have you studied my examples.
11-03-2016 02:01 AM
try ranging, leds are on at the top of the hour as initial start or you can start by adding 30 minutes to the existing system clock minutes
11-03-2016 05:00 PM - edited 11-03-2016 05:05 PM
Hi,
@altenbach
Can you please explain the example and as to how it can solve my problem.
11-03-2016 05:31 PM
@kunal7505 wrote:
Can you please explain the example and as to how it can solve my problem.
Do you have any specific question?