
32
Persistent data storage (PDS)
2 Application Programming Interface (API)
PHD API Reference
pds.response
Event
pds.response
Event Data
Keys
Values
Description
command
"string"
The command this response is meant for. This tells you
if the response is the result of a save or restore
command.
key
"string"
The key that is being returned
value
value
The restored value as read from PDS.
Direction
input
Channel
pds
Notes
Received by the application in response to a pds.command "restore" command.
The example below assumes the Storyboard application is set up to call Lua function
pds_response
when the
pds.response
event occurs. Event data is available through
the
mapargs
argument. The example demonstrates the result of restoring a PDS key
of "backlight".
Lua Example
function
pds_response
(
mapargs
)
local
ev
=
mapargs
.context_event_data
local
data
= {}
if
(
ev
["
key
"] ~=
nil and
ev
["
value
"] ~=
nil
)
then
if
(
ev
["
key
"] == "
backlight
")
then
("
Received backlight value of
"..
tostring
(
ev
["
value
"]))
g_backlight
=
ev
["
value
"]
end
end
gre.
set_data(
data
)
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...