I'm working with a NIDAQmx provided c# example, ContGenVoltageWfm_IntClk. I can compile and run the executable without problems. All of the controls on the executable work without problems (change output channel, voltage limits, frequency, etc), but when I click the "start" button, I get the exception:
Method not found: 'Void NationalInstruments.DAQmx.Timing.ConfigureSampleClock(System.String, Double, NationalInstruments.DAQmx.SampleClockActiveEdge, NationalInstruments.DAQmx.SampleQuantityMode, Int32)'.
The offending line of code is:
myTask.Timing.ConfigureSampleClock("", fGen.ResultingSampleClockRate, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples, 1000);
If I remove the 5th parameter, samplesPerChannel (1000 in this case), the program works fine; I've checked the output from the DAQ card on a scope and I'm getting a sine wave at the correct frequency and voltage.
Has anyone else run into this problem? Does anyone know why I'm getting this?
For reference, I am using:
Win2000 SP4
PCI-6229 with NI-DAQmx 8.3.0
Mono-1.2.4 compiler
No measurement studio, visual studio, etc
Thanks!
Elizabeth Reynolds