File MIES_Publish.ipf

Functions

static variable PUB_GetJSONTemplate(string device, variable headstage)

Get a template for publishing messages.

Publishers in MIES should in general supply additional information like device/sweep number/timestamp. This function allows to autofill these entries.

static variable PUB_Publish(variable jsonID, string messageFilter)

Publish the given message as given by the JSON and the filter.

static variable PUB_AddLabnotebookEntriesToJSON(variable jsonID, wave values, wave keys, variable sweepNo, string key, variable headstage, variable labnotebookLayer)
variable PUB_AutoBridgeBalance(string device, variable headstage, variable resistance)

Filter: AMPLIFIER_AUTO_BRIDGE_BALANCE

Example:

{
  "bridge balance resistance": {
    "unit": "Ohm",
    "value": 4711
  },
  "device": "my_device",
  "headstage": 0,
  "sweep number": "NaN",
  "timestamp": "2022-05-13T18:56:39Z"
}

variable PUB_PipetteInBath(string device, variable sweepNo, variable headstage)

Published message in POST_SET_EVENT for the analysis function PSQ_PipetteInBath()

Keys under /results are labnotebook keys. The arrays under /results/XXX/values are the values for each sweep in the stimset cycle. This array has currently always one entry as PSQ_PB_NUM_SWEEPS_PASS is one. The encoding is UTF-8.

Example:

{
 "device": "my_device",
 "headstage": 0,
 "results": {
   "USER_Pipette in Bath Chk0 Leak Current BL": {
     "unit": "Amperes",
     "value": [
       123.0
     ]
   },
   "USER_Pipette in Bath Chk0 Leak Current BL QC": {
     "unit": "On/Off",
     "value": [
       0.0
     ]
   },
   "USER_Pipette in Bath Set QC": {
     "unit": "On/Off",
     "value": [
       1.0
     ]
   },
   "USER_Pipette in Bath pipette resistance": {
     "unit": "Ω",
     "value": [
       456.0
     ]
   },
   "USER_Pipette in Bath pipette resistance QC": {
     "unit": "On/Off",
     "value": [
       1.0
     ]
   }
 },
 "sweep number": "NaN",
 "timestamp": "2022-02-10T20:48:22Z"
}

variable PUB_SealEvaluation(string device, variable sweepNo, variable headstage)

Published message in POST_SET_EVENT for the analysis function PSQ_SealEvaluation()

Keys under /results are labnotebook keys. The arrays under /results/XXX/values are the values for each sweep in the stimset cycle. This array has currently always one entry as PSQ_SE_NUM_SWEEPS_PASS is one. The encoding is UTF-8.

Example:

{
  "device": "my_device",
  "headstage": 0,
  "results": {
    "USER_Seal evaluation Set QC": {
    "unit": "On/Off",
    "value": [
     1.0
      ]
     },
     "USER_Seal evaluation seal resistance max": {
       "unit": "Ω",
       "value": [
         123.0
       ]
     }
  },
  "sweep number": "NaN",
  "timestamp": "2022-02-22T12:27:07Z"
}

variable PUB_TrueRestingMembranePotential(string device, variable sweepNo, variable headstage)

Published message in POST_SET_EVENT for the analysis function PSQ_TrueRestingMembranePotential()

Keys under /results are labnotebook keys. The arrays under /results/XXX/values are the values for each sweep in the stimset cycle. This array has currently always one entry as PSQ_VM_NUM_SWEEPS_PASS is one. The encoding is UTF-8.

Example:

{
  "device": "my_device",
  "headstage": 0,
  "results": {
    "USER_True Rest Memb. Full Average": {
      "unit": "Volt",
      "value": [
        123.0
      ]
    },
    "USER_True Rest Memb. Set QC": {
      "unit": "On/Off",
      "value": [
        1.0
      ]
    }
  },
  "sweep number": "NaN",
  "timestamp": "2022-04-27T16:52:28Z"
}

