Direct:
If you do not set a constant, it is run as the default parameter value.
Some of the areas to note are:
1, the signal type is the enumeration value, creates the constant can see;
2, the classmate will find out why the phase parameter seems to not work, because the reset signal does not give true;
3, about the sampling rate and the number of sampling points problem. This is explained in conjunction with the chart controls.
Where the horizontal axis represents the time, that is, if the output 1Hz waveform, then just can display a cycle.
The sampling rate is at least twice times the frequency, generally at least 5 times times the best. The sampling rate and frequency multiples directly determine a few points of a period sampling.
Therefore, 1Hz, if the sample rate is set at 10Hz, the sample number of 10 points, then exactly a period:
If the sample rate is constant and the number of samples increases by 10 times times, then the acquisition of 100 points is a ten-cycle period:
If the sample number is unchanged, increase the sampling rate, the sampling rate of 100Hz, only 10 points, then only one-tenth of the 1Hz waveform, that is, 0.1s:
Knowing these rules, when we create a virtual oscilloscope later, there is a scan time button, then you can consider from two angles:
Sample rate invariant number of points, sample rate variable number of points unchanged. You can see the next article for details.
Basic function Generator Function notes