Hello,
I'm trying to do a program in Visual Basic 6.0 using the function DAQmxWriteDigitalLines. All work correctly except this function. When it try to execute this function say that a parameter "data" is not concur with the expected data.
This is the code:
Dim data(7) As Byte
data(0) = 1
data(1) = 0
data(2) = 0
data(3) = 0
data(4) = 0
data(5) = 0
data(6) = 0
data(7) = 0
DAQmxErrChk DAQmxWriteDigitalLines(myTaskOut, 1, 1, 10#, DAQmx_Val_GroupByChannel, dataOutput, 0, ByVal 0&)
If I write this, the program works correctly but only write in one line of the output. I would like to write in the seven lines of the port.
DAQmxErrChk DAQmxWriteDigitalLines(myTaskOut, 1, 1, 10#, DAQmx_Val_GroupByChannel, dataOutput(0), 0, ByVal 0&)
Thank you
antonioSotelo