From 29b84f761bd3e45cfaf04fcfb9752bca994c08c7 Mon Sep 17 00:00:00 2001 From: Wouter Horlings Date: Tue, 28 Nov 2017 14:07:12 +0100 Subject: [PATCH] added reset function --- OOequipment/Equipment.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OOequipment/Equipment.m b/OOequipment/Equipment.m index bdeafb7..649294c 100644 --- a/OOequipment/Equipment.m +++ b/OOequipment/Equipment.m @@ -38,6 +38,11 @@ classdef Equipment < handle ecq.write_unsafe('*cls'); end + function reset(ecq) + %RESET Sends reset command to device via '*RST'. + ecq.write_unsafe('*rst'); + end + function opc(ecq) %OPC executes 'operation complete query' to device. %Function holds untill device returns '1'. Must be