18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

Syntax<br />

GetNetMACID( "optTagMACID", "optTagAdapterName" )<br />

optStrMACID<br />

Name of a string tag, which receives the MAD ID of the network adapter. If there is more than<br />

one network adapter currently installed in the station, the user can configure a string array tag<br />

in this parameter, so each array position receives the MAC ID from one network adapter.<br />

optStrAdapterName<br />

Name of a string tag, which receives the name of the network adapter. If there is more than<br />

one network adapter currently installed in the station, the user can configure a string array<br />

tag in this parameter, so each array position receives the name from one network adapter. This<br />

parameter is optional.<br />

Returned value<br />

Value<br />

Description<br />

>0 Number of network adapters found.<br />

0 No network adapters found.<br />

-1 Invalid number of parameters.<br />

-2 One of the parameters is not string type.<br />

-3 Tag configured in optTagMACID does not exist.<br />

-4 Tag configured in optTagAdapterName does not exist.<br />

Examples<br />

Tag Name<br />

NumNIC<br />

NumNIC<br />

NumNIC<br />

Expression<br />

GetNetMACID("MACIDTag")<br />

GetNetMACID("MACIDTag", "AdapterName")<br />

GetNetMACID("MACIDTag[1]", "AdapterName[1]")<br />

GetOS<br />

Reports the current operating system.<br />

Function Group Execution Windows Embedded Thin Client<br />

GetOS System Info Synchronous Supported Supported Supported<br />

Syntax<br />

GetOS()<br />

This function takes no parameters.<br />

Returned value<br />

0 Windows 3.11<br />

1 Windows 95/98/ME<br />

2 Windows 2000/XP/Vista/7<br />

3 Windows CE/Mobile<br />

Page 664<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!