Hello,
I suspect there is a very simple answer to this question.
I am using a BNC-2110 connector block, and a PXI 6052E IO board to do real-time single scans ("AI Single Scan.vi") and single updates ("AO Single Update.vi") on a PXI 8176 controller. I input/output a total of about 15000 points in a for loop. The system has worked fine, but now I would like to begin the input/output only after an externally generated digital TTL trigger is received on the PFI0 terminal of my connector block.
The output clock is driven by the "AI Scan Start" signal, so I do not want to impose further conditions onto the output side of things. Therefore I tried to tell "AI Start.vi" to wait for the trigger, but the program merrily proceeds to collect data, all the while generating an error code (-10800; operation couldn't complete within the time limit).
I must be doing something conceptually wrong. Could someone tell me how I can make analogue input wait (once) for a TTL signal before starting? Barring that, I wouldn't mind looping outside the main IO loop until my TTL trigger (suggestions welcome).
I've attached a stripped down version of my code for reference.
Thanks in advance,
Frenk