Generating new data from the old

Good morning!

I am trying to do some analysis of the evolution of muscle forces through
time. So, using the leg model (one leg), I try to create a new graph that
would present the total force generated by a muscle group (for example, the
hamstrings). Using an AnyForceMomentMeasure, I extract the force generated
by each muscle. Then, using an AnyChart, I try to plot the combination of
the forces. Unfortunately, I cannot seem to even chart a single muscle. Here
is the code I use as a test, to simple chart the gastrocnemius force as a
function of time:

 AnyForceMomentMeasure gastrocnemius = {

   // Force

   AnyMuscle &gastrocnemius =

…model.oneLegModel.Right.Leg.Mus.Gastrocnemius;

   // Reference frame

   AnyRefFrame &insPoint =

…model.oneLegModel.Right.Leg.Seg.Foot.GastrocnemiusNode;

 }; // gastrocnemius



 AnyChart testChart = {

   Series = {

     AnyChartSerie testSerie = {

       Value = "TestValue";

       AnyVec3 force = ...gastrocnemius.F;

     }; // testSerie

   }; // Series

 }; // testChart

Note that the following piece of code is within the AnyBodyStudy Study = {}
section. What I get is an empty graph and an all zero array of values (for
study.testChart.testSerie.force). The gastrocnemius.F chart is not empty, so
why is the testSerie.force all zero?

Thanks in advance!

Jean-Olivier

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

Hi Jean-Olivier

It would be good if you could upload the actual model, It seems like
you are trying to measure the moment on the node that the muscle is
attached to, but I can really see it, because I dont know which model
you are using?

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “Jean-Olivier Racine”
<jean-olivier.racine.1@…> wrote:
>
> Good morning!
>
>
>
> I am trying to do some analysis of the evolution of muscle forces
through
> time. So, using the leg model (one leg), I try to create a new graph
that
> would present the total force generated by a muscle group (for
example, the
> hamstrings). Using an AnyForceMomentMeasure, I extract the force
generated
> by each muscle. Then, using an AnyChart, I try to plot the
combination of
> the forces. Unfortunately, I cannot seem to even chart a single
muscle. Here
> is the code I use as a test, to simple chart the gastrocnemius force
as a
> function of time:
>
>
>
> AnyForceMomentMeasure gastrocnemius = {
>
> // Force
>
> AnyMuscle &gastrocnemius =
> …model.oneLegModel.Right.Leg.Mus.Gastrocnemius;
>
>
>
> // Reference frame
>
> AnyRefFrame &insPoint =
> …model.oneLegModel.Right.Leg.Seg.Foot.GastrocnemiusNode;
>
> }; // gastrocnemius
>
>
>
> AnyChart testChart = {
>
> Series = {
>
> AnyChartSerie testSerie = {
>
> Value = “TestValue”;
>
> AnyVec3 force = …gastrocnemius.F;
>
> }; // testSerie
>
> }; // Series
>
> }; // testChart
>
>
>
> Note that the following piece of code is within the AnyBodyStudy
Study = {}
> section. What I get is an empty graph and an all zero array of
values (for
> study.testChart.testSerie.force). The gastrocnemius.F chart is not
empty, so
> why is the testSerie.force all zero?
>
>
>
> Thanks in advance!
>
> Jean-Olivier
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

Hello Christian,

Sorry for taking this long to answer. I uploaded a file called LIO.rar to
the file section of the group. It contains the model and should be extracted
within the Arep folder.

Basically, I took the one leg model and simply created drivers for all
articulations. None of the joints are moving, except the
anklePlantarFlexion, which has a driver vel of 0.1 (SimpleEq driver). Then,
I made an AnyForceMomentMeasure within the study, and created an AnyChart
that would simply display the measured force value. I would like to perform
mathematical operations on the data before sending it on the AnyChart, such
as adding two AnyForceMomentMeasure, etc

Unfortunetly, I cannot seem to even have the force measured with
AnyForceMomentMeasure displayed. Although I know that my measure is fine,
since I can display the actual measure from a chart window.

If you have any questions on the model, don’t hesitate to ask,

Thanks!!

Jean-Olivier


From: <mailto:anyscript@yahoogroups.com> anyscript@yahoogroups.com [mailto:
<mailto:anyscript@yahoogroups.com> anyscript@yahoogroups.com] On Behalf Of
AnyBody Support
Sent: November 26, 2006 10:36 PM
To: <mailto:anyscript@yahoogroups.com> anyscript@yahoogroups.com
Subject: [anyscript] Re: Generating new data from the old

Hi Jean-Olivier

It would be good if you could upload the actual model, It seems like
you are trying to measure the moment on the node that the muscle is
attached to, but I can really see it, because I dont know which model
you are using?

