I am new to DAQmx and .NET. In my application I need to activate a clock out on counter 2 (HW pci 16 E 4). I went through all the steps like the sampling examples but instead of Analog input I used counter output , and setup the pulse ratios.
When I click the switch in the user interface ( a user control databinded to the clock output) the output works. Since I need to activate it programmatically I tried to call the daQmxUserControl11.Start() method but this causes the following error :
An unhandled exception of type 'NationalInstruments.DAQmx.DaqException' occurred in nationalinstruments.daqmx.dll Additional information: Specified operation cannot be performed while the task is running. Task Name: DAQmxTask1 Status Code: -200479