# Define number of section for a voltage divider

**URL:** <https://forum.plexim.com/t/define-number-of-section-for-a-voltage-divider/1178>\
**Category:** PLECS\
**Tags:** subsystem, library, editmask\
**Created:** [November 14, 2022, 10:52am UTC](https://forum.plexim.com/t/define-number-of-section-for-a-voltage-divider/1178 "2022-11-14T10:52:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karakaslivefa](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@karakaslivefa](https://forum.plexim.com/u/karakaslivefa)\
**Post date:** [November 14, 2022, 10:52am UTC](https://forum.plexim.com/t/define-number-of-section-for-a-voltage-divider/1178/1 "2022-11-14T10:52:27Z")

</div>

Hi,

I would like to create a voltage divider and add the voltage divider to the user library. I want to create a mask for the voltage divider which asks how many resistors will be used on the high side of the voltage divider.

For example, the number of pi sections in “Pi-Section Line” (it is a component in Plecs) is variable and users can assign section numbers. I would like to have the same for a voltage divider.

If someone can help me I really appreciate it. Thanks.

Vefa

---

<div class="post-metadata">

**Author:** ![Kris\_Eberle](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/kris_eberle/32/6_2.png) [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)\
**Post date:** [November 18, 2022, 10:30am UTC](https://forum.plexim.com/t/define-number-of-section-for-a-voltage-divider/1178/2 "2022-11-18T10:30:07Z")

</div>

Hi Vefa,

This is all documented in the PLECS User Manual (sections on “Masking Subsystems” and “Libraries”). Additionally, you can find tutorials on our website on this topic (#108 and #109 - [https://www.plexim.com/support/tutorials](https://www.plexim.com/support/tutorials)). I hope this helps, but if you have a specific question feel free to post it here.

Thanks,

Kris
