Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Can a counter source be inverted on the 6229

Can counter a source, for example "Dev1/Ctr0InternalOutput", be inverted on the 6229.  Currently, when I used the following line,

DAQmxConnectTerms ("/Dev1/Ctr0InternalOutput", "/Dev1/PFI4", DAQmx_Val_InvertPolarity);

I received an error stating that the hardware thus support inversion.  Thus the problem lies in the source or the destintation terminal?



0 Kudos
Message 1 of 2
(3,133 Views)
Hi cscp,

The 6229 does not have general purpose inverters available for such signal paths, and therefore is not capable of signal inversion as part of the DAQmxConnectTerms function call.

As part of the functionality of the on-board counters, however, the 6229 DOES have the ability to set the polarity of the counter output event.  Use the following function call:

DAQmxSetExportedCtrOutEventPulsePolarity(TaskHandle taskHandle, int32 data);
setting the data parameter to DAQmx_Val_ActiveLow (10096).

Hopefully this helps out.  If not, let me know, and we can keep working to get this issue fixed.  Best of luck on the application.

Have a great day!
Travis W







0 Kudos
Message 2 of 2
(3,119 Views)