|
Categories
|
Files Formats for the APAS SystemWe have a document on our WEB site which contains the specifications for
the
Analog .ana fileYes indeed the total number of samples divided by the number of channels will give the number of datapoints per channel. The ENVREC contains all the information about the raw channels. The conversion of A/D units to user units is performed in two steps. First there is a conversion of A/D units to volts. This involves properties of the A/D board itself such as the #bits, voltage range, gain, etc and is performed as follows: float SOFTCHAN_AD::Raw2Volts(int
iVal) The 2nd step is to convert volts to user units which is hardware independent. The conversion of raw to user is calculated as follows: float SOFTCHAN_AD::Raw2User(int
iVal) I'm sure some of the structure of the ANA files is somewhat confusing. This is largely because the structure of the file has evolved over the last 20 some years. New capability was added while always maintaining backwards compatibility. Clearly if one were setting out today to design the structure of the file it would be done differently. The other pieces of information in the ENVREC that are important for the force plates are: 1) at WORD offset=267 is the 1st Plate channel. It need not be that the 1st actual channel collected belongs to a force plate. It is assumed that the force plate channels are consecutive from the 1st plate channel. The order of the channels depends on whether the plate is a 6 channel plate such as AMTI in which case the order is assumed to be: Fx|Fy|Fz| Mx|My|Mz If it is an 8 channel plate such as Kistler then the order is: Fx12|Fx34|Fy14|Fy23|Fz1|Fz2|Fz3|Fz4 Additional plates directly follow with the same assumed channel order. There can be only 1 type of plate 6 or 8 channel at any one time. 2) at WORD offset=283 Plate dimension units at WORD offset=296 Plate Type 0=Kistler 1=AMTI 2=Bertec at WORD offset=310 #Plates on system at WORD offset=311 for 2 plates 6 element dimension description 1="X" Distance centerline to transducers 2="Y" Distance centerline to transducers 3=Depth beneath plate surface for the transducers [always positive] 4="X" length 5="Y" length at WORD offset=335 orientation of 2nd plate relative to 1st.
The only item of interest in the EXTENVREC is at WORD offset=103 Force units for the plate. 1=Nt 2=Kg 3=Lb
Here is code for calculating Fxyz, Mxyz for a Kistler plate. GetVal(channel, sample#) returns the channel value for specified sample# in user units.
/***************************************************************/
From Fxyz & Mxyz the center of pressure and the free moment can be calculated as follows:
/***************************************************************/ I hope this helps. I am leaving Fri 2/18 for a week so fire away before I leave with more questions.
Best, Jeremy
My question is: Is the method in the MatLab-files for calculating forces and torques from the trial data block correct? For either 1 or 2 platforms? Apparently the total number of samples divided by the number of channels will give the number of datapoints per channel, correct? Then in FORCE.M the final mappings are done to map channel data to actual forces and torques, using 2 conversion factors and an offset from the environment block. Is this calculation correct? Are these channels always in the same order? Or should I assume the same channel names? And are they always present, even with 1 platform? Any hints, tips, advice are most welcome. Thanks so much for your help. Hope to hear from you. - Rudolf
|
|