07-14-2008 09:48 AM
Partial
Class MyForm Inherits System.Web.UI.Page Dim T_DS As NationalInstruments.Net.DataSocket = New NationalInstruments.Net.DataSocket() Protected Sub AutoRefresh1_Refresh(ByVal sender As Object, ByVal e As NationalInstruments.UI.RefreshEventArgs) Handles AutoRefresh1.RefreshTG.Value = T1_WS_DS.Data.Value
REM TG Is a gauge control
REM TG is registered in the update items of the autorefresh control
End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadT_DS.Url =
"opc://localhost/National Instruments.OPCLookoutDrivers/DL1.T"T_DS.Connect()
End SubEnd
Class07-16-2008 07:54 AM