Hi,
unfortunately, the person who wrote the paper hasn't said the daq card connections, however, it looks from the diagram to have been done through AI channel 1 and AO channel 0
So for your DAQ card that would be the AO 0 to the output circuit drive (pin 20 AO0 to the resistor attached to the base of the transistor, pin 23 AO Gnd to ground), and the AI to the reference voltage (depending on how you've got the daq card setup in Measurement and Automation explorer = Diff = Ref voltage goes to 3 ai0, the ground side going to pin 4 ai8. If set for RSE, then pin 3 and pin 1, nrse then pin 3 and pin 19)
The code you've attached uses the digital port however, so I've no idea what you are trying to aceive with this code.
Also, since you seem to be asking about a setup that requires a certain level of timing to it, then the digital lines (which are static) are not going to be ideal, since you're using software timing to drive them.
I can only assume that the code you attached doesn't run through the board you made from the pdf.
In which case, I'd suggest you talk to the person who made that code, and find out what they were aiming at.
Thanks
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer