1. Place the Simulate Signal VI in the block diagram and configure it with signal type and frequency.
2. Place a numeric control for sampling frequency in front panel.
3. Place the arithmetic VI in the block diagram in order to calculate the aliasing effect.
4. Place the Resample Waveform VI in the block diagram to do sampling the simulated signal.
5. Place the FFT function VI in the block diagram in order to get the frequency waveform of the simulated signal.
6. Place the waveform graphs in the front panel and connect the blocks to output of each function in Block diagram.
7. Place the sub diagrams inside the while loop in order to repeat the operation until the stop button is enabled.
1. Observe the sampling theorem concept by varying the simulated signal
frequency and sampling frequency
2. Observe the aliasing effect by varying the simulated frequency.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.