(Working) Code to interface 3 LoadCells to ADISense1000 and display values using the Labview code.
Fork of 4Bridge_ADISense1000_Example_copy by
sensor2_bridge-6w-pressure_config.c
00001 00002 /*! 00003 ****************************************************************************** 00004 * @file: sensor2_bridge_6w_pressure_config 00005 * @brief: Initilize the sensor configuration 00006 *----------------------------------------------------------------------------- 00007 */ 00008 #include "adi_sense_config_types.h" 00009 00010 ADI_SENSE_CONFIG sensor2_bridge_6w_pressure_config = 00011 { 00012 .versionId = { .major = 1, .minor = 4 }, 00013 .productId = ADI_SENSE_PRODUCT_ID_1000 , 00014 .adisense1000 = 00015 { 00016 .power = 00017 { 00018 .powerMode = ADI_SENSE_1000_POWER_MODE_FULL , 00019 }, 00020 .measurement = 00021 { 00022 .operatingMode = ADI_SENSE_1000_OPERATING_MODE_CONTINUOUS , 00023 .dataReadyMode = ADI_SENSE_1000_DATAREADY_PER_CYCLE , 00024 }, 00025 00026 /* 00027 Define the channels and operating mode 00028 */ 00029 .channels = 00030 { 00031 [ADI_SENSE_1000_CHANNEL_ID_SENSOR_2 ] = 00032 { 00033 .enableChannel = true, 00034 .disablePublishing = false, 00035 .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE , 00036 .measurementsPerCycle = 1, 00037 .extraSettlingTime = 20000, 00038 .adcChannelConfig = 00039 { 00040 .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_2_DEF_L2 , 00041 .gain = ADI_SENSE_1000_ADC_GAIN_1X , 00042 .filter = 00043 { 00044 .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS , 00045 }, 00046 .reference = 00047 { 00048 .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION , 00049 .disableBuffer = false, 00050 }, 00051 .enableVbias = false, 00052 }, 00053 }, 00054 00055 [ADI_SENSE_1000_CHANNEL_ID_SENSOR_1 ] = 00056 { 00057 .enableChannel = true, 00058 .disablePublishing = false, 00059 .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE , 00060 .measurementsPerCycle = 1, 00061 .extraSettlingTime = 20000, 00062 .adcChannelConfig = 00063 { 00064 .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_2_DEF_L2 , 00065 .gain = ADI_SENSE_1000_ADC_GAIN_1X , 00066 .filter = 00067 { 00068 .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS , 00069 }, 00070 .reference = 00071 { 00072 .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION , 00073 .disableBuffer = false, 00074 }, 00075 .enableVbias = false, 00076 }, 00077 }, 00078 00079 [ADI_SENSE_1000_CHANNEL_ID_SENSOR_0 ] = 00080 { 00081 .enableChannel = true, 00082 .disablePublishing = false, 00083 .compensationChannel = ADI_SENSE_1000_CHANNEL_ID_NONE , 00084 .measurementsPerCycle = 1, 00085 .extraSettlingTime = 20000, 00086 .adcChannelConfig = 00087 { 00088 .sensor = ADI_SENSE_1000_ADC_SENSOR_BRIDGE_4WIRE_2_DEF_L2 , 00089 .gain = ADI_SENSE_1000_ADC_GAIN_1X , 00090 .filter = 00091 { 00092 .type = ADI_SENSE_1000_ADC_FILTER_FIR_25SPS , 00093 }, 00094 .reference = 00095 { 00096 .type = ADI_SENSE_1000_ADC_REFERENCE_BRIDGE_EXCITATION , 00097 .disableBuffer = false, 00098 }, 00099 .enableVbias = false, 00100 }, 00101 }, 00102 00103 }, 00104 }, 00105 }; 00106
Generated on Tue Jul 12 2022 21:13:17 by 1.7.2