Configure the horizontal and time base settings.
CalScopeSetupHorizontal (hHandle, nChannel, dFrequency, plStatus)
Name |
Type |
Comments |
hHandle |
LONG |
Handle for a Oscilloscope. |
nChannel |
SHORT |
Select channel (0-based). |
dFrequency |
DOUBLE |
Expected waveform’s frequency. |
plStatus |
PLONG |
Returned status: 0 on success, negative number on failure. |
The function configures the horizontal and time base settings based of the expected waveform’s frequency.
The following example sets channel 0 horizontal and time base settings for a 1MHz waveform:
LONG lHandle, lStatus;
CalScopeSetupHorizontal (lHandle, 0, 1e6, &lStatus);
CalScopeSetupAuto, CalScopeGetInfo, CalScopeMeasure, CalScopeReset, CalScopeSetupAcquisition, CalScopeSetupChannel, CalScopeGetError