Discussion:
Equivalent functions
(too old to reply)
Rajaram
2007-06-05 13:10:15 UTC
Permalink
Hi there
I m writing an program in Visual Basic 6.0 using DAQmx driver 8.3 fo PCI 6602 . I would like to convert the program from using traditional DAQ to DAQmx. I have the following functions in traditional DAQ
1) DIG_IN_LINE
2)DIG_OUT_LINE
3)DIG_CONFIG_LINE
Can i get the equivalent function in DAQmx?
 
Thanks
Rajaram
2007-06-06 16:10:11 UTC
Permalink
Hello Sarah,
Thanks for your reply, I have sorted out using the following functions
DAQmxErrChk DAQmxCreateDOChan(taskHandle, "Dev1/port0/line10", "", DAQmx_Val_ChanForAllLines)
DAQmxErrChk DAQmxReadDigitalLines(taskHandle, 1, 10#, DAQmx_Val_GroupByChannel, istate(0), arraySizeInBytes, _sampsPerChanRead, numBytesPerSamp, ByVal 0&)
DAQmxErrChk DAQmxWriteDigitalLines(taskHandle, 1, True, 10#, DAQmx_Val_GroupByChannel, istate(0), _sampsPerChanWritten, ByVal 0&)
Regards

Loading...