LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone please help me? State machine problem. My code is skipping a step?

I have most of my work done. The only problem I am having is on this part of my code shown below (I have attached my code). The second select block from the bottom won't let me transition to the next frame (Energize relay 3) if when it's true state. I'm only transition to Energize relay 4 and Energize relay 2. 

What am I doing wrong here?

I'm not an expert. If you can help me that would be great. 

Below are the numbers associated with the selections. The scan search 1D array does not find a matching number -1 is returned. 

 

GRCK5000_0-1646085814563.png

GRCK5000_1-1646086096126.png

 

 

0 Kudos
Message 1 of 4
(292 Views)

@GRCK5000 wrote:

I have most of my work done...

 


I think your far from being mostly done...

 

Frozen_0-1646087830380.png

You have not updated "state" in your cluster... you just overwrite the same cluster enum 4 time in the above screenshot... and slightly to the left, you overwrite "test cycle" five times.

Time to take some of the free basic training?

 

---------------------------------------------
Certified LabVIEW Developer (CLD)
There are two ways to tell somebody thanks: Kudos and Marked Solutions
0 Kudos
Message 2 of 4
(272 Views)

Are you saying energize relay 1 to 4 should have their own enums? Sorry, I'm a visual learner. Correct me if I'm wrong. 

0 Kudos
Message 3 of 4
(260 Views)

Yes, each Engergize Relay should have it's own state. Start there first.

0 Kudos
Message 4 of 4
(200 Views)