Daqarta for DOS Contents
ADVANCED STIMULUS SIGNAL GENERATOR
Freq menu to control the phase if you want both sine and cosine waves.
Ramp waves. The normal Triangle wave is bipolar, running between positive and negative full-scale values. If you need a positive unipolar wave, just set the Level to 50% and Offset to 50%. For a negative wave, set Offset to -50%.
triangle, this is a bipolar wave, but it can be converted to all positive or negative by setting Level to 50% and Offset to +50% or -50%, respectively.
For a 16-bit system, there are a total of 65535 steps possible. A 12-bit system only allows 4095 distinct steps, and an 8-bit allows 255, but this control does not change; if you set more steps than the DAC supports you will simply get a "smooth" ramp, as far as that DAC can produce.
Phase Modulation option to become Slope Modulation. With Phase Modulation the waveform simply slides back and forth, whereas Slope Modulation effectively modulates the Rise value. If you set Rise to 50% you get a triangle wave, and with Slope Modulation this tilts to the right and left. At 100% modulation, the wave smoothly changes between an effective Rise of 0% and 100%. This effect is easier to see at lower frequencies, where there are only a few cycles on the trace.
Level and Offset controls to make it unipolar. This wave has a fixed 50% duty cycle; use the Pulse wave to create other duty cycles (rectangular waves).
Note that although this is usually by far the most convenient method for generating and controlling pulses, you may also use the DigOut system if you have a lab-type board. Getting controllable biphasic pulses is more difficult, but sometimes that is the most appropriate approach.
Width Mode setting, this width can be given in percent, degrees, samples, or time. If A Width is set to 0 then the B pulse is the only pulse, and vice-versa.
To set the Track option, begin by hitting ENTER at the item as though you were going to adjust it normally, then ALT-Up or ALT-Dn will activate Track mode.
To exit Track mode, simply enter any B Width value normally.
If you want to create a monophasic pulse, you would typically set B Width to 0. This gives a rectangular wave with variable duty cycle, level, and offset.
If you set A Level to 0 (or to the 0 Level value) you will get a delayed Pulse B. Use A Width to adjust the delay time.
There is nothing to prevent you from setting both A Level and B Level to the same polarity. There is probably no reason to set identical levels, since you would simply get one longer pulse that required two different Width adjustments. But you might want to set different levels to get a two-step pulse.
To set the Mirror option, begin by hitting ENTER at the item as though you were going to adjust it normally, then ALT-Up or ALT-Dn will activate Mirror mode.
To exit Mirror mode, simply enter any B Level value normally.
Setting the B Level to 0 (or to the 0 Level value) will give what appears to be a single monophasic pulse, but this is usually not the best way to do that. It's better to set B Width to 0, so that A Width will give complete control over the duty cycle. However, there may be occasions where you want to deliberately limit the range of duty cycles, and for that you can set B Level to 0 and use B Width to set the minimum Off (dwell) time.
This is especially useful for monophasic pulses where you want to control the average (DC) value of the overall wave. For example, if the A Level is 100% and the A Width is 10%, the average level would be 10%. You can balance this out by setting the 0 Level to -11.111%. In general, for a pulse of width W and level A, the balancing 0 Level value Z will be:
A × W Z = ----------- (All units assumed to be %) (100 - W)Note that this approach does not keep the same base-to-peak height as set by the A Level value; as the base goes down the effective pulse size rises. If you are more concerned about keeping that constant, use the page Offset control instead. In the above example, you would simply set -10% to balance out the +10% average of the pulse. The pulse would then go from a baseline of -10 to a peak of +90.
Modulation menu. Pct and Deg allow Width modulation, while Smpls and Time allow Phase modulation.
Pulse Width Modulation (PWM) is commonly used in many areas. The output signal can be purely digital, on or off, but the average value changes with the modulation. The digital nature makes it easy to send the signal over a simple interface (such as an optoisolator), yet it is easy to recover the modulating signal via a simple low-pass filter.
PWM is the traditional method used in high-efficiency Class D amplifiers. Each output device (transistor) is always in either the full-on or full-off state, neither of which dissipates much power in the device itself, delivering it instead to the load. For audio amplifiers, the basic pulse frequency must be high enough so that it is out of the range of human hearing (well above 20 kHz). A simple low-pass filter at the output is typically made from an inductor and a capacitor.
Questions? Comments? Contact us!We respond to ALL inquiries, typically within 24 hrs.
25 Years of Innovative Instrumentation
© Copyright 1999 - 2006 by Interstellar Research