Wednesday, April 05, 2006

afm11 - introducing a multirate system

I want to speed up the current capture loop so that I can start averaging the output. To do that, I should first make it as efficient as possible. In the first instance, that means removing all the superfuous "to memory" blocks.

WORKS

I just discovered that I never added the DINT and EINT


add DINT and EINT later


changed to a sample time just for that block - currently the same as the global sample time.

WORKS - time to try a rate transition

WORKS - when rate transition block is installed with the rates being the same

try faster sample rate for current sense

DNW - problem with rate transition

Needed to explicitly define sample time of some input and output ports as "ts_current_sense"

DNW - compiled but motor did not turn

Changed all the ports to "ts_current_sense" and tried again with the sample times the same.

WORKS - previous may have not worked as system was on the way to a crash

Tried to change to a different sample time

DNW

discoverd that I had not changed one of the SAMPLE_TIME inputs. I may not have had to change all the -1 s to "ts_current_sense"

Sort of works. Very jerky current output is terrible



try ts_current_sense = 4e-6

DNW

0 Comments:

Post a Comment

<< Home