I can't look at this because your version is too new. However I have
tried to code something very similar. The problem I encountered was
this: You can only set the sampling frequency to certain values (an
integer divided into the clock frequency) and the number of samples per
cycle is obviously an integer. So you cannot sweep the frequency with
arbitrarily fine increments. indeed figuring out how to sweep it is not
trivial as it may involve changing both the number of points per cycle
AND the clock divisor.
As a start you should probably decrease the number of points per cycle.
(Note that if you set the sampling rate DAQmx will round to a legal
value if necessary. If you need to know the actual sampling rate use a
property node to read it.)