Skip to content

Node Reference

standardconf

This node is a trigger node, starting the flow. Contents of this node are not used as of this moment.

Configuration

Field Name Type Description
Experiment Name Not used Experiment Name
Allow experiment to run with same name Not used If true, allow appending data to an existing experiment with same name
O2 Control Not used If true, O2 controlling features will be enabled

Inputs

None

Outputs

Object Name type Description
msg Object msg object
msg.culnet.expName String Not used Experiment Name
msg.culnet.experimentAllowOverride bool Not used If true, allow appending data to an existing experiment with same name
msg.culnet.o2Control bool Not used If true, O2 controlling features will be enabled

modbus

This node reads holding registers a device via a serial port using the Modbus protocol. Contents of the output will only contain the data portion of the return by the device.

Configuration

Field Name Type Description
Port File name of serial port
Device ID int ID of Modbus device
Baud Rate Baud rate used by the Modbus device
Register int Register to read from
Read Length int Length to read from register
Stop Bits Stop bits used by the Modbus device
Parity Parity used by the Modbus device

Inputs

Object Name type Description
msg object Only required to trigger the node

Outputs

Object Name type Description
msg Object msg object
msg.payload Buffer Contains data portion of output from the Modbus device

Example Output

Setup

This example is configured to read DO readings from a Hamilton DO Arc sensor.

Field Name Value
Port /dev/ttyUSB0
Device ID 1
Baud Rate 19200
Register 2089
Read Length 10
Stop Bits 2
Parity none

Return Value

The full value returned from the DO sensor is 010314001000007BC41A80000000000000000CF8D427BC030, however the payload will only include the data portion

Object Value
msg.payload 001000007BC41A80000000000000000CF8D427B

hamilton

This node will decode readings from Hamilton DO Arc sensors. Must be used with the modbus node.

Configuration

Field Name Type Description
Sensor Name String Name of the sensor
Sensor Input Type String Type of sensor. Options are: DO, pH , Temp

Inputs

Object Name type Description
msg.payload Buffer Contains data portion of output from the Modbus device

Outputs

Object Name type Description
msg Object msg object
msg.sensors.[Sensor Name].type String Type of sensor
msg.sensors.[Sensor Name].val String Value of reading by sensor

gpiofeedback

When predetermined threshold values are met, this node will send a message on the GPIO Activate and GPIO Deactivate output after a delay.

Configuration

Field Name Type Description
Sensor Type String Type of sensor to respond to. Options are: DO, pH , Temp
Activate When Select at which condition to activate
Activation Threshold int Threshold value
Activation Timeout int Timeout for activation

Inputs

Object Name type Description
msg.sensors.[Sensor Name].type String Type of sensor
msg.sensors.[Sensor Name].val String Value of reading by sensor

Outputs

Object Name type Output Description
msg Object next node msg object
msg.payload String GPIO Activate Sends 1 when activated. Sends "" otherwise
msg.payload String GPIO Deactivate Sends 0 when activated. Sends "" otherwise

database

This node will take all sensor readings from msg.sensors and store values to a MongoDB database

Configuration

Field Name Type Description
MongoDB URI String MongoDB URI with credentials
Database String Database to use
Experiment Name (Collection) String Experiment Name

Inputs

Object Name type Description
msg.sensors Object Sensor readings

Outputs

None