I am using LV 8 on W2K. I am making a 1ms wide pulse with CTR0 on a PXI-6259. If I put a DAQmx Wait Until Done after the pulse generation and before clearing the Task, it takes 100ms ;to return from DAQmx Wait Until Done. If I try to generate a second pulse as soon as possible after the first, I can't get them any closer than 100ms or so.
I remove the DAQmx Wait Until Done, generate a pulse, clear the task, generate another pulse immediately thereafter, and it works. No errors, so the task must have finished OK. Any idea why DAQmx Wait Until Done takes so long to return? I have seen the same thing by starting the task and then polling DAQmx Is Task Done?.
Regards,
DaveT
-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.