Best regards
Christian, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of Jean-Olivier Racine
Sent: 23 novembre 2006 10:55
To: Anyscript Mailing List
Subject: [anyscript] Generating new data from the old

Good morning!

I am trying to do some analysis of the evolution of muscle forces through
time. So, using the leg model (one leg), I try to create a new graph that
would present the total force generated by a muscle group (for example, the
hamstrings). Using an AnyForceMomentMeasure, I extract the force generated
by each muscle. Then, using an AnyChart, I try to plot the combination of
the forces. Unfortunately, I cannot seem to even chart a single muscle. Here
is the code I use as a test, to simple chart the gastrocnemius force as a
function of time:

AnyForceMomentMeasure gastrocnemius = {

// Force

AnyMuscle &gastrocnemius =
…model.oneLegModel.Right.Leg.Mus.Gastrocnemius;

// Reference frame

AnyRefFrame &insPoint =
…model.oneLegModel.Right.Leg.Seg.Foot.GastrocnemiusNode;

}; // gastrocnemius

AnyChart testChart = {

Series = {

AnyChartSerie testSerie = {

Value = “TestValue”;

AnyVec3 force = …gastrocnemius.F;

}; // testSerie

}; // Series

}; // testChart

Note that the following piece of code is within the AnyBodyStudy Study = {}
section. What I get is an empty graph and an all zero array of values (for
study.testChart.testSerie.force). The gastrocnemius.F chart is not empty, so
why is the testSerie.force all zero?

Thanks in advance!

Jean-Olivier

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

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

Hi Jean-Olivier

Thank you, I am looking on your model and you will have an answer soon…

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “Jean-Olivier Racine”
<jean-olivier.racine.1@…> wrote:
>
> Hello Christian,
>
>
>
> Sorry for taking this long to answer. I uploaded a file called
LIO.rar to
> the file section of the group. It contains the model and should be
extracted
> within the Arep folder.
>
>
>
> Basically, I took the one leg model and simply created drivers for all
> articulations. None of the joints are moving, except the
> anklePlantarFlexion, which has a driver vel of 0.1 (SimpleEq
driver). Then,
> I made an AnyForceMomentMeasure within the study, and created an
AnyChart
> that would simply display the measured force value. I would like to
perform
> mathematical operations on the data before sending it on the
AnyChart, such
> as adding two AnyForceMomentMeasure, etc
>
>
>
> Unfortunetly, I cannot seem to even have the force measured with
> AnyForceMomentMeasure displayed. Although I know that my measure is
fine,
> since I can display the actual measure from a chart window.
>
>
>
> If you have any questions on the model, don’t hesitate to ask,
>
> Thanks!!
>
> Jean-Olivier
>
>
>
>
>
> _____
>
> From: <mailto:anyscript@yahoogroups.com> anyscript@yahoogroups.com
[mailto:
> <mailto:anyscript@yahoogroups.com> anyscript@yahoogroups.com] On
Behalf Of
> AnyBody Support
> Sent: November 26, 2006 10:36 PM
> To: <mailto:anyscript@yahoogroups.com> anyscript@yahoogroups.com
> Subject: [anyscript] Re: Generating new data from the old
>
> Hi Jean-Olivier
>
> It would be good if you could upload the actual model, It seems like
> you are trying to measure the moment on the node that the muscle is
> attached to, but I can really see it, because I dont know which model
> you are using?
>
> Best regards
> Christian, AnyBody Support
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com]
On Behalf
> Of Jean-Olivier Racine
> Sent: 23 novembre 2006 10:55
> To: Anyscript Mailing List
> Subject: [anyscript] Generating new data from the old
>
>
>
> Good morning!
>
> I am trying to do some analysis of the evolution of muscle forces
through
> time. So, using the leg model (one leg), I try to create a new graph
that
> would present the total force generated by a muscle group (for
example, the
> hamstrings). Using an AnyForceMomentMeasure, I extract the force
generated
> by each muscle. Then, using an AnyChart, I try to plot the
combination of
> the forces. Unfortunately, I cannot seem to even chart a single
muscle. Here
> is the code I use as a test, to simple chart the gastrocnemius force
as a
> function of time:
>
> AnyForceMomentMeasure gastrocnemius = {
>
> // Force
>
> AnyMuscle &gastrocnemius =
> …model.oneLegModel.Right.Leg.Mus.Gastrocnemius;
>
> // Reference frame
>
> AnyRefFrame &insPoint =
> …model.oneLegModel.Right.Leg.Seg.Foot.GastrocnemiusNode;
>
> }; // gastrocnemius
>
> AnyChart testChart = {
>
> Series = {
>
> AnyChartSerie testSerie = {
>
> Value = “TestValue”;
>
> AnyVec3 force = …gastrocnemius.F;
>
> }; // testSerie
>
> }; // Series
>
> }; // testChart
>
> Note that the following piece of code is within the AnyBodyStudy
Study = {}
> section. What I get is an empty graph and an all zero array of
values (for
> study.testChart.testSerie.force). The gastrocnemius.F chart is not
empty, so
> why is the testSerie.force all zero?
>
> Thanks in advance!
>
> Jean-Olivier
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

