Hello everyone!
Is there a certain way you program to make labview execute ALL commands within a loop before going into another loop? For example, I have a while loop that stops if either the stop button is pushed or if the set point input is greater than 8. If both of these are false, then the code entered a case structure where it controls the output from a plant model. However, labview will enter the case structure without checking if both conditions are met. I've attached the VI and in the next message will post the VIs from the plant. I want it to do the below code,
IF (Set Point > 8 OR Set Point < 0) THEN
SET_Point OK= False
ELSe
SET_Point OK = True
END IF
IF (SET_Point OK = FALSE OR Stop Button pushed) THEN
! STOP VI
ELSE
! Enter PID Control Loop
END IF
But labview likes to just jump around and skip parts for some reason. So when it for example, skips the OR check it uses the default value of true for the next case structure. It's driving me crazy. Can anyone please tell me why its doing this??
Thanks.