02-02-2024 06:43 AM
Hi,
I have the following problem: I want to store the corresponding value in an array whenever an error is detected and use a case structure for this. The problem is that if no error is detected (false case), the output of the case structure must still be connected and thus the value is still written to the array. The case structure is in another while loop (needed to read data from the serial port) where the output values of the case structure are indexed and output as an array at the end. Does anyone have a suggestion on how I can just save the error values?
Best regards,
Tim
Solved! Go to Solution.
02-02-2024 06:57 AM
Hi Tim,
@Tim970 wrote:
The problem is that if no error is detected (false case), the output of the case structure must still be connected and thus the value is still written to the array. The case structure is in another while loop
Use a shift register in the outer loop and wire through your other case...
On your image: there's a coercion dot. You can avoid it by setting the representation of the constant at the FromString function...
02-02-2024 07:44 AM
Hi GerdW,
thanks for your help!
Best regards,
Tim