G2 Slot Example
1. Ensure that the config file for the IDX DB to which a connection is to be made contains the following slots entries:
"DEMO_FLOAT_1", IDX_FLOAT
"DEMO_FLOAT_2", IDX_FLOAT
"DEMO_STRING_1", IDX_STR
"DEMO_BIT_1", IDX_BIT
"DEMO_DWORD_1", IDX_DWORD
These entries can be configured using the IDX Configuration Utility.
2. Start the IDX DB service, and connect IDX-DEMO-RT to it (select the idx-connect menu choice). Confirm that the poll-external-system-for-data of IDX-DEMO-RT is yes, and the interval-to-poll-external-system of IDX-DEMO-RT is 5 seconds.
3. Get the handles for all the demo idx-slot-vars (click on the Get Handles button). This would normally get done only once, at KB startup, say.
5. To register all the demo idx-slot-vars with the IDX GSI DM, update all of them (click on the Register button). IDX will now deliver new (changed) values to these variables when polled by G2.
6. Calculate some random values to be set to the IDX Slots (push the button). Note that the values are not written directly to the idx-slot-vars, but rather to their value-to-set attributes.
7. Set the new values to IDX (click the Set Values button and examine the procedure to see how this process is being performed). It should be possible to see the idx-slot-vars' values being updated the next time G2 polls IDX.
8. Repeat 6 & 7 as required.
All other database examples can be executed and the procedure source examined in the same manner. The method by which to use the other database examples is also available from within the G2 IDX demonstration workspace.