Hi,
Here is what I am attempting to do. I need to capture a waveform of some data comming from our UUT, using an analog trigger on the same data. However I also need to send a pulse to the UUT to tell it to begin generating data. This pulse needs to be sent after we have started aquiring data, so we don't miss any of the data. I would like to do both of these tasks using NI PXI-6071E MIO card. The order in which I currently have my code implemented is as follows:
AI Config
AI Start
AO Write One Update
AO Waveform Gen
AO Write One Update
AI Read
AI Clear
What happens when I run this is that the AI setup works fine, the pulse is sent fine, and the UUT begins outputting data, but when I call AI Read, it does not retur
n any data and eventually times out (assuming that it must have never triggered).
If I replace the AO code with code to make my DC Supply send a pulse, then everythings works as expected. However, the duration of the pulse is critical, and the DC Supply is not precise enough for our task.
I also tried replacing the MIO AO code with code that uses the NI PXI-6704 Analog Output. Like the DC Supply this won't be adequate for the job because it can't send a waveform, just single points with software timing. Interestingly though, this code showed the same problem as the MIO AO code - AI setup worked fine, pulse sent fine, UUT sent data fine, but AI Read never got any data. This is surprising to be because I was think that the problem was related to trying to get the MIO to do two things at once.
When using both AI and AO simultaniously, is there a particular order in which the vi's have to be called? (like don't call a AO config after you have started an AI acquisition, don't call
AO/AI clear until both tasks are done, etc)? Is there any other reason you can think of that would be causing an conflict, particularly, why would using another AOUT card affect the MIO at all?
thanks,
jackson