Clear Filters
Clear Filters

Force plate calibration matrix

5 views (last 30 days)
Sangwoo
Sangwoo on 3 May 2011
I am a student majoring in biomechanics. I collected data from a force plate with the use of the data acquisition toobox. I collected volatage values ranging from -10 to +10 from a force plate.
However, I cannot collect force data even if I apply the calibration matrix to the voltage signals. In other words, the force values should be more 700. But, the values are still less than 10.
The code I have created is as following.
AI=analoginput('dtol',0);
set(AI,'InputType','SingleEnded');
chan=addchannel(AI,1:6);
set(chan,'InputRange',[-10 10]);
duration=10;
set(AI,'SampleRate',250);
set(AI,'SamplesPerTrigger',2500);
set(AI,'TriggerChannel',chan(3));
set(AI,'TriggerType','Immediate');
start(AI)
while(~AI.Logging)
disp('Waiting for trigger');
pause(1);
end
disp('Triggered);
wait(AI,duration*2);
data=getdata(AI);
%ca=calibration matrix provided by AMTI
ca=[2.937 -0.015 0.036 -0.023 0.025 -0.005;0.007 2.923 -0.037 0.040 -0.021 0.020;0.006 0.006 11.469 -0.028 -0.002 -0.011;-0.001 0 0 1.528 -0.002 0.003;0 0.003 0 -0.002 1.528 -0.005;0.008 0 -0.004 0.005 -0.001 0.738];
%k=correction coefficient
k=[0.12207 0.12207 0.12207 0.12207 0.12207 0.12207;-0.12207 -0.12207 -0.12207 -0.12207 -0.12207 -0.12207;0.12207 0.12207 0.12207 0.12207 0.12207 0.12207;12.207 12.207 12.207 12.207 12.207 12.207;-12.207 -12.207 -12.207 -12.207 -12.207 -12.207;12.207 12.207 12.207 12.207 12.207 12.207];
c=ca.*k;
actualdata=c*data';
subplot(6,1,1);plot(actualdata(1,:));
title('GRF & GRM');xlabel('frames');ylabel('force(N)');
subplot(6,1,2);plot(actualdata(2,:));
xlabel('frames');ylabel('force(N)');
subplot(6,1,3);plot(actualdata(3,:));
xlabel('frames');ylabel('force(N)');
subplot(6,1,4);plot(actualdata(4,:));
xlabel('frames');ylabel('Moment(Nm)');
subplot(6,1,5);plot(actualdata(5,:));
xlabel('frames');ylabel('Moment(Nm)');
subplot(6,1,6);plot(actualdata(6,:));
xlabel('frames');ylabel('Moment(Nm)');
delete(AI)
clear AI

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!