06-05-2009 03:40 PM
Where is some example to use DAQmxSetDIInvertLines() function?
Regards,
06-08-2009 09:46 AM
Hi anarkie,
You can find information about this function in the NI-DAQmx C Reference Help. The Help is installed with DAQmx and can be found at Start >> All Programs >> National Instruments >> NI-DAQ >>Text-Based Code Support >> NI-DAQmx C Reference Help. I searched for DAQmxSetDIInvertLine and found help for the syntax of this function and a brief description of what the function does. I would also suggest looking at the example programs located at Start >> All Programs >> National Instruments >> NI-DAQ >>Text-Based Code Support >>ANSI C Examples. These examples will give you a good starting point for using DAQmx. I would take a look at the Read Dig Chan example, located in the C examples at Digital >> Read Values >> Read Dig Chan. You will notice that at the beginning, the task and channel are created. Once these are created, you will be able to use the DAQmxSetDIInvertLines function. I have added an attachment modified from the Read Dig Chan that does exactly this.