|
FreqOut
procedure (float version)
Call FreqOut(Pin,
Freq1, Freq2, Duration)
Arguments
|
Item
|
Type
|
Direction
|
Description
|
|
Pin
|
Byte
|
Input
|
Output pin number.
|
|
Freq1
|
Integer
|
Input
|
Frequency 1. Units are in Hz.
|
|
Freq2
|
Integer
|
Input
|
Frequency 2. Units are in Hz.
|
|
Duration
|
Single
|
Input
|
Duration of signal. Units are in seconds. Range is about 1.0 ms
to 2.56 s.
|
Description
Generates an analog
signal that consists of two superimposed sine waves. The signal is generated
for the specified duration, where the time units are in seconds.
Warning
This procedure halts
all multitasking for the duration of the call. The real time clock (RTC),
task switching and network traffic are suspended during this time. If
Duration is greater than 1.95 milliseconds, the RTC will lose time.
|