Tuesday, May 23, 2006

trying to figure out when in the data logging, the motor gets hung up

the motor definetly gets hung up when RTDX is enabled. I have made sure that while the data is being transferred to the PC, the RTDX is no longer enabled.

Maybe it woudl be better if I used the wait function rather than continually polling the num_messages.


% WAIT
% Check the number of available messages to read from the target.
num_of_HE_data = cc.rtdx.msgcount('ochan_HE');
while num_of_HE_data <= TotalSamples
num_of_HE_data = cc.rtdx.msgcount('ochan_HE');
end

changed to

WaitTime = LogTime*1.1;
wait(WaitTime);

that function sucks - could not be bothered

try to log at 1k

i have a feeling that the motor is not going as fast as it should - better check how long a rev takes with the data that comes out.

That is fine - time to try to get it going with the current controlled stuff

0 Comments:

Post a Comment

<< Home