03-17-2006 09:52 AM
03-17-2006 12:40 PM
I don't think that kind of configuration can be changed while the task is running. I also can't comment on the DAQ calls as I only use LabVIEW.
However, it seems like there's other ways to accomplish the same kind of effect. For example, set up your main counter for gated counting all the time. But now instead of wiring an external signal directly to the Gate input do something like:
- wire the external signal to a digital input. Poll that digital value to determine in software when gating should be happening.
- generate a digital output to act as the gating signal. Wire this output to the counter gate.
-Kevin P.
03-18-2006 01:57 AM
Hi Kevin, thanks for your answer. Unfortunately I don't think your solution is feasible in my application since I am using 6601 card to precisely count up intervals with a precision of 1/100th of second: I cannot rely on software performance for such a precision (if I could, maybe I had no need of a counter card!
)
At present I modified my application to act this way: when I need to change counter configuration
1. I read counter value and store it in memory
2. I stop the counter and reprogram it for hated counting
3. I restart the counter
This does not seem to introduce a significant loss in time measurement, but if I could rearrange counter action without need to stop it and restart I would be more happy.
03-19-2006 11:35 PM
Sorry, I forgot one step above:
4. After restarting the counter, total time is time measured + time saved in step 1
03-20-2006 07:12 AM
Unfortunately I don't think your solution is feasible in my application since I am using 6601 card to precisely count up intervals with a precision of 1/100th of second: I cannot rely on software performance for such a precision
03-20-2006 02:34 PM