
14
System hardware interface channel events
2 Application Programming Interface (API)
PHD API Reference
nxs.din
Event
nxs.din
Event Data
Keys
Values
Description
GPIOx
<0..10>
Digital input GPIOx, where x is a number from 0 to 10
representing the digital input number. Key names are
GPIO0 through GPIO10 for platforms with 11 digital
inputs. Not all GPIOs may be present or enabled on all
platforms.
Direction
input
Channel
nxs
Notes
Received by the application when initially subscribed to, and whenever the DIN
states change.
The example below assumes the Storyboard application is set up to call Lua function
din_receive
when the
nxs.din
event occurs. Event data is available through the
mapargs
argument.
Lua Example
function
din_receive
(
mapargs
)
local
ev
=
mapargs
.context_event_data
local
gpio1
=
ev
["
GPIO1
"]
("
Received DIN update:
"..
GPIO1
)
end
-- Values GPIO2 through GPIO10 left out as an exercise
end
Summary of Contents for PHD28
Page 1: ...Parker Hannifin Display PHD User Guide UG PHD 1040001 201707 010...
Page 52: ...44 PHD Mounting the PHD 9 1 2 PHD50 Figure 18 PHD50 dimensions mm...
Page 53: ...User Guide 45 Mounting the PHD 9 1 3 PHD70 Figure 19 PHD70 dimensions mm...
Page 58: ...Parker Hannifin Display PHD User Guide HY33 5021 IB US...
Page 59: ...PHD Network Interface Configuration Publ no HY33 5021 M1 UK Edition 2017 02 02...
Page 75: ...PHD API Reference Publ no HY33 5021 M2 UK Edition 2017 02 13...