# Custom LabJack Analog Input Range in MWorks

**URL:** <https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145>\
**Category:** Support\
**Created:** [September 2, 2026, 5:37pm UTC](https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145 "2026-09-02T17:37:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kanishka\_Mitra](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kanishka\_Mitra](https://mworks.discourse.group/u/Kanishka_Mitra)\
**Post date:** [September 2, 2026, 5:37pm UTC](https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145/1 "2026-09-02T17:37:36Z")

</div>

Hi Chris,

Hope you’re doing well. We’re working on a breathing experiment where we are trying to record thoracic and abdominal respiratory belt signals through a LabJack and log them in MWorks.

The belt interface outputs a very small analog signal, so when using the LabJack directly, we can configure a narrower analog input voltage range / higher gain to make the measurement more sensitive and get better resolution.

The issue we’re running into is that when we use the LabJack through MWorks, it seems like MWorks resets or overrides the LabJack configuration and uses the factory/default analog input settings instead. Because of that, we lose the benefit of using the smaller input range.

Is there a way in MWorks to configure a LabJack analog input with a custom voltage range or gain setting, rather than using the default range? Ideally, we’d like to set the input range to match these small respiratory signals so we can read and log them with better sensitivity and dynamic range.

Could you let us know if this is currently possible, and if so, how we should set it up?

Thanks!

Best,  
Kanishka

---

<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:** [September 3, 2026, 1:49pm UTC](https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145/2 "2026-09-03T13:49:13Z")

</div>

Invited @Amin\_Fakharian on September 3, 2026, 1:49pm UTC



---

<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:** [September 3, 2026, 1:49pm UTC](https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145/3 "2026-09-03T13:49:14Z")

</div>

Forwarded the above email



---

<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:** [September 3, 2026, 1:52pm UTC](https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145/4 "2026-09-03T13:52:03Z")

</div>

Made this topic public on September 3, 2026, 1:52pm UTC



---

<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:** [September 3, 2026, 2:03pm UTC](https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145/5 "2026-09-03T14:03:06Z")

</div>

Hi Kanishka,

> Is there a way in MWorks to configure a LabJack analog input with a custom voltage range or gain setting, rather than using the default range?

This is not possible at present, but we could add support for it. I would probably add `range_min` and `range_max` parameters to [labjack\_ljm\_analog\_input](https://mworks.github.io/documentation/latest/components/labjack_ljm_analog_input_channel.html). MWorks would then choose the smallest device-supported input range that encompasses the requested limits. Does that sound like it would work for you?

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![Kanishka\_Mitra](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kanishka\_Mitra](https://mworks.discourse.group/u/Kanishka_Mitra)\
**Post date:** [September 3, 2026, 2:36pm UTC](https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145/6 "2026-09-03T14:36:12Z")

</div>

Hi Chris,

That would be perfect. One thing we would need, though, is the ability to set the range independently for each analog input channel.  
For example, some channels in our setup would still need the standard -10 to +10 V range, while the respiratory belt channels would need a much smaller range, around ±0.01 V.  
So as long as range\_min and range\_max are parameters that can be specified separately for each labjack\_ljm\_analog\_inputchannel, that would work really well for us.  
Thanks!  
Best,  
Kanishka

---

<div class="post-metadata">

**Author:** ![Kanishka\_Mitra](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kanishka\_Mitra](https://mworks.discourse.group/u/Kanishka_Mitra)\
**Post date:** [September 9, 2026, 2:15pm UTC](https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145/7 "2026-09-09T14:15:37Z")

</div>

Hi Chris,

Just wanted to follow up on this when you have a chance. Being able to set range\_min and range\_max independently for each labjack\_ljm\_analog\_inputchannel channel would work perfectly for our setup.

Please let me know if you think this would be feasible to add, or if there’s anything else you need from us.

Thanks again!

Best,  
Kanishka

---

<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:** [September 9, 2026, 4:00pm UTC](https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145/8 "2026-09-09T16:00:55Z")

</div>

Hi Kanishka,

Sorry for not responding sooner. Yes, this should be no problem. I’ll try to get it done in the next couple of weeks.

Thanks,  
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:** [September 30, 2026, 12:28pm UTC](https://mworks.discourse.group/t/custom-labjack-analog-input-range-in-mworks/1145/9 "2026-09-30T12:28:26Z")

</div>

Hi Kanishka,

Support for the `range_min`/`range_max` parameters on LabJack analog input channels is now in the [MWorks nightly build](https://mworks.github.io/downloads/). If both parameters are specified, the channel will use the narrowest supported analog-input range that includes the provided limits. Otherwise, the default analog-input range will be used.

When you have a chance, please try this out, and let me know if it does what you need.

Thanks,  
Chris
