After you have installed the ni-5640 driver, there are some examples including basic AI&AO, you could find them by Start>>National Instrument>>NI-5640R>>Examples. And also, i recommend you to read the Getting Start document which could be found by Start>>National Instrument>>NI-5640R>>Documents.
M(t) = A(t)cos(Fc.t+theta(t)),
we take I=A(t).cos(theta(t)), Q=-A(t). sin(theta(t)),
so we get M(t) = I.cos(Fc.t) + Q.sin(Fc.t)
So I&Q is necessary for DUT.