Files
JIMRI/help/en/package/jmri/jmrix/jinput/treemodel/TreeFrame.shtml
T
2026-06-17 14:00:51 +02:00

55 lines
2.8 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta name="generator" content="HTML Tidy for HTML5 for Apple macOS version 5.8.0">
<!-- Copyright Bob Jacobsen 2008 -->
<title>JMRI: USB Input Control</title><!--#include virtual="/help/en/parts/Style.shtml" -->
</head>
<body>
<!--#include virtual="/help/en/parts/Header.shtml" -->
<div id="mBody">
<div id="mainContent" class="no-sidebar">
<h2>JMRI: USB Input Control</h2>
<strong>Note: This feature relies on a library from outside JMRI that is no
longer being maintained.
It is known to not work on Apple Silicon Macs.
It <u>will</u> stop working on other computer types at some point in the future.
</strong>
<p>
<a href="TreeFrame.jpg"><img src="TreeFrame.jpg" class="floatRight" height="132" width="325"
alt="usb info"></a> The USB Input Control window lets you connect JMRI sensors and memories
to USB input devices on your computer. For example, you could have a JMRI sensor go ACTIVE
when when you type a key or press a joystick button. You can then use <a href=
"../../../../../html/tools/Routes.shtml">Routes</a> and <a href=
"../../../../../html/tools/Logix.shtml">Logix</a> to use that USB input to control your
layout.
<p>On the left side of the window is a tree displaying the available USB controllers and
components within them. Depending on details of your computer, this tree might be completely
populated when the window opens, or you might have to change the inputs (e.g. click a button)
to have it show up. Devices that are plugged in after the program starts may or may not
appear, depending on the specifics of your computer setup.</p>
<p>When you select a single component in the left-hand tree display, the right side pane will
show you the details of that component and it's current value.</p>
<p>Below that is an area for configuring the program to drive a JMRI <a href=
"../../../../../html/tools/Sensors.shtml">Sensor</a> and/or <a href=
"../../../../../html/tools/Memories.shtml">Memory</a> from the USB input. You can enter a
Sensor name in the top text field, and then check the "Copy to JMRI Sensor" box. When the
input goes On (for a digital input), or has a value greater than zero (for an analog input),
the Sensor will be set to ACTIVE, and it will otherwise be set to INACTIVE. You can watch
this work in the <a href="../../../jmrit/beantable/SensorTable.shtml">Sensor Table</a>.</p>
<p>Note that you can't edit the sensor name while the box is checked; you have to uncheck the
box so the Sensor stops following the USB input before changing to a new Sensor Name.</p>
<!--#include virtual="/help/en/parts/Footer.shtml" -->
</div>
</div>
<!-- close #mBody -->
<script src="/js/help.js"></script>
</body>
</html>