# Resting device outputs upon experiment stop

**URL:** <https://mworks.discourse.group/t/resting-device-outputs-upon-experiment-stop/295>\
**Category:** Support\
**Created:** [October 2, 2018, 7:31pm UTC](https://mworks.discourse.group/t/resting-device-outputs-upon-experiment-stop/295 "2018-10-02T19:31:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 2, 2018, 7:31pm UTC](https://mworks.discourse.group/t/resting-device-outputs-upon-experiment-stop/295/1 "2018-10-02T19:31:16Z")

</div>

Hello Chris,  
There is something I have noticed; if Mworks is stopped when it’s in the middle of producing an output via a device like the NIDAQ (such as pulsing a digital output), the output remains on. Is it possible to have the option to stop all device outputs when the experiment is stopped?  
Cheers,  
Beshoy

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 5, 2018, 2:07pm UTC](https://mworks.discourse.group/t/resting-device-outputs-upon-experiment-stop/295/2 "2018-10-05T14:07:51Z")

</div>

Hi Beshoy,

> Is it possible to have the option to stop all device outputs when the experiment is stopped?

Some device types (e.g. [Firmata](https://mworks.github.io/documentation/latest/components/firmata_device.html)) already do this. I thought NIDAQ devices did, too, but a quick test reveals I was mistaken.

Sure, I can make this change.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 7, 2018, 3:36pm UTC](https://mworks.discourse.group/t/resting-device-outputs-upon-experiment-stop/295/3 "2018-10-07T15:36:46Z")

</div>

Hi Chris,

Brilliant, thanks for handling this. When can I expect it in the nightly build?  
Cheers,  
Beshoy

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 15, 2018, 2:25pm UTC](https://mworks.discourse.group/t/resting-device-outputs-upon-experiment-stop/295/4 "2018-10-15T14:25:37Z")

</div>

Hi Beshoy,

As of tonight’s nightly build, MWorks will zero out digital output lines and non-waveform analog output channels when the device stops.

I’m not yet sure how (or if) we can do this for waveform analog outputs, but I will try to address that when I add support for [runtime parameter changes](https://mworks.tenderapp.com/discussions/questions/909) to those channels.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 16, 2018, 9:02am UTC](https://mworks.discourse.group/t/resting-device-outputs-upon-experiment-stop/295/5 "2018-10-16T09:02:27Z")

</div>

Hi Chris,

Thanks for the addition; I am preparing for SFN nowadays, but i will try to test it out. Yes, please let me know if/when the waveform functions are modified; they will be very helpful.

Cheers,  
Beshoy

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [July 19, 2022, 9:39pm UTC](https://mworks.discourse.group/t/resting-device-outputs-upon-experiment-stop/295/6 "2022-07-19T21:39:56Z")

</div>

Closed on July 19, 2022, 9:39pm UTC


