Hi,
I am using an accelerometer to determine a patient's position on a bed. Five positions need to be identified. In the table below, corresponding accelerometer voltages were measured in each of the five positions.
Can anyone in the Forum identify the logic needed where the inputs would be Vx, Vy, and Vz and the ouput would be position?
A nested if statement would seem to be the way to do this or with VBA. Any help is greatly appreciated.
Thanks,
Art
I am using an accelerometer to determine a patient's position on a bed. Five positions need to be identified. In the table below, corresponding accelerometer voltages were measured in each of the five positions.
Code:
Orientation Vx Vy Vz
Supine flat 1.666 1.68 1.007
Supine 10˚ 1.657 1.88 1.036
Prone 1.656 1.681 2.34
Left side 1.671 1.009 1.615
Right side 1.687 2.325 1.675
Can anyone in the Forum identify the logic needed where the inputs would be Vx, Vy, and Vz and the ouput would be position?
A nested if statement would seem to be the way to do this or with VBA. Any help is greatly appreciated.
Thanks,
Art