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.

Troubleshooting<br />

Frequently Asked Questions<br />

Database & Security System<br />

Q. What does the Shared Tags folder store<br />

A. The Shared Tags folder stores the tags imported from the PC-based Control linked to the IWS project. The<br />

PC-based Control is linked to the project by the New Project wizard.<br />

Q. How do I count how many tags are configured in the project database<br />

A. The number of tags currently used in the project is displayed in the status bar at the bottom of the<br />

development environment. Each array position and each class member of the tags configured in the IWS tag<br />

database are counted.<br />

Q. How do I see the list of "Users" I've added during runtime in my project that I have created with the<br />

CreateUser() function<br />

A. Execute the following command: "Studio Path\BIN\Studio Manager.exe" "Studio Path\BIN<br />

\ExtUser.dll" (for example: "E:\Program Files\Studio\BIN\Studio Manager.exe" "E:\Program<br />

Files\Studio\BIN\ExtUser.dll" ). This command will launch a dialog. You can see the users created by<br />

the CreateUser() function, and you can then create or delete users.<br />

Graphics<br />

Q. How do I insert and configure an ActiveX object in a project<br />

A. To insert an ActiveX object in a project screen:<br />

1. On the Graphics tab of the ribbon, in the Libraries group, click ActiveX Control.<br />

2. Select the ActiveX control that you want to insert from the list, and then click OK. The ActiveX object will<br />

then appear on the screen. (Unregistered ActiveX objects will not be available in this list box.)<br />

3. Double-click on the ActiveX object and assign a name to it (enter a value in the Name field). The animations<br />

and methods list can be viewed by selecting the Methods button. The static properties can be set by the<br />

Properties button (A detailed description about the objects properties can be found in the component<br />

documentation, provided by the component developer).<br />

There are three functions to access the ActiveX component during runtime:<br />

• XGet(strName,strProperties): Returns the value of the properties strProperties from the object<br />

strName. The list of properties which can be read from the object are listed in the Object Properties dialog<br />

from the object, with the syntax Properties Name(PropGet) (for example, Color(PropGet) ).<br />

• XSet(strName,strProperties,Value): Writes the value Value to the properties strProperties of<br />

the object strName. The list of properties which can be set to the object are listed in the Object Properties<br />

dialog from the object, with the syntax Properties Name(PropPut) (for example, Color(PropPut) ).<br />

• XRun(strName, strMethod, Parameter1, Parameter2, …, ParameterN): Executes the method<br />

strMethod from the object strName, according to the parameters Parameter1, Parameter2, …,<br />

ParameterN. The list of methods available in the object is listed in the Object Properties dialog from the<br />

object, with the syntax Method Name(Method) (for example, OpenFile(Method) ).<br />

Tip: Before inserting an ActiveX control (usually an OCX file) into the project, make sure it has<br />

been properly registered in the computer. To register an ActiveX control from with the development<br />

application, click Register Controls on the Home tab of the ribbon.<br />

Note: The amount of parameters set in the XRun() function can vary from 0 up to 255 and it<br />

depends each the ActiveX component. It's possible to use tags to set the parameters; however, the<br />

tag type must match the component parameter type (Boolean, integer, string or real).<br />

Q. How do I designate one screen that will open each time I start the project<br />

A. On the Project tab of the ribbon, in the Settings group, click Viewer, and then in the Project Settings dialog,<br />

type the startup screen name in the Startup screen box.<br />

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

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

Saved successfully!

Ooh no, something went wrong!