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.

Background Tasks<br />

ODBC worksheet<br />

The ODBC interface runs in a network environment and uses the standard Windows ODBC configuration. The<br />

ODBC task is capable of data interchange between IWS and any database supporting this interface.<br />

Note: In addition to configuring the ODBC worksheet, you must configure the Windows ODBC<br />

standard driver. IWS refers to the User DSN (Data Source Name), which you configure through the<br />

Control Panel. For more information, refer to your Windows documentation.<br />

Also, the ODBC interface is not available for projects running on Windows Embedded target<br />

systems.<br />

To create a new ODBC worksheet, do one of the following:<br />

• On the Insert tab of the ribbon, in the Task Worksheets group, click ODBC;<br />

• Right-click the ODBC folder in the Project Explorer, and then click Insert on the shortcut menu; or<br />

• Click New on the Application menu, click the File tab, and then select ODBC Worksheet.<br />

To edit an existing ODBC worksheet, double-click it in the Project Explorer.<br />

A new worksheet displays, as follows.<br />

ODBC worksheet<br />

ODBC worksheets are executed under the ODBC Runtime task. However, creating a new worksheet does not<br />

automatically enable the task; you must use the Execution Tasks dialog (Tasks on the Home tab of the ribbon)<br />

to configure the task to start at runtime. For more information, please see Execution Tasks.<br />

The ODBC worksheet is divided into two areas:<br />

• Header area (top section), which contains information for the whole group, defines tags to start read and<br />

write events, sets return values, handles database access parameters, and so forth; and<br />

• Body area (bottom section), where you define each tag in the group and relate tags to fields in the current<br />

register from the database table.<br />

Use the Header parameters on this worksheet as follows:<br />

• Description field: Type a description of the worksheet for documentation purposes.<br />

• Data Source Name field: Type the same Data Source Name (DNS) specified in the Windows Control Panel<br />

containing information about specific database access.<br />

• User field: Type a user name to access to the database.<br />

• Password field: Type the user's password.<br />

• Table field: Type a table name in the database.<br />

• Condition field: Type a search condition or filter.<br />

• Status field: Type a return value (fill in with a tag name). The tag should report 0 for success and use<br />

another value for an error code.<br />

Page 312<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!