Modification of Joint Driving File

Hi Søren:

I have a small question regarding the drivers of a joint.

I drive a joint using the data from experiment, e.g.,

AnyFolder Drivers = {
AnyKinEqInterPolDriver MCPMotion = {
AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
FileName = “MCP_data.txt”;
Type = Bspline;
BsplineOrder = 4;
Reaction.Type = {Off,Off};
}; // MCP driver

MCP is a universal joint, with 2 DOFs; the “MCP_data.txt” is in a
form of “time, angle (rad), angle (rad)”. The model works OK.

My question: Is it possible to modify the anyscript code to vary the
drivers, without editing the driving file “MCP_data.txt”? For
example, I need to vary sign (-/+), change from deg to rad, or
magnify the variations in certain DOF, etc.

Thanks,

John Wu

Hi John

Yes this is possible :wink:

It can be done by reading in the data into an interpolation function and
then use its data in the driver function. When you refer to the data you
have the chance to change the sign etc…

So it would look something like this:

AnyFunInterpol datafun =

{

 FileName = "MCP_data.txt";

Type = Bspline;
BsplineOrder = 4;

};

AnyFolder Drivers = {
AnyKinEqInterPolDriver MCPMotion = {
AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
Data=-1234565767*.datafun.Data; //here you can change the raw data…

T=.datafun.T;

Type = Bspline;
BsplineOrder = 4;
Reaction.Type = {Off,Off};
}; // MCP driver

Hope it was something like this you were looking for.

Best regards

Søren, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of johnzengwu
Sent: 20 October 2008 22:36
To: anyscript@yahoogroups.com
Subject: [AnyScript] Modification of Joint Driving File

Hi Søren:

I have a small question regarding the drivers of a joint.

I drive a joint using the data from experiment, e.g.,

AnyFolder Drivers = {
AnyKinEqInterPolDriver MCPMotion = {
AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
FileName = “MCP_data.txt”;
Type = Bspline;
BsplineOrder = 4;
Reaction.Type = {Off,Off};
}; // MCP driver

MCP is a universal joint, with 2 DOFs; the “MCP_data.txt” is in a
form of “time, angle (rad), angle (rad)”. The model works OK.

My question: Is it possible to modify the anyscript code to vary the
drivers, without editing the driving file “MCP_data.txt”? For
example, I need to vary sign (-/+), change from deg to rad, or
magnify the variations in certain DOF, etc.

Thanks,

John Wu

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

Hi John

One more comment on this topic…

It is of course also possible to use the AnyInputFile instead of the
interpolation function when you read in the data, this would be more elegant
solution.

The solution would look almost the same only the “datafun” changes…

AnyInputfile datafun = {

FileName = “MCP_data.txt”;

};

Best regards

Søren


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of AnyScript Support
Sent: 21 October 2008 10:05
To: anyscript@yahoogroups.com
Subject: RE: [AnyScript] Modification of Joint Driving File

Hi John

Yes this is possible :wink:

It can be done by reading in the data into an interpolation function and
then use its data in the driver function. When you refer to the data you
have the chance to change the sign etc…

So it would look something like this:

AnyFunInterpol datafun =

{

FileName = “MCP_data.txt”;
Type = Bspline;
BsplineOrder = 4;

};

AnyFolder Drivers = {
AnyKinEqInterPolDriver MCPMotion = {
AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
Data=-1234565767*.datafun.Data; //here you can change the raw data…

T=.datafun.T;

Type = Bspline;
BsplineOrder = 4;
Reaction.Type = {Off,Off};
}; // MCP driver

Hope it was something like this you were looking for.

Best regards

Søren, AnyBody Support


From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
[mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com] On
Behalf
Of johnzengwu
Sent: 20 October 2008 22:36
To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
Subject: [AnyScript] Modification of Joint Driving File

Hi Søren:

I have a small question regarding the drivers of a joint.

I drive a joint using the data from experiment, e.g.,

AnyFolder Drivers = {
AnyKinEqInterPolDriver MCPMotion = {
AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
FileName = “MCP_data.txt”;
Type = Bspline;
BsplineOrder = 4;
Reaction.Type = {Off,Off};
}; // MCP driver

MCP is a universal joint, with 2 DOFs; the “MCP_data.txt” is in a
form of “time, angle (rad), angle (rad)”. The model works OK.

My question: Is it possible to modify the anyscript code to vary the
drivers, without editing the driving file “MCP_data.txt”? For
example, I need to vary sign (-/+), change from deg to rad, or
magnify the variations in certain DOF, etc.

Thanks,

John Wu

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

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

Søren:

Thanks for the response and clever solution. There is a problem.

By specifying:


Data=-1234565767*.datafun.Data;
T=.datafun.T;

you will manipulate both DOFs of “datafun.Data” in the same manner.
How to modify each DOF individually? Can I do something like:


AnyVar a=-1.0;
AnyVar b=2.0;
Data={a*.datafun.Data[0],b*.datafun.Data[1]};
T=.datafun.T;

John

— In anyscript@yahoogroups.com, AnyScript Support
<anyscriptsup@…> wrote:
>
> Hi John
>
>
>
> One more comment on this topic…
>
>
>
> It is of course also possible to use the AnyInputFile instead of the
> interpolation function when you read in the data, this would be
more elegant
> solution.
>
>
>
> The solution would look almost the same only the “datafun” changes…
>
>
>
> AnyInputfile datafun = {
>
> FileName = “MCP_data.txt”;
>
> };
>
>
>
>
>
> Best regards
>
> Søren
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com]
On Behalf
> Of AnyScript Support
> Sent: 21 October 2008 10:05
> To: anyscript@yahoogroups.com
> Subject: RE: [AnyScript] Modification of Joint Driving File
>
>
>
> Hi John
>
> Yes this is possible :wink:
>
> It can be done by reading in the data into an interpolation
function and
> then use its data in the driver function. When you refer to the
data you
> have the chance to change the sign etc…
>
> So it would look something like this:
>
> AnyFunInterpol datafun =
>
> {
>
> FileName = “MCP_data.txt”;
> Type = Bspline;
> BsplineOrder = 4;
>
> };
>
> AnyFolder Drivers = {
> AnyKinEqInterPolDriver MCPMotion = {
> AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
> Data=-1234565767*.datafun.Data; //here you can change the raw data…
>
> T=.datafun.T;
>
> Type = Bspline;
> BsplineOrder = 4;
> Reaction.Type = {Off,Off};
> }; // MCP driver
>
> Hope it was something like this you were looking for.
>
> Best regards
>
> Søren, AnyBody Support
>
> _____
>
> From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com
> [mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com] On
> Behalf
> Of johnzengwu
> Sent: 20 October 2008 22:36
> To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> Subject: [AnyScript] Modification of Joint Driving File
>
> Hi Søren:
>
> I have a small question regarding the drivers of a joint.
>
> I drive a joint using the data from experiment, e.g.,
>
> AnyFolder Drivers = {
> AnyKinEqInterPolDriver MCPMotion = {
> AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
> FileName = “MCP_data.txt”;
> Type = Bspline;
> BsplineOrder = 4;
> Reaction.Type = {Off,Off};
> }; // MCP driver
>
> MCP is a universal joint, with 2 DOFs; the “MCP_data.txt” is in a
> form of “time, angle (rad), angle (rad)”. The model works OK.
>
> My question: Is it possible to modify the anyscript code to vary
the
> drivers, without editing the driving file “MCP_data.txt”? For
> example, I need to vary sign (-/+), change from deg to rad, or
> magnify the variations in certain DOF, etc.
>
> Thanks,
>
> John Wu
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

Søren:

I have tested it, and I can modify each DOF individually:

  1. reading the data:
    AnyFunInterpol datafun =
    {
    FileName = “MCP_data.txt”;
    Type = Bspline;
    BsplineOrder = 4;
    };
  2. in the driver:

    AnyVar a=-1.0;
    AnyVar b=2.0;
    Data={a*.datafun.Data[0],b*.datafun.Data[1]};
    T=.datafun.T;

However, “AnyInputFile” does not work. The data could not be read in.
I don’t know the reason.

Thanks for your help, John

— In anyscript@yahoogroups.com, “johnzengwu” <jwu@…> wrote:
>
> Søren:
>
> Thanks for the response and clever solution. There is a problem.
>
> By specifying:
>
> …
> Data=-1234565767*.datafun.Data;
> T=.datafun.T;
> …
>
> you will manipulate both DOFs of “datafun.Data” in the same manner.
> How to modify each DOF individually? Can I do something like:
>
> …
> AnyVar a=-1.0;
> AnyVar b=2.0;
> Data={a*.datafun.Data[0],b*.datafun.Data[1]};
> T=.datafun.T;
> …
>
> John
>
> — In anyscript@yahoogroups.com, AnyScript Support
> <anyscriptsup@> wrote:
> >
> > Hi John
> >
> >
> >
> > One more comment on this topic…
> >
> >
> >
> > It is of course also possible to use the AnyInputFile instead of
the
> > interpolation function when you read in the data, this would be
> more elegant
> > solution.
> >
> >
> >
> > The solution would look almost the same only the “datafun”
changes…
> >
> >
> >
> > AnyInputfile datafun = {
> >
> > FileName = “MCP_data.txt”;
> >
> > };
> >
> >
> >
> >
> >
> > Best regards
> >
> > Søren
> >
> >
> >
> > _____
> >
> > From: anyscript@yahoogroups.com
[mailto:anyscript@yahoogroups.com]
> On Behalf
> > Of AnyScript Support
> > Sent: 21 October 2008 10:05
> > To: anyscript@yahoogroups.com
> > Subject: RE: [AnyScript] Modification of Joint Driving File
> >
> >
> >
> > Hi John
> >
> > Yes this is possible :wink:
> >
> > It can be done by reading in the data into an interpolation
> function and
> > then use its data in the driver function. When you refer to the
> data you
> > have the chance to change the sign etc…
> >
> > So it would look something like this:
> >
> > AnyFunInterpol datafun =
> >
> > {
> >
> > FileName = “MCP_data.txt”;
> > Type = Bspline;
> > BsplineOrder = 4;
> >
> > };
> >
> > AnyFolder Drivers = {
> > AnyKinEqInterPolDriver MCPMotion = {
> > AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
> > Data=-1234565767*.datafun.Data; //here you can change the raw
data…
> >
> > T=.datafun.T;
> >
> > Type = Bspline;
> > BsplineOrder = 4;
> > Reaction.Type = {Off,Off};
> > }; // MCP driver
> >
> > Hope it was something like this you were looking for.
> >
> > Best regards
> >
> > Søren, AnyBody Support
> >
> > _____
> >
> > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
> ps.com
> > [mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
> ps.com] On
> > Behalf
> > Of johnzengwu
> > Sent: 20 October 2008 22:36
> > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com
> > Subject: [AnyScript] Modification of Joint Driving File
> >
> > Hi Søren:
> >
> > I have a small question regarding the drivers of a joint.
> >
> > I drive a joint using the data from experiment, e.g.,
> >
> > AnyFolder Drivers = {
> > AnyKinEqInterPolDriver MCPMotion = {
> > AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
> > FileName = “MCP_data.txt”;
> > Type = Bspline;
> > BsplineOrder = 4;
> > Reaction.Type = {Off,Off};
> > }; // MCP driver
> >
> > MCP is a universal joint, with 2 DOFs; the “MCP_data.txt” is in a
> > form of “time, angle (rad), angle (rad)”. The model works OK.
> >
> > My question: Is it possible to modify the anyscript code to vary
> the
> > drivers, without editing the driving file “MCP_data.txt”? For
> > example, I need to vary sign (-/+), change from deg to rad, or
> > magnify the variations in certain DOF, etc.
> >
> > Thanks,
> >
> > John Wu
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>

Hi John

It sounds good that you found the way to modify the individual dof’s.

I have tested a small script making use of the input file solution and it
works ok for me, so I think in your case it must be related to the specific
input file you have.

Is there anything special about it?

If possible you could upload it and we could try debugging on it, we are
always interested in models that can reproduce problems, this helps us
removing them.

For now I think you should change the interpolation function type to
piecewise linear in this way you can avoid having double interpolation added
to your data.

Best regards

Søren, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of johnzengwu
Sent: 21 October 2008 20:21
To: anyscript@yahoogroups.com
Subject: [AnyScript] Re: Modification of Joint Driving File

Søren:

I have tested it, and I can modify each DOF individually:

  1. reading the data:
    AnyFunInterpol datafun =
    {
    FileName = “MCP_data.txt”;
    Type = Bspline;
    BsplineOrder = 4;
    };
  2. in the driver:

    AnyVar a=-1.0;
    AnyVar b=2.0;
    Data={a*.datafun.Data[0],b*.datafun.Data[1]};
    T=.datafun.T;

However, “AnyInputFile” does not work. The data could not be read in.
I don’t know the reason.

Thanks for your help, John

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
“johnzengwu” <jwu@…> wrote:
>
> Søren:
>
> Thanks for the response and clever solution. There is a problem.
>
> By specifying:
>
> …
> Data=-1234565767*.datafun.Data;
> T=.datafun.T;
> …
>
> you will manipulate both DOFs of “datafun.Data” in the same manner.
> How to modify each DOF individually? Can I do something like:
>
> …
> AnyVar a=-1.0;
> AnyVar b=2.0;
> Data={a*.datafun.Data[0],b*.datafun.Data[1]};
> T=.datafun.T;
> …
>
> John
>
> — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
AnyScript Support
> <anyscriptsup@> wrote:
> >
> > Hi John
> >
> >
> >
> > One more comment on this topic…
> >
> >
> >
> > It is of course also possible to use the AnyInputFile instead of
the
> > interpolation function when you read in the data, this would be
> more elegant
> > solution.
> >
> >
> >
> > The solution would look almost the same only the “datafun”
changes…
> >
> >
> >
> > AnyInputfile datafun = {
> >
> > FileName = “MCP_data.txt”;
> >
> > };
> >
> >
> >
> >
> >
> > Best regards
> >
> > Søren
> >
> >
> >
> > _____
> >
> > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
[mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com]
> On Behalf
> > Of AnyScript Support
> > Sent: 21 October 2008 10:05
> > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> > Subject: RE: [AnyScript] Modification of Joint Driving File
> >
> >
> >
> > Hi John
> >
> > Yes this is possible :wink:
> >
> > It can be done by reading in the data into an interpolation
> function and
> > then use its data in the driver function. When you refer to the
> data you
> > have the chance to change the sign etc…
> >
> > So it would look something like this:
> >
> > AnyFunInterpol datafun =
> >
> > {
> >
> > FileName = “MCP_data.txt”;
> > Type = Bspline;
> > BsplineOrder = 4;
> >
> > };
> >
> > AnyFolder Drivers = {
> > AnyKinEqInterPolDriver MCPMotion = {
> > AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
> > Data=-1234565767*.datafun.Data; //here you can change the raw
data…
> >
> > T=.datafun.T;
> >
> > Type = Bspline;
> > BsplineOrder = 4;
> > Reaction.Type = {Off,Off};
> > }; // MCP driver
> >
> > Hope it was something like this you were looking for.
> >
> > Best regards
> >
> > Søren, AnyBody Support
> >
> > _____
> >
> > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
> ps.com
> > [mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
> ps.com] On
> > Behalf
> > Of johnzengwu
> > Sent: 20 October 2008 22:36
> > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com
> > Subject: [AnyScript] Modification of Joint Driving File
> >
> > Hi Søren:
> >
> > I have a small question regarding the drivers of a joint.
> >
> > I drive a joint using the data from experiment, e.g.,
> >
> > AnyFolder Drivers = {
> > AnyKinEqInterPolDriver MCPMotion = {
> > AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
> > FileName = “MCP_data.txt”;
> > Type = Bspline;
> > BsplineOrder = 4;
> > Reaction.Type = {Off,Off};
> > }; // MCP driver
> >
> > MCP is a universal joint, with 2 DOFs; the “MCP_data.txt” is in a
> > form of “time, angle (rad), angle (rad)”. The model works OK.
> >
> > My question: Is it possible to modify the anyscript code to vary
> the
> > drivers, without editing the driving file “MCP_data.txt”? For
> > example, I need to vary sign (-/+), change from deg to rad, or
> > magnify the variations in certain DOF, etc.
> >
> > Thanks,
> >
> > John Wu
> >
> > [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]

Søren:

You are right. There is problem with my data format. I read the data
and output in the format of MS-DOS-txt file in Excel,
and “AnyInputFile” works fine now.

Thanks, John

— In anyscript@yahoogroups.com, AnyScript Support
<anyscriptsup@…> wrote:
>
> Hi John
>
>
>
> It sounds good that you found the way to modify the individual
dof’s.
>
>
>
> I have tested a small script making use of the input file solution
and it
> works ok for me, so I think in your case it must be related to the
specific
> input file you have.
>
>
>
> Is there anything special about it?
>
> If possible you could upload it and we could try debugging on it,
we are
> always interested in models that can reproduce problems, this helps
us
> removing them.
>
>
>
> For now I think you should change the interpolation function type to
> piecewise linear in this way you can avoid having double
interpolation added
> to your data.
>
>
>
> Best regards
>
> Søren, AnyBody Support
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com]
On Behalf
> Of johnzengwu
> Sent: 21 October 2008 20:21
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] Re: Modification of Joint Driving File
>
>
>
> Søren:
>
> I have tested it, and I can modify each DOF individually:
>
> 1. reading the data:
> AnyFunInterpol datafun =
> {
> FileName = “MCP_data.txt”;
> Type = Bspline;
> BsplineOrder = 4;
> };
> 2. in the driver:
> …
> AnyVar a=-1.0;
> AnyVar b=2.0;
> Data={a*.datafun.Data[0],b*.datafun.Data[1]};
> T=.datafun.T;
> …
>
> However, “AnyInputFile” does not work. The data could not be read
in.
> I don’t know the reason.
>
> Thanks for your help, John
>
> — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com,
> “johnzengwu” <jwu@> wrote:
> >
> > Søren:
> >
> > Thanks for the response and clever solution. There is a problem.
> >
> > By specifying:
> >
> > …
> > Data=-1234565767*.datafun.Data;
> > T=.datafun.T;
> > …
> >
> > you will manipulate both DOFs of “datafun.Data” in the same
manner.
> > How to modify each DOF individually? Can I do something like:
> >
> > …
> > AnyVar a=-1.0;
> > AnyVar b=2.0;
> > Data={a*.datafun.Data[0],b*.datafun.Data[1]};
> > T=.datafun.T;
> > …
> >
> > John
> >
> > — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com,
> AnyScript Support
> > <anyscriptsup@> wrote:
> > >
> > > Hi John
> > >
> > >
> > >
> > > One more comment on this topic…
> > >
> > >
> > >
> > > It is of course also possible to use the AnyInputFile instead
of
> the
> > > interpolation function when you read in the data, this would be
> > more elegant
> > > solution.
> > >
> > >
> > >
> > > The solution would look almost the same only the “datafun”
> changes…
> > >
> > >
> > >
> > > AnyInputfile datafun = {
> > >
> > > FileName = “MCP_data.txt”;
> > >
> > > };
> > >
> > >
> > >
> > >
> > >
> > > Best regards
> > >
> > > Søren
> > >
> > >
> > >
> > > _____
> > >
> > > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com
> [mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com]
> > On Behalf
> > > Of AnyScript Support
> > > Sent: 21 October 2008 10:05
> > > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
ps.com
> > > Subject: RE: [AnyScript] Modification of Joint Driving File
> > >
> > >
> > >
> > > Hi John
> > >
> > > Yes this is possible :wink:
> > >
> > > It can be done by reading in the data into an interpolation
> > function and
> > > then use its data in the driver function. When you refer to the
> > data you
> > > have the chance to change the sign etc…
> > >
> > > So it would look something like this:
> > >
> > > AnyFunInterpol datafun =
> > >
> > > {
> > >
> > > FileName = “MCP_data.txt”;
> > > Type = Bspline;
> > > BsplineOrder = 4;
> > >
> > > };
> > >
> > > AnyFolder Drivers = {
> > > AnyKinEqInterPolDriver MCPMotion = {
> > > AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
> > > Data=-1234565767*.datafun.Data; //here you can change the raw
> data…
> > >
> > > T=.datafun.T;
> > >
> > > Type = Bspline;
> > > BsplineOrder = 4;
> > > Reaction.Type = {Off,Off};
> > > }; // MCP driver
> > >
> > > Hope it was something like this you were looking for.
> > >
> > > Best regards
> > >
> > > Søren, AnyBody Support
> > >
> > > _____
> > >
> > > From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
> > ps.com
> > > [mailto:anyscript@yahoogrou <mailto:anyscript%
40yahoogroups.com>
> > ps.com] On
> > > Behalf
> > > Of johnzengwu
> > > Sent: 20 October 2008 22:36
> > > To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com>
> ps.com
> > > Subject: [AnyScript] Modification of Joint Driving File
> > >
> > > Hi Søren:
> > >
> > > I have a small question regarding the drivers of a joint.
> > >
> > > I drive a joint using the data from experiment, e.g.,
> > >
> > > AnyFolder Drivers = {
> > > AnyKinEqInterPolDriver MCPMotion = {
> > > AnyUniversalJoint &Jnts = Main.Model.Jnts.MCP;
> > > FileName = “MCP_data.txt”;
> > > Type = Bspline;
> > > BsplineOrder = 4;
> > > Reaction.Type = {Off,Off};
> > > }; // MCP driver
> > >
> > > MCP is a universal joint, with 2 DOFs; the “MCP_data.txt” is in
a
> > > form of “time, angle (rad), angle (rad)”. The model works OK.
> > >
> > > My question: Is it possible to modify the anyscript code to
vary
> > the
> > > drivers, without editing the driving file “MCP_data.txt”? For
> > > example, I need to vary sign (-/+), change from deg to rad, or
> > > magnify the variations in certain DOF, etc.
> > >
> > > Thanks,
> > >
> > > John Wu
> > >
> > > [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]
>