Josh
Sorry my last script was:
My last script:
function Airpuf
sma = NewStateMachine;
sma = AddState(sma, 'Name', 'Openvalve', ...
'Timer', 0.1,...
'StateChangeConditions', {'BNC1High', Closevalve},...
'OutputActions', {'Valve2', 1});
sma = AddState(sma, 'Name', 'Closevalve', ...
'Timer', 1,...
'StateChangeConditions', {'BNC1High', 'exit'},...
'OutputActions', {'Valve2', 0});
SendStateMatrix(sma);
RawEvents = RunStateMatrix;
end
for first state which command I have to replace with {'Valve 2',1}? Previously (in post 6) you told me In the OutputActions section, add:
{'Valve2', 1} to open valve 2
Best Regards