The way I managed to reduce the sampling rate isn't the best, but I could not find it other way that I could, for example, change the prescaler that change the sampling rate of this module. I will post a figure of a signal showing the LabView graph before I put the delay in arduino code. With the delay the waveform is without this cut in sine, that is, show a normal sine waveform.
For what I researched with some teachers, the sampling rate was very tall, thus, if any data package wasn't send correctly the module wasn't have enough time to resend the package and receive the new data to a new data package. Thus began give to some mistakes and cut the graph signal.
Now, the problem is to apply some digital signals in this software and evaluate spectrum frequency of this signal. For what I understand of LabView software, to do this tasks the signal need to have a sampling rate fixed. Thus, I got a little routine to I see if at least the sampling rate of module waveform was constant and I see that already there wasn't. I saw readings of time in between 160 us and 180 us between a sample and other without the delay of 4 ms that already in the code. I think in sending of data may occur some variation, and even in LabView some variation in this values, I hope I'm mistaken.
To try to resolve this problem I tried to use some LabView blocks that could help me in the resolution of this problem and was three: Build Waveform, Align and Resample Express VI, Resample Waveforms (single shot). My idea was to rebuild my waveform with a sampling rate pre-fixed for me. But I think that still do not know to use this tools correctly. I tried of many forms and unfortunately I didn't sucess.
The link to download my program .VI and arduino program is:
https://drive.google.com/drive/folders/ ... sp=sharing
Can anyone help me solve this problem?