Help/instruction for applying the analog/digital inputs

hi, dear web master;
the following is a small section of the coding of my application for using/controlling the outputs of the interface card:-

case this.value=1.00
declare outputanalogchannel in k8061.dll integer cardaddress, integer channel, integer data
outputanalogchannel(0, 1, 140)
messagebox("…",64,50,"…")
declare outputanalogchannel in k8061.dll integer cardaddress, integer channel, integer data
outputanalogchannel(0, 1, 0)
messagebox("…",64,4000,"…")

many output functions of the card/s can be control in this way. but i do not know how to code the analog/digital inputs. can you show me some examples. say, if there is an open-collector-output signal inputting to card no. 0, channel01, then a certain message is to be displayed for n seconds.