# Where is the SerialDisplayDriver example?

**URL:** <https://forum.inductiveautomation.com/t/where-is-the-serialdisplaydriver-example/4960>\
**Category:** Module Development\
**Created:** [August 8, 2012, 3:30pm UTC](https://forum.inductiveautomation.com/t/where-is-the-serialdisplaydriver-example/4960 "2012-08-08T15:30:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![systemparadox](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@systemparadox](https://forum.inductiveautomation.com/u/systemparadox)\
**Post date:** [August 8, 2012, 3:30pm UTC](https://forum.inductiveautomation.com/t/where-is-the-serialdisplaydriver-example/4960/1 "2012-08-08T15:30:01Z")

</div>

These two topics talk about an example SerialDisplayDriver module:

[viewtopic.php?f=74&t=6762&p=19490&hilit=serial#p19490](http://www.inductiveautomation.com/forum/viewtopic.php?f=74&t=6762&p=19490&hilit=serial#p19490)  
[viewtopic.php?f=74&t=6760&p=19488&hilit=serial#p19488](http://www.inductiveautomation.com/forum/viewtopic.php?f=74&t=6760&p=19488&hilit=serial#p19488)

Has this example been removed? I cannot find it anywhere. Should I be using the Python system.serial API instead?

Thanks.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 8, 2012, 3:36pm UTC](https://forum.inductiveautomation.com/t/where-is-the-serialdisplaydriver-example/4960/2 "2012-08-08T15:36:04Z")

</div>

It was a terrible example project. It didn’t have anything to do with our serial support stuff; it was just an example of how a module was structured.

It was meant to talk to some dinky old serial LED display device we had laying around the office, so nobody could actually _do_ anything with the example.

Now that there are other example projects it has been removed.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 8, 2012, 3:37pm UTC](https://forum.inductiveautomation.com/t/where-is-the-serialdisplaydriver-example/4960/3 "2012-08-08T15:37:37Z")

</div>

Do you need access to serial ports from your module?

---

<div class="post-metadata">

**Author:** ![systemparadox](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@systemparadox](https://forum.inductiveautomation.com/u/systemparadox)\
**Post date:** [August 9, 2012, 7:35am UTC](https://forum.inductiveautomation.com/t/where-is-the-serialdisplaydriver-example/4960/4 "2012-08-09T07:35:00Z")

</div>

Yes. Is serial access available to modules? I haven’t seen anything in the API.

Thanks.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 9, 2012, 3:21pm UTC](https://forum.inductiveautomation.com/t/where-is-the-serialdisplaydriver-example/4960/5 "2012-08-09T15:21:42Z")

</div>

Serial support is new and is not directly a part of the API. It’s present when the serial-support modules are present.

In the gateway scope they use a (yet to be documented) mechanism to load the API jars in a ClassLoader high enough up in the hierarchy that all modules can resolve it. It also takes care of loading the proper native library.

In client/designer scope there is no hierarchy so no special mechanism is needed, it just gets loaded up and other client/designer scope code can access it.

Send me an email ([kevin@inductiveautomation.com](mailto:kevin@inductiveautomation.com)) and I’ll send you the API jar and javadocs for the serial library that gets added. Add these to your project as a compile-time reference; you do not need to include them when building your module. On setup() of your module’s hook you can ask whatever context you’re given if the serial support modules are present. If they are; carry on about your business as if the classes provided by the serial API are loaded. If not, don’t try to load them (or be ready to catch the exceptions such a thing generates…)
