aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs')
-rw-r--r--Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
index 332a2696c..ac264a8a4 100644
--- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
+++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs
@@ -1187,6 +1187,37 @@ namespace Tango.Integration.Operation
}
/// <summary>
+ /// Sets the state of the specified heater type.
+ /// </summary>
+ /// <param name="heater">The heater.</param>
+ /// <param name="setPoint">Set point temperature.</param>
+ /// <returns></returns>
+ public async Task<SetHeaterStateResponse> SetHeaterState(HeaterType heater, double setPoint)
+ {
+ SetHeaterStateResponse response = null;
+ SetHeaterStateRequest request = new SetHeaterStateRequest()
+ {
+ HeaterType = heater,
+ SetPoint = setPoint,
+ IsActive = true,
+ };
+
+ try
+ {
+ LogRequestSent(request);
+ response = await SendRequest<SetHeaterStateRequest, SetHeaterStateResponse>(request);
+ LogResponseReceived(response);
+ }
+ catch (Exception ex)
+ {
+ LogRequestFailed(request, ex);
+ throw ex;
+ }
+
+ return response;
+ }
+
+ /// <summary>
/// Resolves the specified event type.
/// </summary>
/// <param name="eventType">Type of the event.</param>