Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxSetCIEncoderAInputTerm arguments

I am trying to translate this .NET command to it's c equivalent:

 

myCounterTask->CIChannels[0]->EncoderAInputTerminal = "/Dev1/PFI0";

 

The c function would be:

 

DAQmxSetCIEncoderAInputTerm(myCounterTaskHandle, "/Dev1/PFI0", const char *data);

 

Except I have no idea what "data" refers to.  The .NET equivalent has no such argument and there is no obvious data associated with this operation beyond the channel name.  I tried looking it up in the NI documentation, but it is totally useless (just a copy and paste from the header file with no actual information):

http://zone.ni.com/reference/en-XX/help/370471AA-01/mxcprop/func219d/

 

Anyone used this function before and know what the last argument should be? 

0 Kudos
Message 1 of 2
(3,452 Views)

Hi saratoga,

 

This documentation explains that the channel argument refers to the DAQmx Virtual Channels being used, and that the data argument refers to the specific line to use as an input terminal, such as "/Dev1/PFI0".

 

Also, here is the most recent documentation for the DAQmxSetCIEncoderAInputTerm function. It's not any different than the link you provided, but I thought I'd provide a current version for your future reference.

Mike B.
Technical Support Engineer
National Instruments
Message 2 of 2
(3,414 Views)