Hi Jean-Oliver

Here is the answer to your question i hope.

In the study folder of your STS.main.any file i have added these
lines which will make a graph of the summation
of the soleus and gastronemius muscles.

//First we need to make the summation of the two ForceMoment measures
AnyVec3 MuscleSummation =gastrocnemius.F+soleus.F;

AnyChart testChart = {
Series = {
AnyChartSerie testSerie = {
//Here we have to point to the output variable!
Value =“Main.study.Output.MuscleSummation”;
}; // testSerie
}; // Series
}; // testChart

Best regards
Søren AnyBody support

— In anyscript@yahoogroups.com, “Jean-Olivier Racine” <jean-
olivier.racine.1@…> wrote:
>
> Hello Christian,
>
>
>
> Sorry for taking this long to answer. I uploaded a file called
LIO.rar to
> the file section of the group. It contains the model and should be
extracted
> within the Arep folder.
>
>
>
> Basically, I took the one leg model and simply created drivers for
all
> articulations. None of the joints are moving, except the
> anklePlantarFlexion, which has a driver vel of 0.1 (SimpleEq
driver). Then,
> I made an AnyForceMomentMeasure within the study, and created an
AnyChart
> that would simply display the measured force value. I would like to
perform
> mathematical operations on the data before sending it on the
AnyChart, such
> as adding two AnyForceMomentMeasure, etc
>
>
>
> Unfortunetly, I cannot seem to even have the force measured with
> AnyForceMomentMeasure displayed. Although I know that my measure is
fine,
> since I can display the actual measure from a chart window.
>
>
>
> If you have any questions on the model, don’t hesitate to ask,
>
> Thanks!!
>
> Jean-Olivier
>
>
>
>
>
> _____
>
> From: <mailto:anyscript@yahoogroups.com> anyscript@yahoogroups.com
[mailto:
> <mailto:anyscript@yahoogroups.com> anyscript@yahoogroups.com] On
Behalf Of
> AnyBody Support
> Sent: November 26, 2006 10:36 PM
> To: <mailto:anyscript@yahoogroups.com> anyscript@yahoogroups.com
> Subject: [anyscript] Re: Generating new data from the old
>
> Hi Jean-Olivier
>
> It would be good if you could upload the actual model, It seems like
> you are trying to measure the moment on the node that the muscle is
> attached to, but I can really see it, because I dont know which
model
> you are using?
>
> Best regards
> Christian, AnyBody Support
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com]
On Behalf
> Of Jean-Olivier Racine
> Sent: 23 novembre 2006 10:55
> To: Anyscript Mailing List
> Subject: [anyscript] Generating new data from the old
>
>
>
> Good morning!
>
> I am trying to do some analysis of the evolution of muscle forces
through
> time. So, using the leg model (one leg), I try to create a new
graph that
> would present the total force generated by a muscle group (for
example, the
> hamstrings). Using an AnyForceMomentMeasure, I extract the force
generated
> by each muscle. Then, using an AnyChart, I try to plot the
combination of
> the forces. Unfortunately, I cannot seem to even chart a single
muscle. Here
> is the code I use as a test, to simple chart the gastrocnemius
force as a
> function of time:
>
> AnyForceMomentMeasure gastrocnemius = {
>
> // Force
>
> AnyMuscle &gastrocnemius =
> …model.oneLegModel.Right.Leg.Mus.Gastrocnemius;
>
> // Reference frame
>
> AnyRefFrame &insPoint =
> …model.oneLegModel.Right.Leg.Seg.Foot.GastrocnemiusNode;
>
> }; // gastrocnemius
>
> AnyChart testChart = {
>
> Series = {
>
> AnyChartSerie testSerie = {
>
> Value = “TestValue”;
>
> AnyVec3 force = …gastrocnemius.F;
>
> }; // testSerie
>
> }; // Series
>
> }; // testChart
>
> Note that the following piece of code is within the AnyBodyStudy
Study = {}
> section. What I get is an empty graph and an all zero array of
values (for
> study.testChart.testSerie.force). The gastrocnemius.F chart is not
empty, so
> why is the testSerie.force all zero?
>
> Thanks in advance!
>
> Jean-Olivier
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

