(Working) Code to interface 3 LoadCells to ADISense1000 and display values using the Labview code.

Fork of 4Bridge_ADISense1000_Example_copy by CAC_smartcushion

Committer:
RGurav
Date:
Wed Aug 08 08:08:53 2018 +0000
Revision:
3:83d10123d1cd
Parent:
2:2f9f9f7f0243
(Working); Code to interface 3 loadCell to ADISense1000 and display using Labview code.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RGurav 2:2f9f9f7f0243 1
RGurav 2:2f9f9f7f0243 2 /*!
RGurav 2:2f9f9f7f0243 3 ******************************************************************************
RGurav 3:83d10123d1cd 4 * @file: sensor2_bridge_6w_pressure_config
RGurav 3:83d10123d1cd 5 * @brief: Initilize the sensor configuration
RGurav 2:2f9f9f7f0243 6 *-----------------------------------------------------------------------------
RGurav 2:2f9f9f7f0243 7 */
RGurav 2:2f9f9f7f0243 8 #include "adi_sense_config_types.h"
RGurav 2:2f9f9f7f0243 9
RGurav 3:83d10123d1cd 10 ADI_SENSE_CONFIG sensor2_bridge_6w_pressure_config =
RGurav 3:83d10123d1cd 11 {
RGurav 2:2f9f9f7f0243 12 .versionId = { .major = 1, .minor = 4 },
RGurav 2:2f9f9f7f0243 13 .productId = ADI_SENSE_PRODUCT_ID_1000,
RGurav 3:83d10123d1cd 14 .adisense1000 =
RGurav 3:83d10123d1cd 15 {
RGurav 3:83d10123d1cd 16 .power =
RGurav 3:83d10123d1cd 17 {
RGurav 2:2f9f9f7f0243 18 .powerMode = ADI_SENSE_1000_POWER_MODE_FULL,
RGurav 2:2f9f9f7f0243 19 },
RGurav 3:83d10123d1cd 20 .measurement =
RGurav 3:83d10123d1cd 21 {
RGurav 2:2f9f9f7f0243 22 .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS,
RGurav 2:2f9f9f7f0243 23 .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE,
RGurav 2:2f9f9f7f0243 24 },
RGurav 3:83d10123d1cd 25
RGurav 3:83d10123d1cd 26 /*
RGurav 3:83d10123d1cd 27 Define the channels and operating mode
RGurav 3:83d10123d1cd 28 */
RGurav 3:83d10123d1cd 29 .channels =
RGurav 3:83d10123d1cd 30 {
RGurav 3:83d10123d1cd 31 [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2] =
RGurav 3:83d10123d1cd 32 {
RGurav 2:2f9f9f7f0243 33 .enableChannel = true,
RGurav 2:2f9f9f7f0243 34 .disablePublishing = false,
RGurav 2:2f9f9f7f0243 35 .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
RGurav 2:2f9f9f7f0243 36 .measurementsPerCycle = 1,
RGurav 2:2f9f9f7f0243 37 .extraSettlingTime = 20000,
RGurav 3:83d10123d1cd 38 .adcChannelConfig =
RGurav 3:83d10123d1cd 39 {
RGurav 2:2f9f9f7f0243 40 .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_2_DEF_L2,
RGurav 2:2f9f9f7f0243 41 .gain = ADI_SENSE_1000_ADC_GAIN_1X,
RGurav 3:83d10123d1cd 42 .filter =
RGurav 3:83d10123d1cd 43 {
RGurav 2:2f9f9f7f0243 44 .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
RGurav 3:83d10123d1cd 45 },
RGurav 3:83d10123d1cd 46 .reference =
RGurav 3:83d10123d1cd 47 {
RGurav 2:2f9f9f7f0243 48 .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION,
RGurav 2:2f9f9f7f0243 49 .disableBuffer = false,
RGurav 3:83d10123d1cd 50 },
RGurav 2:2f9f9f7f0243 51 .enableVbias = false,
RGurav 2:2f9f9f7f0243 52 },
RGurav 2:2f9f9f7f0243 53 },
RGurav 3:83d10123d1cd 54
RGurav 3:83d10123d1cd 55 [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1] =
RGurav 3:83d10123d1cd 56 {
RGurav 3:83d10123d1cd 57 .enableChannel = true,
RGurav 3:83d10123d1cd 58 .disablePublishing = false,
RGurav 3:83d10123d1cd 59 .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
RGurav 3:83d10123d1cd 60 .measurementsPerCycle = 1,
RGurav 3:83d10123d1cd 61 .extraSettlingTime = 20000,
RGurav 3:83d10123d1cd 62 .adcChannelConfig =
RGurav 3:83d10123d1cd 63 {
RGurav 3:83d10123d1cd 64 .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_2_DEF_L2,
RGurav 3:83d10123d1cd 65 .gain = ADI_SENSE_1000_ADC_GAIN_1X,
RGurav 3:83d10123d1cd 66 .filter =
RGurav 3:83d10123d1cd 67 {
RGurav 3:83d10123d1cd 68 .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
RGurav 3:83d10123d1cd 69 },
RGurav 3:83d10123d1cd 70 .reference =
RGurav 3:83d10123d1cd 71 {
RGurav 3:83d10123d1cd 72 .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION,
RGurav 3:83d10123d1cd 73 .disableBuffer = false,
RGurav 3:83d10123d1cd 74 },
RGurav 3:83d10123d1cd 75 .enableVbias = false,
RGurav 3:83d10123d1cd 76 },
RGurav 3:83d10123d1cd 77 },
RGurav 3:83d10123d1cd 78
RGurav 3:83d10123d1cd 79 [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0] =
RGurav 3:83d10123d1cd 80 {
RGurav 3:83d10123d1cd 81 .enableChannel = true,
RGurav 3:83d10123d1cd 82 .disablePublishing = false,
RGurav 3:83d10123d1cd 83 .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE,
RGurav 3:83d10123d1cd 84 .measurementsPerCycle = 1,
RGurav 3:83d10123d1cd 85 .extraSettlingTime = 20000,
RGurav 3:83d10123d1cd 86 .adcChannelConfig =
RGurav 3:83d10123d1cd 87 {
RGurav 3:83d10123d1cd 88 .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_2_DEF_L2,
RGurav 3:83d10123d1cd 89 .gain = ADI_SENSE_1000_ADC_GAIN_1X,
RGurav 3:83d10123d1cd 90 .filter =
RGurav 3:83d10123d1cd 91 {
RGurav 3:83d10123d1cd 92 .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS,
RGurav 3:83d10123d1cd 93 },
RGurav 3:83d10123d1cd 94 .reference =
RGurav 3:83d10123d1cd 95 {
RGurav 3:83d10123d1cd 96 .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION,
RGurav 3:83d10123d1cd 97 .disableBuffer = false,
RGurav 3:83d10123d1cd 98 },
RGurav 3:83d10123d1cd 99 .enableVbias = false,
RGurav 3:83d10123d1cd 100 },
RGurav 3:83d10123d1cd 101 },
RGurav 3:83d10123d1cd 102
RGurav 2:2f9f9f7f0243 103 },
RGurav 2:2f9f9f7f0243 104 },
RGurav 2:2f9f9f7f0243 105 };
RGurav 2:2f9f9f7f0243 106