## Phidget Magnetometer.lvlib:MagnetometerSetCorrectionParameters.vi

Calibrate your device for the environment it will be used in.

- Due to physical location, hard and soft iron offsets, and even bias errors, your device should be calibrated. We have created a calibration program that will provide you with the `CompassCorrectionParameters` for your specific situation. See your device's User Guide for more information.

Device Support:

1042_0 (ver: 300, 301, 302) 3-Axis Magnetometer : Supported

1044_0 (ver: 400, 401, 402) 3-Axis Magnetometer : Supported

1044_1 (ver: 500, 502) 3-Axis Magnetometer : Supported

1056_0 (ver: 100, 101, 102) 3-Axis Magnetometer : Supported

1056_0 (ver: 200) 3-Axis Magnetometer : Supported

MOT1101_0 (ver: 112, 113) 3-Axis Magnetometer : Supported

| Device In Device # Identification

| error in (no error) error in can accept error information wired from VIs previously called.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source describes the origin of the error or warning. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| Correction Parameters The set of magnetometer correction parameters

| magField Ambient magnetic field value.

| Offset 0 Provided by calibration program.

| Offset 1 Provided by calibration program.

| Offset 2 Provided by calibration program.

| Gain 0 Provided by calibration program.

| Gain 1 Provided by calibration program.

| Gain 2 Provided by calibration program.

| T0 Provided by calibration program.

| T1 Provided by calibration program.

| T2 Provided by calibration program.

| T3 Provided by calibration program.

| T4 Provided by calibration program.

| T5 Provided by calibration program.

| Device Out Same as Device In

| error out error out passes error or warning information out of a VI to be used by other VIs.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source describes the origin of the error or warning. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.