08-22-2016 12:00 PM
Hello,
I am trying to implement a paperwork on ECG signal denoising.But i can't understand the case structure part in the block diagram.I need to find out the FALSE condition.I need an explaination on that to find out the TRUE condition.Please help me to explain this structure condition.Thanks.
Antu.
Solved! Go to Solution.
08-22-2016 12:37 PM
Do you have the VI? Or are you just looking at a picture of a block diagram?
You need to change the case structure to show what is happening in the True case.
Have you used LabVIEW before?
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
08-22-2016 12:45 PM
I don't have the VI. I want to apply different filters based on this work.But i can't understand the condition of this structure.Thanks for your valuable suggestion.
08-22-2016 12:55 PM
What your picture is showing is that when there is an error generating the FIR filter coefficients the simulated signal is passed through the Case structure unchanged. My guess is therefore that when there is no error generating the coefficients (error code = 0) the simulated signal is filtered using the same DDT->DBL conversion followed by FIR.vi from the Signal Processing palette.
08-22-2016 12:58 PM
If you are, indeed, working with only a picture, and if you don't really have a good understanding of signals such as EKGs, signal analysis and filtering, and LabVIEW, then your best bet is to read the text in the book or paper from which you copied the figure and pass that off as your own work. The alternative is to (a) learn about biological signals, (b) learn about signal processing, and (if you want to understand the figure), (c) learn LabVIEW.
Bob Schor
08-22-2016 01:05 PM
This is just simple error handling. If the filter VI fails it will output an error number (NOT zero). If the filter VI works it will output a zero (that means NO ERROR). The error out of the filter VI is checked by the "Equal to 0?" VI and the boolean result determines which case to run. If the filter VI works, its output is passed through. If it fails, then a simulated signal is passed through instead. Of course this is a bad idea since the VI doesn't even inform the user an error has occured. It just hides it.
Please take the advice to learn more about LabVIEW and write your own code. The VI you posted is not only sloppy, it uses bad coding practices and is not a good example to learn by.
08-22-2016 01:22 PM
Thanks a lot. I'll definitely try to write my own code.It's just an initiative to see how the whole process works.
Regards.
08-22-2016 01:24 PM
Thanks a lot. 🙂