Hi,
More or less it is related to the other message, I have tried to use readdigitallines function and now it seem to work better, because port values are not the same all the time.
But, I don't get the expected port value.
in fact I put a 5v power supply on each digital inputs and verify if the corresponding one is turning on and th port value I get doesnt match the correct port value expected,
for exemple at start I put ov on the first digital input and i get 00000000 and then if I put 5v on the same input I get 01111110 ( byte 8 is not used)
or I was expecting to get 10000000, moreover when I change the digital input i put 5 volt on for exemple the byte 2 i get 11111110 which is not was I was expecting neither (01000000)
consequently I infer that the voltage value i am actually connecting to the inputs does not match correctly the port value
So I guess the acquisition is not wirking correctly or maybe I am doing something wrong
I attached my code.
thanks
Olivier