1.12.8.0.4490E:/Project/algobuilder_demo/sensortilebox/demoSTM32CubeIDESensorTile.boxSensor_Hub_1_outTilt_Sensing_1_dataSensor_Hub_1_outSensor_Hub_1_outSensor_Hub_1_outDemux_Float_1_out1Demux_Float_1_out2Constant_Float_1_outSubtract_1_outAbsolute_Value_1_outConstant_Float_2_outDemux_Float_1_out3And_1_outConstant_Float_3_outPressure_hPa_1_dataTemperature_C_1_dataDemux_Float_1_out3Demux_Float_1_out1Constant_Float_4_outSubtract_2_outAbsolute_Value_2_outConstant_Float_5_outHumidity_percent_1_dataLess_than_or_equal_to_3_outDemux_Float_1_out2Switch_Float_1_outSwitch_Float_2_outLess_than_or_equal_to_2_outLess_than_or_equal_to_1_outOr_1_outDemux_Float_1_out2Switch_Float_3_outLess_than_or_equal_to_1_outLess_than_or_equal_to_2_outText NoteFront and back error-276-285Text NoteLeft and right error-274-230[Sensor Hub][Sensor Hub]3.0Sensor Hub1Sensor Hub provides links to sensor and algorithms in order to retrieve data from them.-723-4910040INTData Rate Control0Timer=0,Accelerometer=1,Gyroscope=2,Offline Data=255Defines the data rate source.INTData Rate10016666Defines the sensor's and algorithm's data rate in Hz. If accelerometer or gyroscope is selected as data rate source, the closest higher available output data rate (ODR) is selected.INTAccelerometer Full Scale12 g=0,4 g=1,8 g=2,16 g=3Defines the accelerometer full scale.INTGyroscope Full Scale1245 dps=0,500 dps=1,1000 dps=2,2000 dps=3Defines the gyroscope full scale.Sensor_Hub_Handler(&%out%);Sensor_Hub_Init(%Data Rate Control%, %Data Rate%, %Accelerometer Full Scale%, %Gyroscope Full Scale%);Pressure [hPa]Pressure##[hPa]2.1Sensor Hub1Retrieve the presurre sensor data.PressureSensor-552-16810040VOID1SensorHubHandleConnect to Sensor Hub output.Sensor_Hub_1_outPressure_Sensor_GetData(%SensorHubHandle%, %data%);Pressure_Init();Temperature [°C]Temperature##[°C]2.1Sensor Hub1Retrieve the temperature sensor data.TemperatureSensor-55317310040VOID1SensorHubHandleConnect to Sensor Hub output.Sensor_Hub_1_outTemperature_Sensor_GetData(%SensorHubHandle%, %data%);Temperature_Init();Humidity [percent]Humidity##[percent]2.1Sensor Hub1Retrieve the humidity sensor data.HumiditySensor-5566710040VOID1SensorHubHandleConnect to Sensor Hub output.Sensor_Hub_1_outHumidity_Sensor_GetData(%SensorHubHandle%, %data%);Humidity_Init();Constant (Float)%Value%##(Float)1.0Constants5Defines float constant.-1971448040FLOATValue5Constant value.%out%[0] = %Value%;Demux (Float)Demux [%Number of outputs%]##(Float)1.0Other1Float demultiplexer. Creates individual scalar outputs from input array.-418-506045FLOAT%Number of outputs%in1Input.Tilt_Sensing_1_data%Number of outputs%INTNumber of outputs3216Constant (Float)%Value%##(Float)1.0Constants1Defines float constant.-296108040FLOATValue90Constant value.%out%[0] = %Value%;Subtract (-)-1.0Math Operations1Substracts value in2 from value in1.-163-175040FLOAT1in1First operand.Demux_Float_1_out3FLOAT1in2Second operand.Constant_Float_1_out%out%[0] = %in1%[0] - %in2%[0];Absolute ValueAbs1.0Math Operations1Computes the absolute value.-82-186040FLOAT1inInput.Subtract_1_out%out%[0] = fabs(%in%[0]);Constant (Float)%Value%##(Float)1.0Constants2Defines float constant.-7148040FLOATValue5Constant value.%out%[0] = %Value%;Less than or equal to (<=)<=1.0Comparison2Checks if in1 is less than or equal to in2. Returns 1 if the condition is true, 0 otherwise.-175-1175040VARIANT1in1First operand.Demux_Float_1_out2VARIANT1in2Second operand.Constant_Float_3_outif (%in1%[0] <= %in2%[0]) %out%[0] = 1; else %out%[0] = 0;Constant (Float)%Value%##(Float)1.0Constants3Defines float constant.-297-498040FLOATValue-45Constant value.%out%[0] = %Value%;Subtract (-)-1.0Math Operations2Substracts value in2 from value in1.-294765040FLOAT1in1First operand.Demux_Float_1_out1FLOAT1in2Second operand.Constant_Float_4_out%out%[0] = %in1%[0] - %in2%[0];Constant (Float)%Value%##(Float)1.0Constants4Defines float constant.-4411058040FLOATValue0Constant value.%out%[0] = %Value%;Absolute ValueAbs1.0Math Operations2Computes the absolute value.-190776040FLOAT1inInput.Subtract_2_out%out%[0] = fabs(%in%[0]);Less than or equal to (<=)<=1.0Comparison3Checks if in1 is less than or equal to in2. Returns 1 if the condition is true, 0 otherwise.-291065040VARIANT1in1First operand.Absolute_Value_2_outVARIANT1in2Second operand.Constant_Float_5_outif (%in1%[0] <= %in2%[0]) %out%[0] = 1; else %out%[0] = 0;AndAND2.0Logic Operators1Make logical AND.220-476040%Number of inputs%INT1in1First operand.Less_than_or_equal_to_2_outINT1in2Second operand.Less_than_or_equal_to_1_outINTNumber of inputs2216%out%[0] = %in1%[0] && %in2%[0];Switch (Float)Switch ##(Float)1.0Other1Switch for float variables. If control is 0 the output is equal to input 1 otherwise output is equal to input 2.314-66050FLOAT1in1Input 1.Temperature_C_1_dataFLOAT1in2Input 2.Pressure_hPa_1_dataINT1controlcontrol signal.And_1_outSignalSwitchFloat(%in1%, %in2%, %control%, %out%);Switch (Float)Switch ##(Float)1.0Other2Switch for float variables. If control is 0 the output is equal to input 1 otherwise output is equal to input 2.322606050FLOAT1in1Input 1.Humidity_percent_1_dataFLOAT1in2Input 2.Demux_Float_1_out2INT1controlcontrol signal.Less_than_or_equal_to_3_outSignalSwitchFloat(%in1%, %in2%, %control%, %out%);Switch (Float)Switch ##(Float)1.0Other3Switch for float variables. If control is 0 the output is equal to input 1 otherwise output is equal to input 2.434306050FLOAT1in1Input 1.Switch_Float_2_outFLOAT1in2Input 2.Switch_Float_1_outINT1controlcontrol signal.Or_1_outSignalSwitchFloat(%in1%, %in2%, %control%, %out%);Tilt SensingTilt##Sensing1.3MotionTL1Retrieves real-time information about the tilt angles of the device. Sample rate for this algorithm is 25Hz, Data Rate of the Sensor Hub must be set equal or higher.Accelerometer-558-4910040VOID1SensorHubHandleConnect to Sensor Hub output.Sensor_Hub_1_outINTMode0Mode 1=0,Mode 2=1In Mode 1 the library returns pitch, roll and gravity inclination, in Mode 2 theta, psi and phi angles. For details please see MotionTL user manual UM2277.TiltSensing_GetData(%SensorHubHandle%, %data%);MotionTL_Init(%Mode%);Less than or equal to (<=)<=1.0Comparison1Checks if in1 is less than or equal to in2. Returns 1 if the condition is true, 0 otherwise.132-35040VARIANT1in1First operand.Absolute_Value_1_outVARIANT1in2Second operand.Constant_Float_2_outif (%in1%[0] <= %in2%[0]) %out%[0] = 1; else %out%[0] = 0;OrOR2.0Logic Operators1Make logical OR.3261326040%Number of inputs%INT1in1First operand.Less_than_or_equal_to_1_outINT1in2Second operand.Less_than_or_equal_to_2_outINTNumber of inputs2216%out%[0] = %in1%[0] || %in2%[0];GraphGraph2.2Display2Graph. Displays up to six real-time curves. The X-axis represents time, Y-axis is value.-366-2388040VARIANT%Number of Curves%inInput data to plot (y-axis value). The input data size has to match with number of curves.Demux_Float_1_out2INTData TypeCustomCustom=Custom,Accelerometer=Accelerometer,Gyroscope=Gyroscope,Magnetometer=MagnetometerEnables easy setting of waveform names and units to apropriate values.INTNumber of Curves116Defines number of curves to plot. Value must be from 1 to 6.3,3,3,31,0,0,0STRINGGraph Namegraph2Label of the graph.Graph,Acceleration,Angular##Rate,Magnetic##Field1,0,0,0STRINGWaveform 1 NameWaveform 1Name of the waveform 1.Number of Curves1Waveform 1,accX,gyroX,magnX1,0,0,0STRINGWaveform 2 NameWaveform 2Name of the waveform 2.Number of Curves2Waveform 2,accY,gyroY,magnY1,0,0,0STRINGWaveform 3 NameWaveform 3Name of the waveform 3.Number of Curves3Waveform 3,accZ,gyroZ,magnZ1,0,0,0STRINGWaveform 4 NameWaveform 4Name of the waveform 4.Number of Curves4Waveform 4,,,1,0,0,0STRINGWaveform 5 NameWaveform 5Name of the waveform 5.Number of Curves5Waveform 5,,,1,0,0,0STRINGWaveform 6 NameWaveform 6Name of the waveform 6.Number of Curves6Waveform 6,,,1,0,0,0STRINGUnit NameName of graph units.,g,dps,uT1,0,0,0INTZero axis position3Bottom=1,Middle=3,Top=5Horizontal position of zero axis.INTAuto-scale0OFF=0,ON=1Auto-scale of Y axis enabled.STRINGFull Scale1Axis Y full scale. (Format: 2.5 or -1.5:3)Display_Update(%in%);GraphGraph2.2Display1Graph. Displays up to six real-time curves. The X-axis represents time, Y-axis is value.-373-2908040VARIANT%Number of Curves%inInput data to plot (y-axis value). The input data size has to match with number of curves.Demux_Float_1_out1INTData TypeCustomCustom=Custom,Accelerometer=Accelerometer,Gyroscope=Gyroscope,Magnetometer=MagnetometerEnables easy setting of waveform names and units to apropriate values.INTNumber of Curves116Defines number of curves to plot. Value must be from 1 to 6.3,3,3,31,0,0,0STRINGGraph Namegraph1Label of the graph.Graph,Acceleration,Angular##Rate,Magnetic##Field1,0,0,0STRINGWaveform 1 NameWaveform 1Name of the waveform 1.Number of Curves1Waveform 1,accX,gyroX,magnX1,0,0,0STRINGWaveform 2 NameWaveform 2Name of the waveform 2.Number of Curves2Waveform 2,accY,gyroY,magnY1,0,0,0STRINGWaveform 3 NameWaveform 3Name of the waveform 3.Number of Curves3Waveform 3,accZ,gyroZ,magnZ1,0,0,0STRINGWaveform 4 NameWaveform 4Name of the waveform 4.Number of Curves4Waveform 4,,,1,0,0,0STRINGWaveform 5 NameWaveform 5Name of the waveform 5.Number of Curves5Waveform 5,,,1,0,0,0STRINGWaveform 6 NameWaveform 6Name of the waveform 6.Number of Curves6Waveform 6,,,1,0,0,0STRINGUnit NameName of graph units.,g,dps,uT1,0,0,0INTZero axis position3Bottom=1,Middle=3,Top=5Horizontal position of zero axis.INTAuto-scale0OFF=0,ON=1Auto-scale of Y axis enabled.STRINGFull Scale1Axis Y full scale. (Format: 2.5 or -1.5:3)Display_Update(%in%);GraphGraph2.2Display3Graph. Displays up to six real-time curves. The X-axis represents time, Y-axis is value.-370-1798040VARIANT%Number of Curves%inInput data to plot (y-axis value). The input data size has to match with number of curves.Demux_Float_1_out3INTData TypeCustomCustom=Custom,Accelerometer=Accelerometer,Gyroscope=Gyroscope,Magnetometer=MagnetometerEnables easy setting of waveform names and units to apropriate values.INTNumber of Curves116Defines number of curves to plot. Value must be from 1 to 6.3,3,3,31,0,0,0STRINGGraph Namegraph3Label of the graph.Graph,Acceleration,Angular##Rate,Magnetic##Field1,0,0,0STRINGWaveform 1 NameWaveform 1Name of the waveform 1.Number of Curves1Waveform 1,accX,gyroX,magnX1,0,0,0STRINGWaveform 2 NameWaveform 2Name of the waveform 2.Number of Curves2Waveform 2,accY,gyroY,magnY1,0,0,0STRINGWaveform 3 NameWaveform 3Name of the waveform 3.Number of Curves3Waveform 3,accZ,gyroZ,magnZ1,0,0,0STRINGWaveform 4 NameWaveform 4Name of the waveform 4.Number of Curves4Waveform 4,,,1,0,0,0STRINGWaveform 5 NameWaveform 5Name of the waveform 5.Number of Curves5Waveform 5,,,1,0,0,0STRINGWaveform 6 NameWaveform 6Name of the waveform 6.Number of Curves6Waveform 6,,,1,0,0,0STRINGUnit NameName of graph units.,g,dps,uT1,0,0,0INTZero axis position3Bottom=1,Middle=3,Top=5Horizontal position of zero axis.INTAuto-scale0OFF=0,ON=1Auto-scale of Y axis enabled.STRINGFull Scale1Axis Y full scale. (Format: 2.5 or -1.5:3)Display_Update(%in%);ValueValue2.2Display1Displays up to eight integer values.568358040VARIANT%Number of Values%inInput data to display. The input data size has to match with number of values.Switch_Float_3_outINTData TypeCustomCustom=Custom,Accelerometer=Accelerometer,Gyroscope=Gyroscope,Magnetometer=Magnetometer,Acc and Gyro=Acc and GyroEnables easy setting of value names and units to apropriate values.INTNumber of Values118Defines number of values to display. Value must be from 1 to 8.8,3,3,3,61,0,0,0,0STRINGWindow Namesensor dataLabel of the values window.Values,Acceleration,Angular##Rate,Magnetic##Field,Accelero##and Gyro1,0,0,0,0STRINGValue 1 NamedataLabel of the value 1.Number of Values1Value 1,accX,gyroX,magnX,accX1,0,0,0,0STRINGValue 2 NameValue 2Label of the value 2.Number of Values2Value 2,accY,gyroY,magnY,accY1,0,0,0,0STRINGValue 3 NameValue 3Label of the value 3.Number of Values3Value 3,accZ,gyroZ,magnZ,accZ1,0,0,0,0STRINGValue 4 NameValue 4Label of the value 4.Number of Values4Value 4,,,,gyroX1,0,0,0,0STRINGValue 5 NameValue 5Label of the value 5.Number of Values5Value 5,,,,gyroY1,0,0,0,0STRINGValue 6 NameValue 6Label of the value 6.Number of Values6Value 6,,,,gyroZ1,0,0,0,0STRINGValue 7 NameValue 7Label of the value 7.Number of Values7Value 7,,,,1,0,0,0,0STRINGValue 8 NameValue 8Label of the value 8.Number of Values8Value 8,,,,1,0,0,0,0STRINGUnit 1 NameUnit of the value 1.Number of Values1,g,dps,uT,g1,0,0,0,0STRINGUnit 2 NameUnit of the value 2.Number of Values2,g,dps,uT,g1,0,0,0,0STRINGUnit 3 NameUnit of the value 3.Number of Values3,g,dps,uT,g1,0,0,0,0STRINGUnit 4 NameUnit of the value 4.Number of Values4,,,,dps1,0,0,0,0STRINGUnit 5 NameUnit of the value 5.Number of Values5,,,,dps1,0,0,0,0STRINGUnit 6 NameUnit of the value 6.Number of Values6,,,,dps1,0,0,0,0STRINGUnit 7 NameUnit of the value 7.Number of Values7,,,,1,0,0,0,0STRINGUnit 8 NameUnit of the value 8.Number of Values8,,,,1,0,0,0,0Display_Update(%in%);