SensorNode

A sensor attached to a ODE2 or 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 of SensorNode

Relevant Examples and TestModels with weblink:

The web version may not be complete. For details, consider also the Exudyn PDF documentation : theDoc.pdf