Thanks a lot Peter,
it does exactly what I want.
Just one question: why the voltage on a plot behaves so strange? I thought that it should be the straight line.
I have attached image of AI connected to DO, but it is the same when I connect voltage from power supply to AI.
Should I make something in MAX or somewhere else.
I already saw similar behaviour in NI data logger, a little bit different like connected pressure transducer showed the voltage and regilarly this voltage dropped to 0. Is it possible to avoid this?
Regards and thanks again.
Sergey.