variable PUB_ClampModeChange(string device, variable headstage, variable oldClampMode, variable newClampMode)

Filter: AMPLIFIER_CLAMP_MODE_FILTER

Example:

{
  "clamp mode": {
    "new": "V_CLAMP_MODE",
    "old": "I_CLAMP_MODE"
  },
  "device": "my_device",
  "headstage": 0,
  "sweep number": "NaN",
  "timestamp": "2022-05-13T18:54:39Z"
}

variable PUB_PressureMethodChange(string device, variable headstage, variable oldMethod, variable newMethod)

Filter: PRESSURE_STATE_FILTER

Example:

{
  "device": "my_device",
  "headstage": 0,
  "pressure method": {
    "new": "Approach",
    "old": "Atmosphere"
  },
  "sweep number": "NaN",
  "timestamp": "2022-05-13T18:45:38Z"
}

variable PUB_PressureSealedState(string device, variable headstage)

Filter: PRESSURE_SEALED_FILTER

Example:

{
  "device": "my_device",
  "headstage": 0,
  "sealed": true,
  "sweep number": "NaN",
  "timestamp": "2022-05-13T18:52:14Z"
}

variable PUB_PressureBreakin(string device, variable headstage)

Filter: PRESSURE_BREAKIN_FILTER

Example:

{
  "break in": true,
  "device": "my_device",
  "headstage": 0,
  "sweep number": "NaN",
  "timestamp": "2022-05-13T18:58:04Z"
}

variable PUB_AutoTPResult(string device, variable headstage, variable result)

Filter: AUTO_TP_FILTER

Example:

{
  "device": "my_device",
  "headstage": 0,
  "results": {
    "QC": true,
    "amplitude IC": {
      "unit": "pA",
      "value": 456
    },
    "amplitude VC": {
      "unit": "mV",
      "value": 789
    },
    "baseline": {
      "unit": "%",
      "value": 123
    },
    "delta V": {
      "unit": "mV",
      "value": 0.5
    }
  },
  "sweep number": "NaN",
  "timestamp": "2022-05-13T18:59:44Z"
}

variable PUB_DAQStateChange(string device, variable mode, variable oldState, variable newState)

Filter: DAQ_TP_STATE_CHANGE_FILTER

DAQ:

{
  "daq": "starting",
  "device": "my_device",
  "headstage": "NaN",
  "sweep number": "NaN",
  "timestamp": "2022-05-16T17:12:24Z",
  "tp": null
}

TP:

{
  "daq": null,
  "device": "my_device",
  "headstage": "NaN",
  "sweep number": "NaN",
  "timestamp": "2022-05-16T17:12:29Z",
  "tp": "stopping"
}

The strings for daq/tp are either starting or stopping.

variable PUB_AccessResistanceSmoke(string device, variable sweepNo, variable headstage)

Published message in POST_SET_EVENT for the analysis function PSQ_AccessResistanceSmoke()

Keys under /results are labnotebook keys. The arrays under /results/XXX/values are the values for each sweep in the stimset cycle. This array has currently always one entry as PSQ_AR_NUM_SWEEPS_PASS is one. The encoding is UTF-8.

Example:

{
  "device": "my_device",
  "headstage": 0,
  "results": {
    "USER_Access Res. Smoke Set QC": {
      "unit": "On/Off",
      "value": [
        1.0
      ]
    },
    "USER_Access Res. Smoke access resistance": {
      "unit": "Ω",
      "value": [
        123.0
      ]
    },
    "USER_Access Res. Smoke access resistance QC": {
      "unit": "On/Off",
      "value": [
        0.0
      ]
    },
    "USER_Access Res. Smoke access vs steady state ratio": {
      "unit": "",
      "value": [
        0.5
      ]
    },
    "USER_Access Res. Smoke access vs steady state ratio QC": {
      "unit": "On/Off",
      "value": [
        1.0
      ]
    }
  },
  "sweep number": "NaN",
  "timestamp": "2022-05-07T13:59:39Z"
}