I had an app where I wanted to do a simultaneous read and write of AI and AO. My local rep said I couldn't do it on the same device. I sort of got it working but it was extremely unreliable. Apparently this is a limitation of NIDAQ or the hardware, not sure which. I don't know how fast you want to run or how accurately you need to time each read/write or how close together they need to be in time but what I ended up doing was doing the AO and AI config and building an array of the data I wanted to write out the AO. I then put an AOSingleUpdate and AISingleScan in a for loop. At this point you can do your compare and, for example, flag a fault. Put the for loop inside a while loop to run continuously. Put the AO and AI config, file read and any other one time stu
ff outside the while loop. I think you could probably run this loop, depending on hardware down to about 10 - 15 mSec.
Hope this helps.