LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in OAT Convert Speed Waveform to Speed Profile

Solved!
Go to solution

There is a bug in the SoundVib_TachProcess.lvlib:OAT Convert Speed Waveform to Speed Profile.vi that generates an erroneous speed profile output.  This scenario occurs when the function is used during continuous processing of a speed waveform for any calls after it is reset.

 

It seems the intent is to insert the last speed point in front of the current data in order to linearly interpolate the data.  However, the issue is the last speed point is not scaled back up from rot/sec to RPM, and this creates an artificial step effect at the beginning of the speed profile output.

 

Faulty VI:

OAT Faulty Method.PNG

 

 

 

 

 

 

 

 

 

 

 

Here is the faulty speed profile output.

OAT Faulty Method Output.PNG

 

The correction is simply to multiply the previous state data 'y' value by 60 in order to scale it back to RPM before inserting it into the data.

 

Corrected VI:

OAT Corrected Method.PNG

Corrected Output:

OAT Corrected Method Output.PNG

-Derek Roane
Message 1 of 6
(1,791 Views)

I'm not familiar with this VI.  Is this an NI product?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 6
(1,758 Views)

Yes it is part of the Sound and Vibration toolkit. 

-Derek Roane
0 Kudos
Message 3 of 6
(1,743 Views)

Gregopher, what version of LV and SVT are you using? I can make sure that this is fixed in 2021 and later, and I can add a test (that clearly was missing) to make sure this bug can't happen again.

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 4 of 6
(1,708 Views)
Solution
Accepted by topic author DR_redviking

Your fix has been submitted to the main line, and a new test has been added that verifies continuous result against one shot result.

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 5 of 6
(1,701 Views)

Thank you Doug!  I also submitted a bug report shortly after my original post (bug #1317940).

-Derek Roane
0 Kudos
Message 6 of 6
(1,655 Views)