Identify position based on voltage data

artz

Well-known Member
Joined
Aug 11, 2002
Messages
830
Office Version
  1. 2016
Platform
  1. Windows
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.

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
 
Hi kweaver, pardon my ignorance, but what is PM? -Art
 
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Private message...I sent you the workbook so you didn't have to do all that copy/paste, etc. You didn't get an email through the Forum?
Look at the top right of your screen after your user name. Should be an option for Notifications.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top