hi group:
I am developing a project based the Ni-sci-1160. Now I meet a problem about switch on/off in a loop.
for example: I creat a loop, and continually check a boolean. if the boolean is true, then the realy is closed, otherwise the relay is open. The problem is when I make the boolean is true, the corresponding relay is not always on, but just on-off, on-off,on-off. I don't know why? Is there any good idea to fix it?
the easy example codes is attached here , thanks for you help.