12-19-2017 02:23 AM
hello. I recently started studying labVIEW
Professor gave me the assignment, but I'm a beginner so I don't know how to get started.
(the assignment is making PPG program.
the purpose of this is 1. Design bandpassfilter
2. Use FFT to find and set the cutoff frequency of filter
3. Threshold & peak detection
4. Calculate pulse rate and average.
5. Find heart rate per minute and average
First, This VI is made a slight modification to the simple serial.
(This is 2017 ver)
I created while loop and replaced with Time loop.
and added sync VI( additional program given by professor)
The biggest problem here is that I think I need to add a filter here first, and I don't even know if I need to add filter inside the loop or just outside.
Can anyone solve this problem?
I would really appreciate it if you let me know a little bit of clue.
I'll attach my VI.
12-19-2017 02:39 AM
Hi min,
Professor gave me the assignment … Can anyone solve this problem?
So you want us to solve your homework?
but I'm a beginner so I don't know how to get started.
In the header of the LabVIEW board you will find several items which will help you to learn LabVIEW. Take those free lessons offered there!
First, This VI is made a slight modification to the simple serial.
I created while loop and replaced with Time loop.
Why did you do this? What's the purpose of using a TWL when the timing is given by your serial connection/communication?
Don't use a TWL here!
Another point: DON'T USE BytesAtPort when you have your serial communication set to use the TermChar!!! (There are a lot of threads on this very topic here in the LabVIEW forum, you just need to search for them!)
and added sync VI( additional program given by professor)
Are you sure you need to multiply by 255 in this VI? Usually you should multiply by 256 (or use the Join operation on those two bytes)!
The biggest problem here is that I think I need to add a filter here first, and I don't even know if I need to add filter inside the loop or just outside.
No, that's not the "biggest" problem.
At first you need to collect your samples in an array.
Then you will apply a filter on that array of samples!
12-19-2017 08:13 AM
Try to break your project up into smaller tasks, that can be done independent of other tasks and verified. Do you need to talk over serial? Start with the simple serial (as you have done) Do you need to continually poll? Put it in a loop and setup a UI for polling and stopping. Do you need to read data into a graph or array? Format the read data so it can be viewed. Do you need to filter the data? Look into the various filter functions. The project won't work if any one of these steps aren't working right so get them going one at a time then work on combining all of them. And yes the basic help and search mentioned will help.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord