code
Description
Specifies the waveform code.
Syntax
Int32 code
Read
Gets the current waveform code.
Example
int wfCode;
wfCode = dsm.code;
Write
Sets new waveform code.
Example
dsm.code = 1;
Configurations
| Code | Description |
| 0 | Frequency ramps up from start frequency to stop frequency then goes back to start frequency. Frequency vs. Time graph resembles sawteeth. |
| 1 | Frequency ramps up from start frequency to stop frequency then ramps down. Frequency vs. Time graph resembles triangles. |
| 2 | Frequency ramps down from a higher frequency to a lower frequency then goes back to the original higher frequency. In other words, the reverse of wave code "0". |
Notes
For code "0" and code "1", the start frequency chirp1 should be less than the stop frequency chirp2. For code "2", reverse chirping, the start frequency chirp1 should be greater than the stop frequency chirp2.
For more details regarding the built-in waveform parameters, please see the DSM GUI Manual.