im using k8061 , C# & i want to read digital input data from DS18B20 temp. sensor which send 12 bit binary word in 750ms. i tried to do it but the digital port of the k8061 returns only 1 or 0 & doesn
t return a stream of bits,
& here is the code
int CardAdress = k8061.OpenDevice();
Console.WriteLine("card adress is: " + CardAdress);
int j, digitalIn1;
int[] x = new int[12];
for (j = 0; j < 12; j++) {
digitalIn1 = k8061.ReadDigitalChannel(CardAdress, 1);
x[j] = digitalIn1;
}
for (int i = 0; i < 12; i++)
{
Console.Write(x[i]);
}