Dear All,
I am trying to measure the frequency (or the period) of a digital input signal which is connected to the PFI0 input on a DAQPad-6015. I tried to modify one of the supplied examples (C:\Program Files\...\MeasDigFrequency_LowFreq1Ctr.sln) in order to use the PFI0 input.
I added the following code to the measureFrequencyButton_Click procedure:
DaqSystem.Local.ConnectTerminals("/Dev1/PFI0","/Dev1/ctr0Source")
after the Try statement. When running the program I get the error message:
Specified route cannot be satisfied, because it requires resources that are currently in use by anther route.
Property: NationalInstruments.DAQmx.CIChannel.CounterTimerbaseSource
Property: NationalInstruments.DAQmx.CIChannel.CounterTimerbaseActiveEdge
Source Device: Dev1
Source Terminal: MasterTimebase
Task Name: CITask
Status Code: -89137
My questions:
1. Is this the right approach or should I use another procedure?
2. Is that the right place (procedure measureFrequencyButton_Click, before creating myTask) to make a connection of DAQ terminals?
Any help is appreciated.
Detlef S.