AutomationView Documentation

STRING_TO_REAL (String to Real)

Parses a numeric string (STRING) and writes the resulting floating-point value to the target REAL variable.


Description

STRING_TO_REAL converts a decimal string in src (IN, for example "12.5") into a REAL floating-point value and stores it in the target variable.


Syntax

Sequence Visual Editor

  1. Select an action on a step or transition and hold Alt (or right-click -> Edit Qualifier & Instruction).
  2. Select Conversions -> STRING_TO_REAL and choose the P qualifier.
  3. Fill in the target REAL variable and the source STRING operand (IN).

Python

from automation_machine import ActionQualifier, ActionInstruction

step.add_action("setpoint_bar", "Parse pressure setpoint", qualifier=ActionQualifier.P, instruction=ActionInstruction.STRING_TO_REAL, src="recipe_pressure_str")

See Also