I have a problem with locking the buffer exit. I'm able to lock the exit with my Method code but the exit won't unlock as I would like to. The buffer exit should be locked until the buffer is full and after the exit should be unlocked. Currently the buffer only gets full, but never goes empty.
if buffer_41.empty then
waituntil buffer_41.full prio 1;
elseif buffer_41.full then
Could someone advise what I'm doing wrong?
Thanks in advance!
Solved! Go to Solution.