0
Answered

Pulse time

Alexandre Jacob - Home heaven 8 years ago in Products / AV & Custom Systems updated by Ekaterina (head of support) 8 years ago 1

Hi everybody,

Hope everything is good for all of you.

Actuallu I'm stuck on a small problem. I create a new driver for a webcam (http driver) which has output relay. I can change the state of this relay with one button low and one high. But I need to do just a pulse with one button (2sec).

So it's the same URI : /IO/outputs/1/trigger but the data box is different : '<outputState>high</outputState>'

'<outputState>low</outputState>'


Do you have a idea? I'm not very strong in script create but I think it's a good solution because after that I will need the feedback of the item :


http://172.27.175.57/IO/outputs/1/status

<?xml

version="1.0" encoding="UTF-8" ?>

- <IOPortStatus version="1.0" xmlns="http://www.hikvision.com/ver10/XMLSchema">
<ioPortID>1</ioPortID>
<ioPortType>output</ioPortType>
<ioState>inactive</ioState>
</IOPortStatus>


Thanks in advance

Best regards



Answered

Hello Alexander


You can add the delay between this commands with Macros editor: