Synching data

Hi,

I wrote earlier with a question regarding whether or not I have to
synch and/or filter data, and you responded that AnyBody does that for
us. I have a problem though: I am trying to drive a model with both
kinetic and kinematics data. The problem is that kinetics is
collected at 240Hz, and kinematics at 60Hz. So I have more kinetics
data points over a half-a-second time interval than kinematics data
points. I am trying to create a model similar to the Sway Practice
model in the files section of this website, but I keep getting the
error, “The matrix must contain the same number of columns as T has
elements, i.e., data points and time must match.” How can I get the
data points and time to match, if I have collected more kinetics data
points in a set amount of time than kinematics data points?

Thanks for your time,
Sarah

Hi Sarah

> I wrote earlier with a question regarding whether or not I have to
> synch and/or filter data, and you responded that AnyBody does that for
> us. I have a problem though: I am trying to drive a model with both
> kinetic and kinematics data. The problem is that kinetics is
> collected at 240Hz, and kinematics at 60Hz. So I have more kinetics
> data points over a half-a-second time interval than kinematics data
> points. I am trying to create a model similar to the Sway Practice
> model in the files section of this website, but I keep getting the
> error, “The matrix must contain the same number of columns as T has
> elements, i.e., data points and time must match.” How can I get the
> data points and time to match, if I have collected more kinetics data
> points in a set amount of time than kinematics data points?

If you click on the error message it will jump to the location where the error
is. I think problem could be that the T vector is not matching the data matrix.
There must be as many elements in the T vector as there are Columns in the data
matrix. So when you have two different sampling frequencies you must have two
different time vectors, where one of them is four times bigger, in this case.
For the data matrix with the high sampling freq. you must then use the large
time vector.>>> >Here is a small sample that shows how a matching data set could
look like>>> > T = {0,0.33,0.66,1.01};>> Data={>> {0,0.2,0.2,0.4},>>
{0,0.3,0.3,.0.4},>> {0,0.4,0.4,.0.5}>> };>>> >This data set can be used for
driving three dof since the data matrix has three rows, it has four time values
in the T vector and four columns in the Data matrix.>>> >The model will be
correctly synchronized if the time vectors has the same initial start time.>>
>>Best regards>>AnyBody Support>>

[Non-text portions of this message have been removed]

Thanks for getting back to me so quickly. Could I use a fraction to
represent a time-step? For example, could I use 1/240 instead of
0.004167? I think that AnyBody has a problem with irrational or repeating
numbers - will fractions work?

Thanks again,
Sarah

>
>
> Hi Sarah
>
>
> > I wrote earlier with a question regarding whether or not I have to
> > synch and/or filter data, and you responded that AnyBody does that for
> > us. I have a problem though: I am trying to drive a model with both
> > kinetic and kinematics data. The problem is that kinetics is
> > collected at 240Hz, and kinematics at 60Hz. So I have more kinetics
> > data points over a half-a-second time interval than kinematics data
> > points. I am trying to create a model similar to the Sway Practice
> > model in the files section of this website, but I keep getting the
> > error, “The matrix must contain the same number of columns as T
> has
> > elements, i.e., data points and time must match.” How can I get
> the
> > data points and time to match, if I have collected more kinetics data
> > points in a set amount of time than kinematics data points?
>
> If you click on the error message it will jump to the location where the
> error is. I think problem could be that the T vector is not matching the
> data matrix. There must be as many elements in the T vector as there are
> Columns in the data matrix. So when you have two different sampling
> frequencies you must have two different time vectors, where one of them
> is four times bigger, in this case. For the data matrix with the high
> sampling freq. you must then use the large time vector.>>> >Here is a
> small sample that shows how a matching data set could look like>>> > T =
> {0,0.33,0.66,1.01};>> Data={>> {0,0.2,0.2,0.4},>>
> {0,0.3,0.3,.0.4},>> {0,0.4,0.4,.0.5}>> };>>> >This data set can be
> used for driving three dof since the data matrix has three rows, it has
> four time values in the T vector and four columns in the Data matrix.>>>
> >The m odel will be correctly synchronized if the time vectors has the
> same initial start time.>> >>Best regards>>AnyBody Support>>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> AnyBody Technology provides free support on the use of the AnyBody
> Modeling System and the Scripting language AnyScript. Other users are
> welcome to join the discussions.
>
>
>
> SPONSORED LINKS
> Biomedical engineering degree
> Biomedical engineering career
> Biomedical engineering program
> Biomedical engineering
> schools Biomedical
> engineering jobs Biomedical
> engineering
> YAHOO! GROUPS LINKS
> Visit your group “anyscript” on the web.
> To unsubscribe from this group, send an email to:
> anyscript-unsubscribe@yahoogroups.com
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>


Sarah R. Sullivan
PhD Candidate, Biomedical Engineering
Rutgers, The State University of New Jersey
Piscataway, NJ 08854
sarsulli@eden.rutgers.edu
908-420-3371

Hi Sarah

Yes frations should do ok.
You could also consider having only the frame numbers in the vector
and then multiply by 1/framerate.
In this way

T={1,2,3,4…}*1/framerate;

You are right that it is not allowed to have repeating number like
T={1,1,2,2} the vetor needs to be monotonical increasing otherwise
the interpolation functions will not be able to work.

Best regards
AnyBody support

— In anyscript@yahoogroups.com, “Sarah R. Sullivan”
<sarsulli@e…> wrote:
>
> Thanks for getting back to me so quickly. Could I use a fraction
to
> represent a time-step? For example, could I use 1/240 instead of
> 0.004167? I think that AnyBody has a problem with irrational or
repeating
> numbers - will fractions work?
>
> Thanks again,
> Sarah
>
> >
> >
> > Hi Sarah
> >
> >
> > > I wrote earlier with a question regarding whether or not I
have to
> > > synch and/or filter data, and you responded that AnyBody does
that for
> > > us. I have a problem though: I am trying to drive a model
with both
> > > kinetic and kinematics data. The problem is that kinetics is
> > > collected at 240Hz, and kinematics at 60Hz. So I have more
kinetics
> > > data points over a half-a-second time interval than
kinematics data
> > > points. I am trying to create a model similar to the Sway
Practice
> > > model in the files section of this website, but I keep
getting the
> > > error, “The matrix must contain the same number of
columns as T
> > has
> > > elements, i.e., data points and time must match.” How
can I get
> > the
> > > data points and time to match, if I have collected more
kinetics data
> > > points in a set amount of time than kinematics data points?
> >
> > If you click on the error message it will jump to the location
where the
> > error is. I think problem could be that the T vector is not
matching the
> > data matrix. There must be as many elements in the T vector as
there are
> > Columns in the data matrix. So when you have two different
sampling
> > frequencies you must have two different time vectors, where one
of them
> > is four times bigger, in this case. For the data matrix with the
high
> > sampling freq. you must then use the large time vector.>>> >Here
is a
> > small sample that shows how a matching data set could look
like>>> > T =
> > {0,0.33,0.66,1.01};>> Data={>> {0,0.2,0.2,0.4},>>
> > {0,0.3,0.3,.0.4},>> {0,0.4,0.4,.0.5}>> };>>> >This data set
can be
> > used for driving three dof since the data matrix has three rows,
it has
> > four time values in the T vector and four columns in the Data
matrix.>>>
> > >The m odel will be correctly synchronized if the time vectors
has the
> > same initial start time.>> >>Best regards>>AnyBody Support>>
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> > AnyBody Technology provides free support on the use of the
AnyBody
> > Modeling System and the Scripting language AnyScript. Other
users are
> > welcome to join the discussions.
> >
> >
> >
> > SPONSORED LINKS
> > Biomedical engineering degree
> > Biomedical engineering career
> > Biomedical engineering program
> > Biomedical engineering
> > schools Biomedical
> > engineering jobs Biomedical
> > engineering
> > YAHOO! GROUPS LINKS
> > Visit your group “anyscript” on the web.
> > To unsubscribe from this group, send an email to:
> > anyscript-unsubscribe@yahoogroups.com
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
> >
>
>
> –
> Sarah R. Sullivan
> PhD Candidate, Biomedical Engineering
> Rutgers, The State University of New Jersey
> Piscataway, NJ 08854
> sarsulli@e…
> 908-420-3371
>

Hi,

Last night I was able to compile my model, however this morning, I can’t
get past the error, “ERROR : C:\Documents and
Settings\ssullivan\Desktop\Supplement\k5x1\Model\Repository.5\BRep\Aalborg\Spine
\PelvisSeg.any(6)
: AnyFunTransform3D : Class name expected.
Model loading skipped.” I have tried loading a couple of models (in case
my own has failed), and I get the same thing for the ArmCurl model as
well. Is something wrong with the program? Or with my files? I’ll
upload them to Yahoo Groups to have a look at.

Thanks,
Sarah

> Hi Sarah
>
> Yes frations should do ok.
> You could also consider having only the frame numbers in the vector
> and then multiply by 1/framerate.
> In this way
>
> T={1,2,3,4…}*1/framerate;
>
> You are right that it is not allowed to have repeating number like
> T={1,1,2,2} the vetor needs to be monotonical increasing otherwise
> the interpolation functions will not be able to work.
>
> Best regards
> AnyBody support
>
>
> — In anyscript@yahoogroups.com, “Sarah R. Sullivan”
> wrote:
> >
> > Thanks for getting back to me so quickly. Could I use a fraction
> to
> > represent a time-step? For example, could I use 1/240 instead of
> > 0.004167? I think that AnyBody has a problem with irrational or
> repeating
> > numbers - will fractions work?
> >
> > Thanks again,
> > Sarah
> >
> > >
> > >
> > > Hi Sarah
> > >
> > >
> > > > I wrote earlier with a question regarding whether or not I
> have to
> > > > synch and/or filter data, and you responded that AnyBody does
> that for
> > > > us. I have a problem though: I am trying to drive a model
> with both
> > > > kinetic and kinematics data. The problem is that kinetics is
> > > > collected at 240Hz, and kinematics at 60Hz. So I have more
> kinetics
> > > > data points over a half-a-second time interval than
> kinematics data
> > > > points. I am trying to create a model similar to the Sway
> Practice
> > > > model in the files section of this website, but I keep
> getting the
> > > > error, “The matrix must contain the same number of
> columns as T
> > > has
> > > > elements, i.e., data points and time must match.” How
> can I get
> > > the
> > > > data points and time to match, if I have collected more
> kinetics data
> > > > points in a set amount of time than kinematics data points?
> > >
> > > If you click on the error message it will jump to the location
> where the
> > > error is. I think problem could be that the T vector is not
> matching the
> > > data matrix. There must be as many elements in the T vector as
> there are
> > > Columns in the data matrix. So when you have two different
> sampling
> > > frequencies you must have two different time vectors, where one
> of them
> > > is four times bigger, in this case. For the data matrix with the
> high
> > > sampling freq. you must then use the large time vector.>>> >Here
> is a
> > > small sample that shows how a matching data set could look
> like>>> > T =
> > > {0,0.33,0.66,1.01};>> Data={>> {0,0.2,0.2,0.4},>>
> > > {0,0.3,0.3,.0.4},>> {0,0.4,0.4,.0.5}>> };>>> >This data set
> can be
> > > used for driving three dof since the data matrix has three rows,
> it has
> > > four time values in the T vector and four columns in the Data
> matrix.>>>
> > > >The m odel will be correctly synchronized if the time vectors
> has the
> > > same initial start time.>> >>Best regards>>AnyBody Support>>
> > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> > >
> > >
> > > AnyBody Technology provides free support on the use of the
> AnyBody
> > > Modeling System and the Scripting language AnyScript. Other
> users are
> > > welcome to join the discussions.
> > >
> > >
> > >
> > > SPONSORED LINKS
> > > Biomedical engineering degree
> > > Biomedical engineering career
> > > Biomedical engineering program
> > > Biomedical engineering
> > > schools Biomedical
> > > engineering jobs Biomedical
> > > engineering
> > > YAHOO! GROUPS LINKS
> > > Visit your group “anyscript” on the web.
> > > To unsubscribe from this group, send an email to:
> > > anyscript-unsubscribe@yahoogroups.com
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
> > >
> >
> >
> > –
> > Sarah R. Sullivan
> > PhD Candidate, Biomedical Engineering
> > Rutgers, The State University of New Jersey
> > Piscataway, NJ 08854
> > sarsulli@e…
> > 908-420-3371
> >
>
>
>
>
>
>
> AnyBody Technology provides free support on the use of the AnyBody
> Modeling System and the Scripting language AnyScript. Other users are
> welcome to join the discussions.
>
>
>
> SPONSORED LINKS
> Biomedical engineering degree
> Biomedical engineering career
> Biomedical engineering program
> Biomedical engineering
> schools Biomedical
> engineering jobs Biomedical
> engineering
> YAHOO! GROUPS LINKS
> Visit your group “anyscript” on the web.
> To unsubscribe from this group, send an email to:
> anyscript-unsubscribe@yahoogroups.com
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>


Sarah R. Sullivan
PhD Candidate, Biomedical Engineering
Rutgers, The State University of New Jersey
Piscataway, NJ 08854
sarsulli@eden.rutgers.edu
908-420-3371

Hi Sarah

Which version of the AnyBody Modeling system are you using?
You can see this in the about box under in the help menu.

I think this problem is because you use a version which do not have
the scaling functions implemented, please update to new newest
preview version. Hopefully this will solve this problem. You can do
this online if you log into the members area on www.anybodytech.com

Best regards
AnyBody Support

— In anyscript@yahoogroups.com, “Sarah R. Sullivan”
<sarsulli@e…> wrote:
>
> Hi,
>
> Last night I was able to compile my model, however this morning, I
can’t
> get past the error, “ERROR : C:\Documents and
> Settings\ssullivan\Desktop\Supplement\k5x1\Model\Repository.5
\BRep\Aalborg\Spine\PelvisSeg.any(6)
> : AnyFunTransform3D : Class name expected.
> Model loading skipped.” I have tried loading a couple of models
(in case
> my own has failed), and I get the same thing for the ArmCurl model
as
> well. Is something wrong with the program? Or with my files?
I’ll
> upload them to Yahoo Groups to have a look at.
>
> Thanks,
> Sarah
>
> > Hi Sarah
> >
> > Yes frations should do ok.
> > You could also consider having only the frame numbers in the
vector
> > and then multiply by 1/framerate.
> > In this way
> >
> > T={1,2,3,4…}*1/framerate;
> >
> > You are right that it is not allowed to have repeating number
like
> > T={1,1,2,2} the vetor needs to be monotonical increasing
otherwise
> > the interpolation functions will not be able to work.
> >
> > Best regards
> > AnyBody support
> >
> >
> > — In anyscript@yahoogroups.com, “Sarah R. Sullivan”
> > wrote:
> > >
> > > Thanks for getting back to me so quickly. Could I use a
fraction
> > to
> > > represent a time-step? For example, could I use 1/240
instead of
> > > 0.004167? I think that AnyBody has a problem with irrational
or
> > repeating
> > > numbers - will fractions work?
> > >
> > > Thanks again,
> > > Sarah
> > >
> > > >
> > > >
> > > > Hi Sarah
> > > >
> > > >
> > > > > I wrote earlier with a question regarding whether or not
I
> > have to
> > > > > synch and/or filter data, and you responded that AnyBody
does
> > that for
> > > > > us. I have a problem though: I am trying to drive a model
> > with both
> > > > > kinetic and kinematics data. The problem is that
kinetics is
> > > > > collected at 240Hz, and kinematics at 60Hz. So I have
more
> > kinetics
> > > > > data points over a half-a-second time interval than
> > kinematics data
> > > > > points. I am trying to create a model similar to the Sway
> > Practice
> > > > > model in the files section of this website, but I keep
> > getting the
> > > > > error, “The matrix must contain the same number
of
> > columns as T
> > > > has
> > > > > elements, i.e., data points and time must
match.” How
> > can I get
> > > > the
> > > > > data points and time to match, if I have collected more
> > kinetics data
> > > > > points in a set amount of time than kinematics data
points?
> > > >
> > > > If you click on the error message it will jump to the
location
> > where the
> > > > error is. I think problem could be that the T vector is not
> > matching the
> > > > data matrix. There must be as many elements in the T vector
as
> > there are
> > > > Columns in the data matrix. So when you have two different
> > sampling
> > > > frequencies you must have two different time vectors, where
one
> > of them
> > > > is four times bigger, in this case. For the data matrix
with the
> > high
> > > > sampling freq. you must then use the large time vector.>>>
>Here
> > is a
> > > > small sample that shows how a matching data set could look
> > like>>> > T =
> > > > {0,0.33,0.66,1.01};>> Data={>> {0,0.2,0.2,0.4},>>
> > > > {0,0.3,0.3,.0.4},>> {0,0.4,0.4,.0.5}>> };>>> >This data
set
> > can be
> > > > used for driving three dof since the data matrix has three
rows,
> > it has
> > > > four time values in the T vector and four columns in the
Data
> > matrix.>>>
> > > > >The m odel will be correctly synchronized if the time
vectors
> > has the
> > > > same initial start time.>> >>Best regards>>AnyBody Support>>
> > > >
> > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > > >
> > > >
> > > > AnyBody Technology provides free support on the use of the
> > AnyBody
> > > > Modeling System and the Scripting language AnyScript. Other
> > users are
> > > > welcome to join the discussions.
> > > >
> > > >
> > > >
> > > > SPONSORED LINKS
> > > > Biomedical engineering degree
> > > > Biomedical engineering career
> > > > Biomedical engineering program
> > > > Biomedical engineering
> > > > schools Biomedical
> > > > engineering jobs
Biomedical
> > > > engineering
> > > > YAHOO! GROUPS LINKS
> > > > Visit your group “anyscript” on the web.
> > > > To unsubscribe from this group, send an email to:
> > > > anyscript-unsubscribe@yahoogroups.com
> > > > Your use of Yahoo! Groups is subject to the Yahoo!
Terms of
> > Service.
> > > >
> > >
> > >
> > > –
> > > Sarah R. Sullivan
> > > PhD Candidate, Biomedical Engineering
> > > Rutgers, The State University of New Jersey
> > > Piscataway, NJ 08854
> > > sarsulli@e…
> > > 908-420-3371
> > >
> >
> >
> >
> >
> >
> >
> > AnyBody Technology provides free support on the use of the
AnyBody
> > Modeling System and the Scripting language AnyScript. Other
users are
> > welcome to join the discussions.
> >
> >
> >
> > SPONSORED LINKS
> > Biomedical engineering degree
> > Biomedical engineering career
> > Biomedical engineering program
> > Biomedical engineering
> > schools Biomedical
> > engineering jobs Biomedical
> > engineering
> > YAHOO! GROUPS LINKS
> > Visit your group “anyscript” on the web.
> > To unsubscribe from this group, send an email to:
> > anyscript-unsubscribe@yahoogroups.com
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
> >
>
>
> –
> Sarah R. Sullivan
> PhD Candidate, Biomedical Engineering
> Rutgers, The State University of New Jersey
> Piscataway, NJ 08854
> sarsulli@e…
> 908-420-3371
>