08-07-2024 06:40 AM
08-07-2024 09:26 AM - edited 08-07-2024 10:50 AM
(This seems to be a LabVIEW question, not sure why you would post it in the courter/timer forum. I moved it to the LabVIEW forum.)
All we can tell, that the code is horrible, peppered with local variables and sequence structures. We can't even see the toplevel loop (if there is one). There are glaring race conditions for example you read and write the "Down 1" in parallel, but the results differ depending on what happens first. Same for "slide".
We can probably help you if you:
I very strongly recommend to start with a few basic tutorials.