Other Parts Discussed in Thread: MOTORWARE
I would like to record the current draw and EMF over a period of time while applying a known load. Can the InstaSPIN GUI or software log this data for me?
Thank you,
Matt
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: MOTORWARE
I would like to record the current draw and EMF over a period of time while applying a known load. Can the InstaSPIN GUI or software log this data for me?
Thank you,
Matt
To datalog you need to use the datalog functions
C:\ti\motorware\motorware_1_01_00_07\sw\modules\dlog\src\32b
or really just set aside some RAM and keep track of writing to the locations, and then pull them out later.
You would need to add this code to the MotorWare project you are working on.
as a code snippet we do somethign like this
in defines:
int16_t DlogCh1 = 0;
DLOG_4CH dlog = DLOG_4CH_DEFAULTS;
int16_t *dlogptr1;
int16_t DLOG_4CH_buff1[ANGLE_BUFFER_SIZE];
int16_t gGraphPrescaler = 1;
dlog.iptr1 = &DlogCh1;
dlog.trig_value = 0x5;
dlog.size = ANGLE_BUFFER_SIZE;
dlog.prescalar = gGraphPrescaler;
dlog.init(&dlog);
in main code:
Gui.gRotorFluxAngle = EST_getAngle_pu(obj->estHandle);
DlogCh1 = (int16_t)_IQtoIQ15(Gui.gRotorFluxAngle);
dlog.update(&dlog);
We have it on the to do list to add this example into MotorWare