public class SineWaveGenerator extends PotentialGenerator
Modifier and Type | Field and Description |
---|---|
float |
cyclesPerSec |
itsChannel, itsDeviceInterface, itsOutputV, itsRefreshRate, itsStartTime, mSPerStep
Constructor and Description |
---|
SineWaveGenerator(DeviceInterface devIntf,
float maxV,
int channel,
float freq)
standard constructor for the Sine wave Generator
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Main method.
|
void |
run()
generates the Signal
|
initialize
close, setChannel, setsOutputVoltage
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public SineWaveGenerator(DeviceInterface devIntf, float maxV, int channel, float freq)
devIntf
- the device interfacemaxV
- the output voltagechannel
- the device channelfreq
- the wave frequencypublic void run()
SignalGenerator
run
in interface java.lang.Runnable
run
in class SignalGenerator
public static void main(java.lang.String[] args)
args
- the argumentsRH, 2017