Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

C# .NET change counter's output from default

Hi,
 
i am trying to generate a pulstrain using a counter and redirect the output to different digital outputs.
In CVI i coud do this with:
 
  nStatus = DAQmxSetChanAttribute (gTaskCountDO, "", DAQmx_CO_Pulse_Term, "PFI4", 0);
Could anybody tell me how to do this in C#?

On the default output it works:

 

myTask =

new Task();

myTask.COChannels.CreatePulseChannelFrequency(counterComboBox.Text,

"ContinuousPulseTrain", COPulseFrequencyUnits.Hertz, idleState, 0.0,100000, 0.5);

myTask.Timing.ConfigureImplicit(

SampleQuantityMode.ContinuousSamples, 1000);

myTask.Start();

 

Thanks,

Guido.

 

0 Kudos
Message 1 of 1
(2,912 Views)