VT System Functions
CAPLfunctionsVTSystemAlternativeFunctions
Open topic with navigation
CAPL Functions » VT System » Differences between Functions and Methods
VT System CAPL Functions
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ConfigurePWMMeasurement()
{
// Configure channel for PWM measurement
sysvar::VTS::RPMSensor.SetPWMMeasurementDuration(0.1); // 100ms
sysvar::VTS::RPMSensor.SetPWMThreshold(2.5); // 2.5V
}
testcase TestSensors ()
{
// Initialize PWM measurement on channels
ConfigurePWMMeasurement("VTS::RPMSensor");
ConfigurePWMMeasurement("VTS::TempSensor");
...
}
ConfigurePWMMeasurement(char channelName[])
{
// Configure channel for PWM measurement
vtsSetPWMMeasurementDuration(channelName, 0.1); // 100ms
vtsSetPWMThreshold(channelName, 2.5); // 2.5V
}