Please bear with me; I'm new to DAQmx. I was able to read in pulses using a 6601 timer with the DAQ legacy software, but I haven't had much luck doing this with DAQmx. To read a signal, it looks like I have to associate it with a task, but I haven't been able to figure out how to do that with internal signals such as the 100kHz internal timebase.
I'd be looking to duplicate the following VB6 code written using the legacy activeX controls.
I used this code to set up to timer to use the 100kHz timebase and measure counter events:
frmMainMenu.CWCounter1.TimebaseSource = cwctrFrequencyTB
frmMainMenu.CWCounter1.TimebaseSignal = 100000
frmMainMenu.CWCounter1.MeasurementType = cwctrEvents
frmMainMenu.CWCounter1.Configure
I then used this code to read a count of events:
frmMainMenu.CWCounter1.ReadMeasurement Measurement, Overflow
TimeInSec = Measurement / 100000
Thanks in advance for any help,
Steve