1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
<?xml version="1.0"?>
<block>
<name>Function Generator</name>
<key>math_gen</key>
<category>[Industrial IO]/Waveform Generators</category>
<import>from gnuradio import iio</import>
<make>iio.iio_math_gen($samp_rate, $wav_freq, $function)</make>
<param>
<name>samp_rate</name>
<key>samp_rate</key>
<value>samp_rate</value>
<type>int</type>
</param>
<param>
<name>wav_freq</name>
<key>wav_freq</key>
<value>1</value>
<type>int</type>
</param>
<param>
<name>f(x) =</name>
<key>function</key>
<value></value>
<type>string</type>
</param>
<!-- Refuse empty strings -->
<check>$function</check>
<source>
<name>out</name>
<type>float</type>
</source>
</block>
|