Signal generator outputs
Control the output voltage, frequency, and waveform of a signal generator using Blockly code.
The blocks described on this page can be used together to control the signal generator on the Wireless AC/DC Module (EM-3533), the 850 Universal Interface (UI-5000), the PI-8127 Function Generator (PI-8127), and the 550 Universal Interface (UI-5001).
Set output value
Use this block to set the output voltage of a signal generator. The default number block can be replaced with a block from the Math group. In this example, the voltage of the AC/DC Module is set to 1 volt.
Set output frequency
Use this block to set the frequency of a signal generator in Hz. The default number block can be replaced with a block from the Math group.
Note
For more information on the types of waves which can be produced by the signal generator, see Set up and control the Signal Generator
Set output waveform
Use this block to set the waveform of a signal generator. In this example, the waveform of the AC/DC Module is set to a square wave.
Turn output on or off
Use this block to turn a signal generator on (true
) or off (false
). The default true/false block can be replaced with a block from the Logic group.
Example: Multiple blocks used together
In this example, the Wireless AC/DC Module outputs a square wave with an amplitude of 2 V and a frequency of 1000 Hz.