03-22-2007 12:14 PM
03-26-2007 06:29 AM
03-26-2007 06:54 AM
Hi Bandit,
I found this KB that explains how Digital Filtering is applied to PFI lines in DAQmx:
http://digital.ni.com/public.nsf/allkb/9ECE7DBE7DF338BD86256F8600734A41
Basically digital filtering can't be directly enabled on a PFI or a digital line, the line has to be set up as a counter in order to access this property. The VI in the KB demonstrates how you can enable digital triggering on a PFI line then just use that line as a trigger for another task, rather then actually using it as a counter.
I believe this means that all you need to do is enable triggering for the PFI line you're using as the source, it doesn't really matter what you're actually using that PFI line for.
May I ask how you're configuring your edge seperation measurement? I'd be quite interested to see how you're setting it up to use an external timebase.
03-27-2007 03:28 AM
Hi Sarah, thanks for looking at this.
I had found the KB you mention and used it for guidance. I have yet to test the modified code (today) and willl advise you how it goes - but if you spot any glaring errors in my attachment, be sure to let me know.
My application is a complicated one, but I have cut and pasted the following .vi which shows how I'm doing this particular measurement. I hope I exported the basic task correctly from MAX - if not let me know and I'll post a jpg screenshot so you can reproduce the task.
All the code in the .vi has been bench tested in the original application except the new digital filter setup.
Regards,
Bandit
03-27-2007 03:30 AM
03-27-2007 09:45 AM
Hmmm. That didn't work. The only filter times allowed are 0.000s, 2.56e-3s, 6.425e-6s and 125.0e-9s. So my settings, which didn't match these, didn't work.
Time to alter the default values and try again.
Bandit.
04-03-2007 05:52 AM
04-03-2007 06:03 AM
Apologies - I really should have posted back again. I hate those threads that just stop in the middle without a conclusion. Some of them I'm afraid are mine.
After selecting one of the allowed filter values this seems to work. At any rate it's running without presenting any error messages, and the results I'm getting are far more consistent, so I'm assuming the filters are working OK.
Regards,
Bandit.