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.

Database Interface<br />

Tip: The default option for each database is configured in the StADOSvr.ini file, stored<br />

in the \BIN sub-folder of IWS. See Studio Database Gateway for information about how to<br />

configure the StADOSvr.ini file.<br />

• Disable: Does not save the milliseconds at all when saving the date in the database.<br />

• Enable: Saves the milliseconds in the same field where the date is saved.<br />

• Separate Column: Saves the milliseconds in a separated column. In this case, the date is saved<br />

in one field (without the milliseconds precision) and the number of milliseconds is saved in a<br />

different column. This option is indicated where you want to save timestamps with the precision of<br />

milliseconds but the database that you are using does not support milliseconds for the Date fields.<br />

• Save time difference checkbox: When this option is checked (default), IWS saves the Time Zone configured<br />

in the computer where the project is running in each register of the database. This option must be<br />

enabled to avoid problems with daylight savings time.<br />

• Database Gateway: Enter the Host Name/IP Address where the IWS Database Gateway will be running.<br />

The TCP Port number can also be specified, but if you are not using the default, you will have to<br />

configure the IWS Database Gateway with the same TCP Port. See the Studio Database Gateway section<br />

for information about how to configure the advanced settings for the IWS ADO Gateway.<br />

• Disable Primary Keys: For some modules, IWS will try to define a primary key to the table in order to speed<br />

up the queries. If you are using a database that does not support primary keys (e.g., Microsoft Excel),<br />

then you should select (check) this option.<br />

• Disable Delimiters: Select this troubleshooting option to disable the delimiters that are used to format<br />

communications with the database. Delimiters can cause problems when a Trend Control or Grid<br />

builds a query that includes aggregates such as Min and Max.<br />

• Disable SQL variables: Select this troubleshooting option to disable SQL variables, such as @Value1 and ,<br />

that are often used in SQL statements and queries. Some specific database providers do not support<br />

these variables.<br />

Table Pane<br />

This area allows you to configure the settings of the Table where the data will be saved. All tasks can<br />

share the same database. However, each task (Alarm, Events, Trend worksheets) must be linked to its own<br />

Table. IWS does not check for invalid configurations on this field, therefore you should make sure that the<br />

configuration is suitable for the database that you are using.<br />

• Use default name checkbox: When this option is checked (default), IWS saves and/or retrieves the data in the<br />

Table with the default name written in the Name field.<br />

• Automatically create checkbox: When this option is checked (default), IWS creates a table with the name<br />

written in the Name field automatically. If this option is not checked, IWS does not create the table<br />

automatically. Therefore, it will not be able to save data in the database, unless you have configured a<br />

table with the name configured in the Name field manually in the database.<br />

• Name: Specifies the name of the Table from the database where the history data will be saved.<br />

Tip: To specify a sheet in a Microsoft Excel spreadsheet file, use the following syntax:<br />

[sheetname$]<br />

• Refresh button: If the database configured is currently available, you can press the Refresh button to<br />

populate the Name combo-box with the name of the tables currently available in the database. In this<br />

way, you can select the table where the history data should be saved instead of writing the Table name<br />

manually in the Name field.<br />

Run-Time Pane<br />

This area allows you set runtime values. The following fields are available:<br />

• Status (output) checkbox: The tag in this field will receive one of the following values:<br />

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

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

Saved successfully!

Ooh no, something went wrong!