07-12-2022 12:00 PM
Hi! I am fairly new to LabView and I am working to filter data points for a motion capture system. I understand that there are filters on LabView, but I am not familiar with them to know what the correct usage would be. I attached the raw data below. The goal is to filter out body parts, for example the R.ASIS, L.ASIS and V.SACARAL. I will be using the XYZ coordinates of each point to find joint angles. At the moment I am not sure the best way to filter the data. Any help or tips would be appreciated. Thank you!
07-12-2022 01:35 PM
This is a pretty vague question since you have attached no LabVIEW code at all, but the usual method of filtering data in LabVIEW is to put each piece of data into an array, and then run that array through a FOR loop with a conditional output to do the filtering.
See this NI page:
https://www.ni.com/docs/en-US/bundle/labview/page/lvhowto/condacc_valuesnloops.html
For better help, try some coding, then post that here if you have problems.
07-12-2022 01:47 PM
I do currently have a code which I will attach below along with the text file of what I am using. The code itself does not have anything with filters yet because I am unaware with how to separate it. Let me know if this helped at all. Thanks!
07-12-2022 03:58 PM - edited 07-12-2022 04:15 PM
@mbel wrote:
I do currently have a code which I will attach below along with the text file of what I am using. The code itself does not have anything with filters yet because I am unaware with how to separate it. Let me know if this helped at all. Thanks!
I ran the VI and it does something, what do mean by 'separate it' Do you mean by row and column? Maybe the best thing to do is to load the data into arrays that you can see and verify position then combine them in a plot based on which X and Y values you need to see. see updated main.vi
07-12-2022 04:15 PM
By separate I mean that I need to take groupings of 3 ( ex: rasis, lasis, vsacaral) and take their xyz coordinates, and then find the joint angle from them. Right now I am not sure the best way to get the 3 data sets alone. If I was looking for just one group of 3 I would understand reading by column and row. The problem is that there are 41 data sets and I don't want to have to write 41 separations.
07-12-2022 04:28 PM - edited 07-12-2022 04:33 PM
OK, see main XYZ and name.vi