Function Generation Via Auxiliary Outputs on Your Instruments

Introduction

Quite often one wants to generate an electrical waveform to assist his/her lock-in or impedance measurements. Such a function can be generated by a dedicated function generator, but ideally should be done in the same instrument, not only to save lab space but also to minimize the latency in transmission between different instruments, which is critical in many applications. Typical examples include tunable diode laser absorption spectroscopy (TDLAS [1], using a sawtooth wave), single-cell sorting ([2], using a sine wave), and deep level transient spectroscopy (DLTS [3], using a square pulse).

This short post recaps previous results on function generation and also explains how to generate another wave format, a triangle wave, through auxiliary outputs. The MFLI lock-in amplifier (or MFIA impedance analyzer) is used here as a reference. The configuration slightly differs on the HF2LI or UHFLI lock-in amplifier.


Sawtooth wave

Blog post [4] shows the detailed setup of outputting sawtooth wave from an auxiliary output.

Working principle: Demodulation of a constant gives a sine wave at the oscillator frequency, ω. The resulting Demod θ, the ωt term, changes linearly with time and is wrapped within -π to π.

Required upgrade option: multi-demodulator (MD) option on MFLI (IA), or multi-frequency (MF) option on HF2LI and UHFLI

 

Sine wave

Blog post [5] shows how to output a sine wave.

Working principle: Similar to the steps in sawtooth wave generation, but ‘unfiltered’ Demod X, the sin(ωt) term, is exact a sine wave. The low-pass filter bandwidth should be set higher than ω to allow pass of the signal. If needed, the phase can be adjusted in the lock-in tab.

Required upgrade option: multi-demodulator (MD) option on MFLI (IA), or multi-frequency (MF) option on HF2LI and UHFLI

Fig. 1 LabOne screenshot showing a sawtooth wave (in blue) generated on Aux Output 1 and a sine wave (in orange) generated on Aux Output 2. In the lock-in tab, the 1 kHz frequency is set by oscillator 1, and for the sine wave, a low-pass filter bandwidth of 4 kHz is used.  Note that the signal output is switched off, meaning that these functions can be generated independently of the main signal.

 

Square wave (pulse)

Blog post [6] shows how to set up a square wave using the threshold unit (TU).

Working principle: The period and duty cycle of a square wave is defined by logic gates (0 and 1) with customizable durations. To center the wave at 0 V, an offset voltage is also applied at the auxiliary output.

Required upgrade option: none. But TU is only available on the MFLI lock-in amplifier (and MFIA impedance analyzer). On other instrument platforms, DIO or trigger outputs may be used in a similar fashion, yet without amplitude control.

Fig. 2 LabOne screenshot showing a 50% duty cycle square wave (in blue) generated on Aux Output 3 and a triangle wave (in orange) generated on Aux Output 4. Note that in the Aux tab, all 4 channels can be used together, each giving a different wave format (1 for sawtooth and 2 for sine, as above).

 

Triangle wave

Working principle: Open-loop integration (I) of the above square wave converts it into a triangle wave in the same frequency. The value of I only affects the amplitude. P and D are not needed in this operation.

Required upgrade option: PID

Fig. 3 LabOne screenshot showing the threshold unit (TU) tab and the PID/PLL tab. TU 3 is set with a duration of 0.5 ms in both 0 and 1 states, creating a 1 kHz square wave in 50% duty cycle. PID 1 takes the square wave as input, and outputs the integrated voltage via Aux out 4.

 

Conclusion

This page summarizes the generation of different functions via auxiliary outputs. The settings file is available here and you are welcome to give it a try on your own MFLI (and MFIA). However please note that, since these outputs are not designed with a high bandwidth (as opposed to signal outputs), it is better to use them primarily at low frequencies.

If you have questions, please feel free to get in touch.

 

Reference

[1] https://www.zhinst.com/en/applications/optics-photonics/tunable-diode-laser-absorption-spectroscopy

[2] https://www.zhinst.com/en/applications/impedance-measurements/microfluidics-single-cell-detection-sorting

[3] https://www.zhinst.com/en/applications/impedance-measurements/deep-level-transient-spectroscopy-dlts

[4] https://blogs.zhinst.com/jamesw/wave-generation-with-hf2/

[5] https://blogs.zhinst.com/marco/2017/05/30/output-low-frequency-sinusoidal-signal-on-the-aux-output-of-mfli/

[6] https://blogs.zhinst.com/tim/2018/08/22/square-pulse-c-v-measurements-for-dlts-on-the-mfia/