Hi Ryan and Daniel,
I have some question regarding how to synchronize acquisition and generation on 6551. I briefly described my application in above posts. Basically, what we want to do is that, we have a couple of patterns, say 20, that needs to send to DUT. At the end of each pattern, we need to measure the current on the DUT, then send the next one. So we import those pattern into one HWS file. Let's say, the whole file has 10,000 sample. I have written a VI, so that it use script to control the generation. Let's say I want the generation channel to send out 1000 sample each time, then pause it and wait for a click on the button to send the next 1000 sample. I've already got this part done. And it is working. Now, the question becomes how do I synchronize the acquisition? Specifically, what I mean is that, I want the acquistion engine starts to acquire data when generation engine starts to send data. Once generation engine is paused by the script, then the acquisition should be paused as well until the generation starts again. So the kind of effect I want is that, when I click on the button on front panel, generation engine starts to send out the first 1000 sample then paused. Acqusition engine starts to acquire data immediately and stops after obtains 1000 sample. They are both waiting on the click of the button again. Once I click the button, the generation engine starts to send the second 1000 sample, and the acquistion engine starts to receive the second 1000 sample. Once it is done, they both stop. Such process repeated until all 10,000 sample is done.
Unfortunately, I found that acquisition engine does not support script trigger. Only generation engine supports script trigger. So I don't know how to make that work. What I currently have is that, I export "DATA READY EVENT" from generation channel, use that exported signal as start trigger for the acquisition channel. So what I ended up is, the first 1000 sample is matched between generation and acquisition. But after generation is stop, acquisition does not stop. It keeps to acquire the rest of 9000 sample, then stop. So when I click the button again. generation engine starts to send a new set of 1000 sample, but acquisition channel does not acquire any more data since it has already obtained 10,000 sample.
What can I do to get what I want? Thanks a lot.
tieling