23.5.2   Download user-defined files to VIEW clients

Users can predefine files to be downloaded to client computers from a SCADA node when View clients connect to the SCADA node by adding a "download" section into bwserver.ini on the SCADA node. This feature may be useful when users implement their own flash objects or user-defined DLL with VIEW/ViewDAQ and extra data files are needed by the flash or DLL on Client computers.  The location of these files should be a subdirectory of WebAccess\Node.

 Using the "download" section listed below as an example, all files in WebAccess\Node\test directory on the SCADA node will be downloaded to WebAccess\Client\testc directory on the client computer and all files with extension ".dat" in WebAccess\Node\YourProject_YourNode\test1 directory will be downloaded to WebAccess\Client\YourProject_YourNode\testc2 directory. The directories specified for Client computers will be created automatically if they do not exist.

 

[download]

 

no=2

source_1=..\test

destination_1=..\testc

fileext_1=*.*

 

source_2=test1

destination_2=testc2

fileext_2=*.dat

 

Add Downlaod in BWSERVER.INI

 

1.      Open Explorer.  Right Click Start -> Explore

2. Go to drive:\WebAccess\Node 
(typically C:\WebAccess\Node)

3.      Right Click on bwserver.ini

4.      Select Open with…

5.      Select Notepad.

6.      Typical BWSERVER.INI file looks like:

 

[language]

type=1

 

[nodetype]

type=0

 

[www]

root=d:\inetpub\wwwroot

 

[smtp]

smarthost=mail.yourcompany.com

port=0

 

[port]

web_rpc_port=0

web_socket_port=0

 

[security]

code=remoteaccesscode

 

 

 

7.      Insert the following:

 [download]

 no=2

source_1=..\test

destination_1=..\testc

fileext_1=*.*

 

source_2=test1

destination_2=testc2

fileext_2=*.dat

 

8.        Save the bwserver.ini file

9.   Restart the SCADA Node.