I've already used SmoothValue() without any problems. But at the moment I get strange results with it.
Until yesterday my code used two smoothed values. For both I set same rate and initial value as
Code: Select all
levelSmoothedValue.ResetValue( 0 );
levelSmoothedValue.SetFixedTime( smoothRate, 1.0 );
averageSmoothedValue.ResetValue( 0 );
averageSmoothedValue.SetFixedTime( smoothRate, 1.0 );
Today I added a testSmoothValue() to the code. Now it's getting worse. All three values are different and their slew rate is much too long. Additional information:
- VMD 2.7.0 on a Windows 10 PC
- Target values levelSmoothedValue.SetValue( value ) are set within ProcessSample()
- Smoothed values levelSmoothedValue.GetSmoothValue( value ) are used in a void method, that is called from Notification()-GUI_Update_Timer
- This strange behaviour is also whith the published module in VM
Does anybody have any idea what is wrong with my code?
I'd be happy when getting a hint because I'm looking for a fault for two days now.
Roland
By the way: Today I had another issue for second time: VMD debugging client seems to start normal, but there isn't any operation.
With the help of Log() I found: Neither ProcessSample() nor Notify() are executed while VM is running. After VM is shut down, VMD works fine.