// Set up PWM stimulation for sensor 1
// Set voltage stimulation mode
sysvar::VTS::Sensor1.SetStimulationMode(1);
// Set curve type PWM
sysvar::VTS::Sensor1.SetCurveType(1);
// Set the low voltage of the PWM signal to 10V
sysvar::VTS::Sensor1.SetPWMVoltageLow(10);
// Set the high voltage of the PWM signal to 14V
sysvar::VTS::Sensor1.SetPWMVoltageHigh(14);
// Set duty cycle to 40%
@sysvar::VTS::Sensor1::PWMDC = 40;
// Set frequency to 100Hz
@sysvar::VTS::Sensor1::PWMFreq = 100;
// Set up PWM stimulation for sensor 2
// Set voltage stimulation mode
sysvar::VTS::Sensor2.SetStimulationMode(1);
// Set curve type PWM
sysvar::VTS::Sensor2.SetCurveType(1);
// Set the low voltage of the PWM signal to 10V
sysvar::VTS::Sensor2.SetPWMVoltageLow(10);
// Set the high voltage of the PWM signal to 14V
sysvar::VTS::Sensor2.SetPWMVoltageHigh(14);
// Set duty cycle to 40%
@sysvar::VTS::Sensor2::PWMDC = 40;
// Set frequency to 100Hz
@sysvar::VTS::Sensor2::PWMFreq = 100;
// set a start delay of 2ms for Sensor2
// -> PWM signals have a slight phase shift
sysvar::VTS::Sensor2.SetPWMStartDelay(0.02);
// Start stimulation
sysvar::VTS::Sensor1.StartStimulation();
sysvar::VTS::Sensor2.StartStimulation();