Hello Roxanne,
In the title of this thread, you mention that the timing setup step takes a long time. Is this timing setup node being called repeatedly in your code? You may find that your code runs faster if the channel and task configurations only happen once.
Our shipping example, "Count Digital Events.vi" may be of interest to you.
Our Example Finder may be found by navigating:
Help » Find Examples
Once the Example Finder is open, you may locate that example by navigating:
hardware Input and Output » DAQmx » Counter Measurements » Count Digital Events.vi
Best regards.
Matthew H.
Applications Engineer
National Instruments