I am trying to write and read voltages from a NI9260 and NI9239 simultaneously, both of which are installed on a cDAQ-9174 chassis. For compatibility with legacy code, I also need to be able to do this in Python using nidaqmx. I can read and write with some time delay between read and write using the code attached. Currently, I am using a while loop that has the data written and read using these commands:
MultiWrite.write(AppliedWaves, auto_start=False)
MultiRead.start()
MultiWrite.start()
In the while loop, I also start/stop the tasks, which I think I shouldn't be doing. This makes it such that my output voltage drops to zero between iterations of the while loop. Instead, I would like to just apply the exact same wave over and over, without it dropping to zero. Perhaps changing to a continuous acquisition to fix the timing issue will also fix this issue with starting and stopping the task? Is there a good example of how to do simultaneous/continuous analogue reading and writing that would be of use to me?