Thanks!

That’s exactly what I needed and explains a lot of things at once in fact.
Also, it brings me to a comment:

The reference manual is well constructed, but there’s a serious lack of
definitions. For example, nowhere in the reference manual do we define what
a “search string” is. This could be an improvement for further revisions.

I really appreciate the time and effort you put in helping us,

Jean-Olivier


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of AnyBody Support
Sent: 29 décembre 2006 04:06
To: anyscript@yahoogroups.com
Subject: [anyscript] Re: Generating new data from the old

Hi Jean-Oliver

Here is the answer to your question i hope.

In the study folder of your STS.main.any file i have added these
lines which will make a graph of the summation
of the soleus and gastronemius muscles.

//First we need to make the summation of the two ForceMoment measures
AnyVec3 MuscleSummation =gastrocnemius.F+soleus.F;

AnyChart testChart = {
Series = {
AnyChartSerie testSerie = {
//Here we have to point to the output variable!
Value =“Main.study.Output.MuscleSummation”;
}; // testSerie
}; // Series
}; // testChart

Best regards
Søren AnyBody support

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
“Jean-Olivier Racine” <jean-
olivier.racine.1@…> wrote:
>
> Hello Christian,
>
>
>
> Sorry for taking this long to answer. I uploaded a file called
LIO.rar to
> the file section of the group. It contains the model and should be
extracted
> within the Arep folder.
>
>
>
> Basically, I took the one leg model and simply created drivers for
all
> articulations. None of the joints are moving, except the
> anklePlantarFlexion, which has a driver vel of 0.1 (SimpleEq
driver). Then,
> I made an AnyForceMomentMeasure within the study, and created an
AnyChart
> that would simply display the measured force value. I would like to
perform
> mathematical operations on the data before sending it on the
AnyChart, such
> as adding two AnyForceMomentMeasure, etc
>
>
>
> Unfortunetly, I cannot seem to even have the force measured with
> AnyForceMomentMeasure displayed. Although I know that my measure is
fine,
> since I can display the actual measure from a chart window.
>
>
>
> If you have any questions on the model, don’t hesitate to ask,
>
> Thanks!!
>
> Jean-Olivier
>
>
>
>
>
> _____
>
> From: <mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com> anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
[mailto:
> <mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com>
anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com] On
Behalf Of
> AnyBody Support
> Sent: November 26, 2006 10:36 PM
> To: <mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com> anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> Subject: [anyscript] Re: Generating new data from the old
>
> Hi Jean-Olivier
>
> It would be good if you could upload the actual model, It seems like
> you are trying to measure the moment on the node that the muscle is
> attached to, but I can really see it, because I dont know which
model
> you are using?
>
> Best regards
> Christian, AnyBody Support
>
>
>
> _____
>
> From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
[mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com]
On Behalf
> Of Jean-Olivier Racine
> Sent: 23 novembre 2006 10:55
> To: Anyscript Mailing List
> Subject: [anyscript] Generating new data from the old
>
>
>
> Good morning!
>
> I am trying to do some analysis of the evolution of muscle forces
through
> time. So, using the leg model (one leg), I try to create a new
graph that
> would present the total force generated by a muscle group (for
example, the
> hamstrings). Using an AnyForceMomentMeasure, I extract the force
generated
> by each muscle. Then, using an AnyChart, I try to plot the
combination of
> the forces. Unfortunately, I cannot seem to even chart a single
muscle. Here
> is the code I use as a test, to simple chart the gastrocnemius
force as a
> function of time:
>
> AnyForceMomentMeasure gastrocnemius = {
>
> // Force
>
> AnyMuscle &gastrocnemius =
> …model.oneLegModel.Right.Leg.Mus.Gastrocnemius;
>
> // Reference frame
>
> AnyRefFrame &insPoint =
> …model.oneLegModel.Right.Leg.Seg.Foot.GastrocnemiusNode;
>
> }; // gastrocnemius
>
> AnyChart testChart = {
>
> Series = {
>
> AnyChartSerie testSerie = {
>
> Value = “TestValue”;
>
> AnyVec3 force = …gastrocnemius.F;
>
> }; // testSerie
>
> }; // Series
>
> }; // testChart
>
> Note that the following piece of code is within the AnyBodyStudy
Study = {}
> section. What I get is an empty graph and an all zero array of
values (for
> study.testChart.testSerie.force). The gastrocnemius.F chart is not
empty, so
> why is the testSerie.force all zero?
>
> Thanks in advance!
>
> Jean-Olivier
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

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