06-06-2015 12:11 AM
In this VI CWT is applied to 1D waveform
I want to reduce the coefficent of CWT scalogram to zero below certain threshold.
Please help me in this regard.
Solved! Go to Solution.
06-06-2015 08:18 AM
06-06-2015 01:41 PM
Hi mike
The VI is working properly. Using this VI CWT of 1D waveform data is carried out. You can see in block dram first CWT is applied to waveform data. Then absolute and square of Coefficent is carried out. This will produce 2D map of CWT coefficent as shown in Fig. below. Final CWT coefficent have positive value. I want to apply thresolding to CWT coefficent. Let us say 4.9 and reduce CWT coefficent to zero below 4.9 value of CWT coefficent. The data file 'x.xlsx' is attached herewith.
06-06-2015 02:15 PM
Are you asking "How do I return X if X>4.9, and 0 otherwise"? [Actually, I cannot believe that's the question -- it is too trivial to expect someone writing LabVIEW code doesn't know about the Comparison functions, a Case Structure, and/or the Select function ...].
Bob Schor
06-06-2015 11:02 PM
Hi Bob Schor
Yes I am asking for same thing.
I know how to add condiitonal staement in matlab but not in labview. Please help me in this regard. It will teach me how to add condiitonal statement.
Thanks and Regards
06-07-2015 09:55 AM
Great. Start here (found by typing "LabVIEW Tutorial" into Google). Go to Learn LabVIEW Basics. I recommend you look at the first four topics there, but then you'll find "Execution Structures" ...
I'm assuming you have some familiarity with programming. You mentioned Matlab -- if this was your first programming language, I would guess you took a course, or read a book, you didn't just open Matlab and start experimenting. It is surprising how many students pick up LabVIEW and, because it "looks so easy" (and, indeed, NI markets it that way), assume they don't need to learn the basics, such as the concept of Data Flow and how to use the Structures. But once you put in a little effort (like reading the tutorial), it should become "obvious" ...
Bob Schor
06-07-2015 10:37 AM
Thanks
For your fruitful suggestions.
06-07-2015 12:20 PM
You are most welcome. And thank you for putting in the effort to learn how to "do it right".
BS