Hi!
I want to put out a digital waveform of 0´s and 1´s on port0/line0 of my Ni6259. As Trigger I want to have the 20MHz timebase or a divisor of it (haven´t figured out yet how divsion of timebases works as well, does anyone know?).
I made a boolean array with 1000 entrys and use it as digital signal. I set up a digital output channel with finite samples and number of samples is 1000, sampling rate is 1000Hz. Next I got a while-loop with daqmx-write, -start, -wait until done and - stop in it.
My signal output is given to an oscilloscope. In my array the first entry is 1, all others are 0.
The problem is, that the peaks come with about 50Hz and I don´t know why. The peak is 50ns long, which is ok with 20MHz and if I set a one as last entry in the array, I can see, that first and last peak have 50us time in between, which is ok, too with 1000 samples. Changing the sampling rate doesn´t do anything.
For my understanding, the signal generation should start over again depending on sampling rate.
Can someone help me with this problem?
If something is not understandible, please ask.
Regards,
Yopp