11-18-2008 10:50 PM
I am using an USB-6218 with measurement studio 8.5 in a Visual Studio VB.Net application. The .NET samples provide and example for what I want to do in C\...\National Instruments\NI-DAQ\Examples\DotNET2.0\Counter\Measure Digital Frequency\MeasDigFreqBuffCont_LargeRange2Ctr. The problem I have is that I want this exact task to be able to be performed on any of the PFI channels (PFI 0-3, PFI 8-11), not just the default which is PFI 0 on counter0. I cannot seem to find any information on how to change the default PFI input pin to the counter source for .net, or any clarity on the subject of signal routing. The various manuals and even the example comment all refer to being able to do this but there is no specific detail anywhere on any methods exposed to allow one to do this. Thanks.
Solved! Go to Solution.
11-19-2008 07:02 PM
Hi Engineer Pete,
After you create the Counter channel you can use the FrequencyTerminal property under the CIChannel Class. With this function you can specify what PFI line you want to use for the input terminal of the signal you want to measure. You can find more information of this property on the Documentation file. Let us know if this is helpful,
11-19-2008 10:23 PM - edited 11-19-2008 10:32 PM
Hi Ana
SUCCESS!!! Using the example .net code mentioned at the beginning, I added a name "test" to the channel instead of blank,
myTask.CIChannels.CreateFrequencyChannel(counterComboBox.Text, "test", _...
then accessed the property by adding:
Dim d As CIChannel = myTask.CIChannels("test")
d.FrequencyTerminal = "/DAQ1/PFI11" 'set PFI terminal here
Thanks very much for the assistance.
Pete.