Thanks a lot. Your advice was very helpful.
The problem for my application is I need to generate 2 independent square waves(AO) and measure(AI) 2 voltages (pressure transducer outputs) simultaneously and then write the results of AI(pressure measurements) to a spreadsheet file or a binary data file. Now we have solved the problem of simultaneously doing AI and AO for one square wave.
Using this example(Simul AIAO Buffer (E-Series).vi) you gave me, I am able to generate one square wave and meaure voltages of mutiple channels.
For this example you gave me, the AI read function was put in a while loop, which made it difficult to write the data to a file. Also I don't know if I could just simply add another set of compute waveform, AO config, AO write t
o generate the second square wave independently from the first square wave(say these 2 square waves have different amplitudes, frequencies, duty cycles, etc. and they are generated and sent to the output channels simultaneously and independently).
I was wondering if you could help me with this.
http://mypage.iu.edu/~zzhuang