FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming FP-AO-210 using OPC Client

Dear Sir
I am programming FP-AO-210 using OPC Client program using VB 6.0 I have made two buttong one for connect and other for Disconnect.The purpose is whatever value
is wriiten in the text box should be outputted to the analog output module when the connect button is pressed.

Dim value as variant

Private Sub cmdConnect_Click()
'socket for reading data from channel 0
CWDataSocket1.AccessMode = cwdsWriteAutoUpdate
CWDataSocket1.URL = "opc://localhost/National Instruments.OPCFieldPoint/FP Res\FP-AO-210 @3\Channel 0"
CWDataSocket1.Connect
value = CDbl(Text1.Text)
CWDataSocket1.Data.value = value
End Sub

'disconnecting from the network
Private Sub cmdDisconnect_Click()
CWDataSocket1.Disc
onnect
End Sub

But I am not getting any response i.e I am not getting any output from the FP-AO-210 module. What could be the possible problem and the solution for that at the earliest.
0 Kudos
Message 1 of 2
(2,976 Views)
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000F3C20000&USEARCHCONTEXT_CATEGORY_0=_18_%24_17_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_18_%24_17_&UCATEGORY_S=0
0 Kudos
Message 2 of 2
(2,976 Views)