18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

Notes<br />

This function must be executed on the RAS client station, not on the server station. (Essentially, the station<br />

gets its own IP address.)<br />

Also, this function is not supported on Windows 7.<br />

Examples<br />

Use the Phonebook Name "Office DialUp" and write the resulting IP address to ClientIPTag:<br />

DialGetClientIP( 0, "Office DialUp", "ClientIPTag" )<br />

Use the Modem Name "USRobotics_SportsterFaxModem," write the resulting IP address to ClientIPAddress,<br />

and refresh every second (that is, every time the system tag Second changes):<br />

DialGetClientIP( 1, "USRobotics_SportsterFaxModem", "ClientIPAddress", Second )<br />

Use the Direct Connection Name "DirectDial" and write the resulting IP address to IPAdd:<br />

DialGetClientIP( 2, "DirectDial", "IPAdd" )<br />

DialGetServerIP<br />

DialGetServerIP is a built-in scripting function that gets the IP address of a Remote Access Service (RAS)<br />

server station.<br />

Group Execution Windows Embedded Thin Client<br />

Dial-up Synchronous Supported (see Notes) Not Supported Supported<br />

Syntax<br />

DialGetServerIP({ numType | 0 | 1 | 2 },strPhoneBookOrModem,"tagServerIP"{ | ,optTagRefresh })<br />

numType<br />

The type of information specified by strPhoneBookOrModem: 0 is a Phonebook Name, 1 is a<br />

Modem Name, and 2 is a Direct Connection Name.<br />

strPhoneBookOrModem<br />

tagServerIP<br />

optTagRefresh<br />

The Phonebook Name, Modem Name, or Direct Connection Name used to make the connection.<br />

The name of a String tag that will receive the IP address.<br />

Note: The tag name must be enclosed in quotes, as shown in the syntax<br />

diagram, or else the project will try to get the value of the named tag.<br />

The name of a tag that, whenever the value of the tag changes, will trigger the function to<br />

refresh its returned value.<br />

Also, this parameter is optional but you must include it when you configure the function on an<br />

object animation such as Text Data Link or Position.<br />

Returned value<br />

This function returns the following possible values:<br />

<strong>InduSoft</strong> Web Studio Page 717

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!