I am using a BNC-2110 box with a 6024E NI-DAQ card. I am trying to develop a code that reads a continuous signal from a sample generator, outputs it on the screen and also onto an oscilloscope. The output on the screen apears fine, however, the output on the oscilloscope shows a glitch in the signal once every second. AS it stands, my sample rate is 50000/s and the number of samples per channel is 1000. My update rate is 1000. Is there something that I am doing wrong with these numbers? And do you have any ideas as to how I may eliminate these glitches? If you can assist, please help.
Also, I am trying to make a code that would generate and output a sine wave at a specific frequency for a given period of time, say 10 seconds, then this frequency should increase automatically to another number for another 10 seconds. The user should be able to specify both the beginning frequency, the increments of the frequency, as well as the time for which the wave remains at each frequency. My code already generates and outputs a continuous sine wave, however, I need to add the previously mentioned stipulations. Any help you can offer would be greatly appreciated.