⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 siggen.9

📁 CNC 的开放码,EMC2 V2.2.8版
💻 9
字号:
.TH SIGGEN "9" "2007-01-16" "EMC Documentation" "HAL Component".de TQ.br.ns.TP \\$1...SH NAMEsiggen \- signal generator.SH SYNOPSIS\fBloadrt siggen num_chan=\fInum\fR.SH DESCRIPTION\fBsiggen\fR is a signal generator that can be used for testing andother applications that need simple waveforms.  It produces sine,cosine, triangle, sawtooth, and square waves of variable frequency,amplitude, and offset, which can be used as inputs to other HALcomponents..P\fBsiggen\fR supports a maximum of sixteen channels.  The number ofchannels actually loaded is set by the \fBnum_chan\fR argument whenthe module is loaded.  If \fBnumchan\fR is not specified, the defaultvalue is one..SH FUNCTIONS.TP \fBsiggen.\fIN\fB.update\fR (uses floating-point)Updates output pins for signal generator \fIN\fR.  Each time it iscalled it calculates a new sample.  It should be called many timesfaster than the desired signal frequency, to avoid distortion andaliasing..SH PINS.TP\fBsiggen.\fIN\fB.frequency\fR float inThe output frequency for signal generator \fIN\fR, in Hertz.  The defaultvalue is 1.0 Hertz..TP\fBsiggen.\fIN\fB.amplitude\fR float inThe output amplitude for signal generator \fIN\fR.  If \fBoffset\fR iszero, the outputs will swing from -\fBamplitude\fR to +\fBamplitude\fR.The default value is 1.00..TP\fBsiggen.\fIN\fB.offset\fR float inThe output offset for signal generator \fIN\fR.  This value is addeddirectly to the output signal.  The default value is zero..TP\fBsiggen.\fIN\fB.square\fR float outThe square wave output.  Positive while \fBtriangle\fR and \fBcosine\fRare ramping upwards, and while \fBsine\fR is negative..TP\fBsiggen.\fIN\fB.sine\fR float outThe sine output.  Lags \fBcosine\fR by 90 degrees..TP\fBsiggen.\fIN\fB.cosine\fR float outThe cosine output.  Leads \fBsine\fR by 90 degrees..TP\fBsiggen.\fIN\fB.triangle\fR float outThe triangle wave output.  Ramps up while \fBsquare\fR is positive, anddown while \fBsquare\fR is negative.  Reaches its positive and negativepeaks at the same time as \fBcosine\fR..TP\fBsiggen.\fIN\fB.sawtooth\fR float outThe sawtooth output.  Ramps upwards to its positive peak, then instantlydrops to its negative peak and starts ramping again.  The drop occurswhen \fBtriangle\fR and \fBcosine\fR are at their positive peaks, andcoincides with the falling edge of \fBsquare\fR..SH PARAMETERS.PNone

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -