retreive pic files from a computer
If I wanted to retireve pic files to display on my touch panel and these pics files were stored on my computer, what commands would I issue to be able to access the folder where the pics are stored to allow the touch panel to retrieve and display on screen?
local computer - 192.168.1.6
folder where pic are store - PICS
do I need to open a port using :
IP_CLIENT_OPEN(dvIPClient.PORT,'192.168.1.6',80,IP_TCP);
if so, once port is open then what?
local computer - 192.168.1.6
folder where pic are store - PICS
do I need to open a port using :
IP_CLIENT_OPEN(dvIPClient.PORT,'192.168.1.6',80,IP_TCP);
if so, once port is open then what?
Comments
This is called "Dynamic Images" the touch panel does all the work for you... Open up TPDesign4 and look for Dynamic Images in the help section.
// Here is the send command information on how to instruct the TP to get different images.
------------------------------------------------------------------------------ DYNAMIC IMAGE COMMANDS: ---------------------- (Note: A device must first be defined in the NetLinx programming language with values for the Device: Port: System (in all programming examples - Panel is used in place of these values)). "'^BBR-<vt addr range>,<button states range>,<resource name>'" Set the bitmap of a button to use a particular resource. Syntax: SEND_COMMAND <DEV>,"'^BBR-<vt addr range>,<button states range>,<resource name>'" Variables: variable text address range = 1 - 4000. button states range = 1 - 256 for multi-state buttons (0 = All states, for General buttons 1 = Off state and 2 = On state). resource name = 1 - 50 ASCII characters. Example: SEND_COMMAND Panel,"'^BBR-700,1,Sports_Image'" Sets the resource name of the button to 'Sports_Image'. "'^RAF-<resource name>,<data>'" Add new resources. Adds any and all resource parameters by sending embedded codes and data. See below for the Embedded Codes information. Parameter Embedded Codes Description protocol '%P<0-1>' Set Protocol. HTTP (0) or FTP (1). user '%U<user>' Set Username for authentication. password '%S<password>' Set Password for authentication. host '%H<host>' Set Host name (fully qualified DNS or IP Address). path '%A<path>' Set Image file path. Set Directory path. The path must be a valid HTTP URL minus the protocol, host, and filename. The only exception to this is the inclusion of special escape sequences and in the case of the FTP protocol, regular expressions. file '%F<file>' Set Image name. Full path to the location of the file or program that will return the resource. The path must be a valid HTTP URL minus the protocol and host. The only exception to this is the inclusion of special escape sequences and in the case of the FTP protocol, regular expressions. refresh '%R<refresh 1-65535>' Set Refresh rate (in seconds). The number of seconds between refreshes in which the resource is downloaded again. Refreshing a resource causes the button displaying that resource to refresh also. The default value is 0 (only download the resource once). newest '%N<0-1>' Set the newest file. A value of 1 means that only the most recent file matching the pattern is downloaded. preserve '%V<0-1> Set the value of the preserve flag. Default is 0. Currently preserve has no function. Syntax: SEND_COMMAND <DEV>,"'^RAF-<resource name>,<data>'" Variables: resource name = 1 - 50 ASCII characters. data = Refer to the Embedded Codes table information. Example: SEND_COMMAND Panel,"'^RAF-New Image,%P0%HAMX.COM%ALab/Test_file%Ftest.jpg'" Adds a new resource. The resource name is 'New Image', %P (protocol) is an HTTP, %H (host name) is AMX.COM, %A (file path) is Lab/Test file, and %F (file name) is test.jpg. "'^RFR-<resource name>'" Force a refresh for a given resource. Syntax: SEND_COMMAND <DEV>,"'^RFR-<resource name>'" Variables: resource name = 1 - 50 ASCII characters. Example: SEND_COMMAND Panel,"'^RFR-Sports_Image'" Forces a s refresh on 'Sports_Image'. "'^RMF-<resource name>'" Modify an existing resource. Syntax: SEND_COMMAND <DEV>,"'^RMF-<resource name>,<data>'" Variables: resource name = 1 - 50 ASCII characters. data = Refer to the Embedded Codes table information. Example: SEND_COMMAND Panel,"'^RMF-Sports_Image,%ALab_Test/Images%Ftest.jpg'" Changes the resource 'Sports_Image' file name to 'test.jpg' and the path to 'Lab_Test/Images'. "'^RSR-<resource name>,<refresh rate>'" Change the refresh rate for a given resource. Syntax: SEND_COMMAND <DEV>,"'^RSR-<resource name>,<refresh rate>'" Variables: resource name = 1 - 50 ASCII characters. refresh rate = Measured in seconds. Example: SEND_COMMAND Panel,"'^RSR-Sports_Image,5'" Sets the refresh rate to 5 seconds for the given resource ('Sports_Image').