Programming

Dynamic Image Commands (Cont.)

^RAF

Add new resources.

Adds any and all resource parameters by sending embedded codes and data. Syntax:

"'^RAF-<resource name>,<data>'"

Variable:

resource name = 1 - 50 ASCII characters.

data = Refers to the embedded codes, see table below.

 

Embedded Codes:

 

 

 

 

 

 

Parameter

Embedded Code

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).

 

 

 

 

 

 

 

 

file

’%F<file>’

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.

 

 

 

 

 

path

’%A<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.

 

 

 

 

 

refresh

’%R<refresh 1-65535>’

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.

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.

154

MVP-8400i Modero Viewpoint Wireless Touch Panels

Page 164
Image 164
AMX MVP-8400i manual RAF-resource name,data