04-12-2006 06:38 AM
04-12-2006 06:56 AM
04-13-2006 01:03 AM
Sorry Kevin, I did not realize the link was available in your previous post.
I had a look at your VI, and you modify counter task parameters on the fly, indeed. I also use this trick.
The difference with my app is that you create the timing loop with "Signal from task". I experienced that at the beginning of our project and as I remember I had problems to use it as I needed to manage both falling/raise edges of the counter. Nevertheless, I have another timing loop to manage and your VI just recall me this "Signal from task" possibility, so I will probably use it.
Thanks !
04-13-2006 07:51 AM
Yeah, there are *definitely* times when it'd be handy to be able to be sensitive to both Rising and Falling edges. The semi-period measurement tasks manage to respond to both so it seems to me that there should be a way for other tasks to allow such a polarity designation. Triggering is another area where it'd often be convenient to trigger off either type of transition (and have a property to query that identifies what type of transition it was...)
Anyhow, glad to hear things are moving along in your app. Just one other idea that *might* have some promise, but I can't vouch for it 100%: If you have an M-series board, a high-speed digital board, or perhaps (?) one of the other boards that supports the "change detection" feature on a digital port, you may be able to use the "change detection" pulse as a timing source that's sensitive to either rising or falling transitions. I'm just not sure whether: (a) M-series boards generate such a pulse on a change detect event, (b) any such pulse may be used as a timing source for a Timed Loop.
-Kevin P.