druck_bar

Purpose:

Monitor a Druck RPT301 transducer by initializing tasks, handling events, and updating a shared variable with measurements.

Enter:

druck_bar <device_name> <real_variable_label>

Where:

device_name

Specify the base filename of a configuration file in the /specs directory with the ‘.cfg’ extension, defining serial communications and device responses. NOTE: do not include the ‘.cfg’ extender in the device name.

real_variable_label

Specify the variable where the measurement results will be stored.

Example:

druck_bar druck barometer &
The above command launches the druck_bar task, configures the RPT301 to transmit measurements every second and places the results into the ‘barometer’ variable.

Notes:

This process performs units conversion based on the units description string included in the transmission from the RPT301.

The expected message string from the RPT301 will look like this:

“998.12 mbar”

See Also:

See cyflex/specs.def/druck.cfg for a RPT301 device configuration file.