I have a PXIe-1082 chassis that contains a PXIe-6341 and a PXI-4304 module. What is the best way to trigger the analog channel (Ai0) in the -4304 to start reading then, after a few millisecond delay, output a digital signal from the -6341 (PFI 12). The channel Ai0 will continue to read a device until the PFI 12 signal has finished.
What do you mean when you say, "until the PFI 12 signal has finished"? Are you just outputting a digital high and you want to acquire until it goes back low?
The signal is 300 Hz with varying duty cycles and runs for N number of seconds. The analog input only needs to record a few milliseconds before the start of the signal and end recording after N seconds.
You can code in a millisecond delay between the triggering of the first analog data acquisition and the PFI 12 signal generation. As for stopping the acquisition after the signal is finished, I would just have the analog input be configured to continuously acquire and then you can monitor the the PFI 12 signal. Once it has been detected that it has finished, just stop the continuous acquisition.