ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop ExportHardwareSignal

The next code produces a PWM signal on PFI12 and on PFI3, works perfectly !!!

 

myTask = new Task();
myTask.COChannels.CreatePulseChannelFrequency("/Dev1/ctr0", string.Empty, COPulseFrequencyUnits.Hertz, idleState, 0.0, 100, 0.5);
myTask.Timing.ConfigureImplicit(SampleQuantityMode.ContinuousSamples, 1000);

myTask.ExportSignals.ExportHardwareSignal(ExportSignal.CounterOutputEvent, $"/Dev1/PFI3");

MyTask.Start();

 

My question is:  How can i stop that the PWM signal is exported to PFI3  (I work in C# not in LabView!!)

 

When I abort and dispose the task and recreate it without calling ExportHardwareSignal it still exports the PWM signal on PFI12 to PFI3.

 

Help is appreciated

0 Kudos
Message 1 of 1
(844 Views)