Sample15: Generate random signal with 0 and 1
Download the Schematic : This archive contains files for DSPLinks.

Unzip the archive, copy them into DSPLinks directory and open it.

Open monitor windows for each component. (Choose the component by left click and "Open a Monitor" by right click). This generates analog random signal in the range between 0 and 2, then quantize that with the threshold of 1.

After you open TXTOUT, please choose "Tools" -> "Save Text" on the menu to save it.

A text file is generated and all numbers are 0 or 1.

Double-click on QTZ and click "Change Parameters". Check "drng" is equal to (N-1)th power of two. (1 = 2^0)

This schematic often asserts a warning box. Please ignore that for the time being.

Generate a sine wave by SIGGEN. (-1 to 1, in real)
FUNCPOLY puts offset. (0 to 2, in real)
Convert the numbers to integer by QTZ. (0 or 1, in integer)
Save it into a text file by TXTOUT.


Top Page