.. _sec-item-sensornode: SensorNode ========== A sensor attached to a \ :ref:`ODE2 `\ or \ :ref:`ODE1 `\ node. The sensor measures OutputVariables and outputs values into a file, showing per line [time, sensorValue[0], sensorValue[1], ...]. Use SensorUserFunction to modify sensor results (e.g., transforming to other coordinates) and writing to file. The item \ **SensorNode**\ with type = 'Node' has the following parameters: * | **name** [type = String, default = '']: | sensor's unique name * | **nodeNumber** [type = NodeIndex, default = invalid (-1)]: | node number to which sensor is attached to * | **writeToFile** [type = Bool, default = True]: | True: write sensor output to file; flag is ignored (interpreted as False), if fileName='' * | **fileName** [type = String, default = '']: | directory and file name for sensor file output; default: empty string generates sensor + sensorNumber + outputVariableType; directory will be created if it does not exist * | **outputVariableType** [type = OutputVariableType, default = OutputVariableType::_None]: | OutputVariableType for sensor * | **storeInternal** [type = Bool, default = False]: | true: store sensor data in memory (faster, but may consume large amounts of memory); false: internal storage not available * | **visualization** [type = VSensorNode]: | parameters for visualization of item The item VSensorNode has the following parameters: * | **show** [type = Bool, default = True]: | set true, if item is shown in visualization and false if it is not shown ---------- .. _description-sensornode: DESCRIPTION of SensorNode ------------------------- Relevant Examples and TestModels with weblink: \ `ANCFALEtest.py `_\ (Examples/), \ `beltDriveALE.py `_\ (Examples/), \ `beltDriveReevingSystem.py `_\ (Examples/), \ `beltDrivesComparison.py `_\ (Examples/), \ `craneReevingSystem.py `_\ (Examples/), \ `flexiblePendulumANCF.py `_\ (Examples/), \ `geneticOptimizationSliderCrank.py `_\ (Examples/), \ `gyroStability.py `_\ (Examples/), \ `HydraulicActuator2Arms.py `_\ (Examples/), \ `HydraulicActuatorStaticInitialization.py `_\ (Examples/), \ `HydraulicsUserFunction.py `_\ (Examples/), \ `kinematicTreeAndMBS.py `_\ (Examples/), \ `ACFtest.py `_\ (TestModels/), \ `ANCFbeltDrive.py `_\ (TestModels/), \ `ANCFgeneralContactCircle.py `_\ (TestModels/) \ **The web version may not be complete. For details, consider also the Exudyn PDF documentation** : `theDoc.pdf `_