Skip to content

add a chiller_cycle tool

Zhicai Zhang requested to merge zhicaiz/labRemote:zz_chillerRC211C0 into devel

Add a chiller_cycle tool, which is based on the chiller tool. This tool will continuous monitor the status of the chiller (target temp, measured temp, ramp rate) to be parsed in other programs. In addition, this tool can do thermal cycle with the chiller with input of low and high temp, up and down ramp rate, and number of cycles, etc.

This tool will be needed for the chiller control GUI for strips powerboard and module tests.

Example config file to make this tool to work:

{
    "version": "1.0",
    "options" : {
    },
    "devices": [
        {
            "name": "CH1",
            "hw-type": "Chiller",
            "hw-model": "SPSRC211",
            "communication": {
                "protocol" : "TextSerialCom",
                "port" : "/dev/ttyUSB1",
                "baudrate" : "B9600",
                "parityBit":  false,
                "twoStopBits":  false,
                "flowControl":  false,
                "charsize":  "CS8",
                "termination" : "\r"
            }
        }
    ],
    "datasinks": [
        {
            "name": "Console",
            "sinktype": "ConsoleSink"
        },
        {
            "name": "db",
            "sinktype": "InfluxDBSink",
            "host": "128.3.50.38",
            "port": 8086,
            "database": "pbv3",
            "username": "strips_powerboard_rw",
            "password": "your_password_here"
        }
    ],
    "datastreams": [
        {
            "name": "Climate",
            "sinks": [
                "Console",
                "db"
            ]
        }
    ],
    "streamChannels": [
        {
            "name": "Climate",
            "DB_MeasurementName": "rack0_crate1_env",
            "DB_ChannelName": "ChillerTemp"
        }
    ]
}

And to run the tool, one can do something like this:

../build/bin/chiller_cycle -e chiller_config.json -n CH1 -s Climate meas-temp
Edited by Zhicai Zhang

Merge request reports

Loading