I have managed to make working port output, but now I need to use only 0,1,2,3,7 lines of port 2 to set there a values not affecting the 4,5,6 lines.
I made a task with assignment:
DAQmxErrChk(DAQmxCreateDOChan(taskOut, "ioDev/port2/line7",
"DigitalOut_0", DAQmx_Val_ChanPerLine));
DAQmxErrChk(DAQmxSetChanAttribute(taskOut, "H1B1.7", DAQmx_DO_InvertLines, 0));
DAQmxErrChk(DAQmxCreateDOChan(taskOut, "ioDev/port2/line3",
"DigitalOut_1", DAQmx_Val_ChanPerLine));
DAQmxErrChk(DAQmxSetChanAttribute(taskOut, "H1B1.3", DAQmx_DO_InvertLines, 0));
DAQmxErrChk(DAQmxCreateDOChan(taskOut, "ioDev/port2/line2",
"DigitalOut_2", DAQmx_Val_ChanPerLine));
DAQmxErrChk(DAQmxSetChanAttribute(taskOut, "H1B1.2", DAQmx_DO_InvertLines, 0));
DAQmxErrChk(DAQmxCreateDOChan(taskOut, "ioDev/port2/line1",
"DigitalOut_3", DAQmx_Val_ChanPerLine));
DAQmxErrChk(DAQmxSetChanAttribute(taskOut, "H1B1.1", DAQmx_DO_InvertLines, 0));
DAQmxErrChk(DAQmxCreateDOChan(taskOut, "ioDev/port2/line0",
"DigitalOut_7", DAQmx_Val_ChanPerLine));
DAQmxErrChk(DAQmxSetChanAttribute(taskOut, "H1B1.0", DAQmx_DO_InvertLines, 0));
in the input of my function I get |uInt8 word|, and I need to make some function to set those 0,1,2,3,7 having as a source that word.
How to operate DAQmxWriteDigitalLines, to set only 0,1,2,3,7 bits of the port with the assignment that I made above.
Thank you very much in advance
Chris