I have a VI I am happy counts a 2bit counter to create the correct sequence firing the first 4 levels of the truth table using s0 and s1 selectors. However, the 4 readings I get back are confused and inconsistent. One channel will read a value meant for the others occasionally. I have tried several different variations and have now run out of ideas. There is no observable pattern in when the errors occur. Also, on this variation of the VI, the channel 0 seems to read wildly, whereas in different variations it brings much more sensible readings.
My original thoughts were that this was a timing issue, with the DOs being sent at a slightly out of sync time with when the Ains are being read back.
Can anyone have a look over my VI and see if there is a blatant problem. I am aware without the hardware it will be difficult to troubleshoot properly.
Please note I have attached 2 different methods - "different loops" channel 0 tends to vary wildly, "while3" has more sensible channel 0 readings but more random misreadings. I'm not sure which I prefer.