Download Industrial Embedded Systems

Transcript
Technology Focus: Software ideas
Applying modern UI technology to
safety-critical systems
A strong candidate
Adobe Flash offers many benefits: It is platform independent (that is, it runs the same
across many Operating Systems or OSs), it
supports fast prototyping and iterative UI
development, and it has become the lingua
franca of UI and graphics designers. These
qualities make Flash a strong candidate for
safety-critical UIs. To understand this point,
consider some of the UI design guidelines
published by the FDA[2]:
Pr
in
tO
nl
y
By Bill Graham
Adobe Flash started life on the desktop and
the Internet. Originally a Web animation technology, it has grown into a compelling tool
for designing and implementing UIs such as
the QNX-based digital instrument cluster for
in-vehicle electronics (pictured on this page).
Moreover, developers can use Adobe Flash
Lite, which has been optimized for resourceconstrained environments, to implement
Flash-based UIs in their embedded systems. Already, manufacturers have deployed
Adobe Flash Lite in more than 800 million
devices.
SIi
ng
le
The User Interface (UI) can make all the difference between a product
that works and a product that doesn’t – and the results of not working
can be disastrous. More robust, better tested, and more uniform
interfaces are needed. One way to help achieve UI reliability is to
eliminate the error-prone process of translating UIs designed with highlevel tools into conventional graphics technology. Rather than use two
or more technologies to design, prototype, and deploy UIs, teams can
work with one common technology: Adobe Flash.
Between 1985 and 1987, three people died and three others
fell seriously ill from radiation overdoses caused by user error
and software malfunction in a radiation therapy machine, the
Therac-25. An oft-quoted example of poor all-round design, the
Therac-25 incident also highlights how the UI plays a major
role in the success or failure of safety-critical systems.
For example, if a serious error occurred, the machine’s UI would
display “MALFUNCTION,” followed by a numeric code from 1
to 64. Neither the UI, the device, nor the user manual explained
what the various codes indicated. Moreover, the operator could
override an error condition by simply pressing “P” on the keyboard. By allowing operators to bypass critical warnings, the UI
contributed to the radiation overdoses. It also required tedious,
repetitive user entries and contained bugs that led to erroneous
entries[1].
Discussions of safety-critical design often focus on hard realtime control software. But, as the Therac-25 story demonstrates,
the operator and the UI contribute just as much to system safety.
Paradoxically, a technology that can help developers build better
safety-critical UIs comes not from the world of real-time embedded systems, but from the world of consumer-grade computers
and mobile devices.
Keep the UI consistent with user expectations.
Consider the user’s experience with similar
devices and well-established conventions.
Keep the display well-organized and uncluttered.
Ensure that the user can see and hear signals.
Consider the ambient lighting and noise.
Keep labels, displays, controls, and acronyms
consistent with the user manual and established
conventions (for instance, PWR for Power).
Arrange controls to prevent inadvertent activation.
Use color and shape coding to convey information
quickly, but ensure the coding follows universal
conventions (for instance, most systems use red to
indicate errors, so don’t display alarms in blue).
Provide feedback to user input.
Correctly indicate resets, failures, or default values.
Relieve the operator of complex processes or
mental calculations.
Don’t use software when a simple hardware solution would suffice.
Consider using dedicated displays to present critical
information; don’t display other data in these areas.
Adobe Flash addresses many of these requirements. For
instance, consider the need to build a UI consistent with user
expectations and well-established conventions. Flash-based UIs
are, by nature, consistent across platforms, even when scaled
to different screen sizes. Moreover, Flash allows developers to
create highly interactive UIs that use the same familiar UI conventions found in consumer software applications for desktop
environments.
Industrial Embedded Systems
2009 Resource Guide / 21