Well, I've looked at the changes and saw that "relaysturing.vi" wasn't done right. Seems like I haven't made a decent subvi...
When I changed it, I keep getting an error in which I deduct that I can't use 2 DAQ assistent with the same channels programmed. So I tried (once again) to remove the relaysturing and simply remove the 4 channels in DAQ assistent 1 and use only channel 0. The Cycle1 switch has been put in an array (of 1 unit) and then connected to the DAQ assistent 1. I did the same with DAQ assistent 2 but with channel 1.
I tried it, and it worked. It switched the relays separately and was just what I was looking for. So there's no need to get data outside the while loop. Seems like this problem is solved, thanks 🙂
I use LV 7.1, and if I'm not mistaken, there are event structures in it. Never used it, so I have to find out how that works.
Back to my last reply, I had a new problem. I was thinking of a solution and came up with this. I lose the tick count outside the while loop, and just use the one from inside the while loop. The problem is, that this keeps running. So what I had in mind was to put the changing value in an array and lock the first value I get inside. Using the first value in the array which has been turned in a constant. Whenever a cycle is finished and I want to restart it, I use a button (reset or some sort) to let a new value of the tick count in the array in the first position (overwriting the last value) and using that in my time cycle. Just haven't figured it out how that should be made.