Generating signal from a file

The Software Signal generator allows to produce  signals from binary and text files at the DAC output.

Signal generator - Generation of signals from a file - 1

Signal generator - Generation of signals from a file - 2

Examples of program implementation

Signal generator from a file is used when it is necessary to reproduce certain conditions that have been previously recorded as binary signals. Using such program is also necessary when a signal has been recorded as a text file. It allows to reproduce typical as well as specific signals and to modulate any signal shape at the DAC output of the connected devices.

In the case, if there is no recorded signal available, it is possible to form a signal with ZETLAB software programs.

  • The program “Formula” allows to use various signals from the menu “Deterministic signals”. In our case, we were using a multi-stage signal StepGen (with 25000 kHz frequency and delta-function).

Generating signal from a file - StepGen signal in Formula program

  • Start the program “Signal filtering“, set the real resonance filter value 1000 Hz and damping rate 0,1 for the channel “Formula 1″ (which has been previously created in the program “Formula“). Thus, there is formed the channel Filter 1.

Generating signal from a file - Signal filtering program window - settings

  • To record the signals, start the program “Multichannel oscilloscope“, set the program for display of two channels – Formula 1 and Filter 1, set 1 second for update speed. Click “Recording” key to produce a text file and save it as File.dtu.

Generating a signal from a file - Multichannel oscilloscope program

In order to reproduce the recorded text file using the program Signal generator, it is necessary to introduce certain amendments into it using a text editor program (e.g., Notepad++).

It is necessary to introduce 8 additional lines before the main data array. The lines 1,2,3,5 and 6 may contain arbitrary information, while the line 4 should contain sampling rate (in our case – 25 000 Hz), the line number 7 should contain the names of the data columns (separated with tab characters), the line number 8 contains the measurement units (separated with tab characters).

Signal generation from a file - editing the data file

Start the program Signals generator, enter the File tab, select the file “File.dtu”, choose the channel to be reproduced (in our case it can be whether Formula 1 or Filter 1), activate the Loop option and turn on the generator.

Generation of signals from a file - Signal generator program - selecting a file

Using the program Multichannel oscilloscope, it is possible to display a signal with a predetermined shape.

Signals generation from a file - displaying a signal with predetermined shape

This signal can also be processed by means of other programs from the scope of ZETLAB software, e.g., using the program Modal analysis available in the menu Signal analysis.

Signals generation from a file - Modal analysis program - processing of the signal

The files to be reproduced in the program Signals generator can be created by the user (in text editor program and with *.dtu extension).

Generation of signal from a file - creating a file in a text editor

The sequence of starting the registered signal from a file is identical to the one described above: enter the program Signals generator, enter the File tab, select the file to be displayed, and start the signals generator.

The results of the program operation can be viewed in the program Multichannel oscilloscope.

Generation of signal from a file - Multichannel oscilloscope program, results of program operation

Additional information on reproducing the recorded signal is available in the video-lesson “Musical vibrations”. This video shows s reproduction of a piece of music at the output of FFT spectrum analyzer connected to a vibration exciter (shaker).

Supported products

The Software Signal generator is included into the scope of the following  Software packages:

Signal generator is included into Generators program section.