I don't know if it's possible to trigger an acquisition from an output generation but it's possible to do it vice versa (start an output generation with the input acquisition start).
I suggest you to look at the online help for AI Trigger Config and AO Trigger Config (both found in the respective Advanced VIs palette) and at the LLB attached to this message that a NI technician sent to me some time ago (Simul AI AO Buffered SW Trigger.vi).
As a workaround for your actual problem, I could think to a scenario like that:
- Config the AO generation to start when AI starts
- Config AI to start at an external digital trigger. Define the lenght of the acquisition so that fulfills your requirements (given the scan rate, you could calculate buffer lenght to obtai
n an acquisition long exactly how the output generation)
- Use a digital IO to start the acquisition (connecting the DIO output to the correct PFI pin for AI trigger).
That way, when in your program you reach the point in which generate and acquire simply rising the digital line will start the AI and that one will start the AO. Both processes will continue independently and will end when defined in configuration.
I used a similar system (except the digital IO to start the process) to drive a motor in an alternator test bench: the generator i driven with a speed ramp while the card is acquiring AI channels; it works.
Hope this helps
Roberto