Hello,
I am using LabVIEW to control a function generator 33500B. I have to use the burst mode to generate 20 cycles sine wave (1000Hz) in every second. And I need to keep the code running so that I can update the amplitude in every second (without clicking the RUN button again and again). Now I am using a while loop to keep the code running. I've got the following issues:
1) The execution time for one-time loop cycle is about 1.3s, which is longer than my desired burst cycle (1s). So I got a burst of 20 cycles sine wave in each 1.3s, instead of every 1s. My guess is that, since I am using a while loop, so in every execution cycle the function generator is re-initialized and re-configured, which is time consuming, costs about 1.3s. Is there any way to speed up the initialization and configuration process?
2) I found that there is another burst of sine waves appears before the 20 cycles of sine waves. This undesired burst has the same frequency and amplitude with the desired one. This undesired burst lasts about 1.5ms. And, after about 5.8ms, the desired burst comes out. I have completely no idea why and how this undesired burst is generated. I have attached the .vi project and a photo of the waveform I got.
Thanks in advance!
Shanshan