If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > Basic OPC problem with GetOPCItem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-11, 17:32
AmazingTrans AmazingTrans is offline
Registered User
 
Join Date: Jun 2011
Posts: 1
Question Basic OPC problem with GetOPCItem

Hi gurus,

I wrote a basic web app to communicate with the opc server. I am able to connect to the server, but i can't get the value from opc, i am not sure what to fill in the serverhandle. and from the specs, the example uses SET, which doesn't exist anymore in the asp and vb.net. what should i replace it with?

for eg:
TextBox2.Text = ConnectedGroup.OPCItems.GetOPCItem(serverhandle)

Below is the specs example for OPC.
Quote:
Dim AnOPCItem as OPCItem
Set OPCItem=GetOPCItem(SomeItemServerHandle)
Dim Source as Integer
Dim Value as Variant
Dim Quality as Variant
Dim TimeStamp as Variant
Source=OPC_DS_DEVICE
AnOPCItem.Read Source,ServerHandles,Value,Quality,TimeStamp
'process the values
TextBox.Text=Value
Hope to hear from someone.

Thanks!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On