FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing output voltage to FP-AO-210 module

Dear Sir
I am writing the following code for writing the voltage to the FP-AO-210 eight channel analog output voltage module.

Dim v As Variant
'when connect button is pressed
Private Sub cmdConnect_Click()
CWDataSocket1.AccessMode = cwdsWrite
CWDataSocket1.URL = "opc://localhost/National Instruments.OPCFieldPoint/FP Res\FP-AO-210 @3\Channel 0"
CWDataSocket1.Connect
v = CDbl(Text1.Text)
CWDataSocket1.Data.Value = v
End Sub

'when disconnect button is pressed
Private Sub cmdDisconnect_Click()
CWDataSocket1.Disconnect
End Sub

There are two buttons Connect and Disconnect. Whenever the connect button is pressed the value entered in the text box should be outputted to the FP-AO-210 module
at channel 0. and gets disconnected when the disconnect button is pressed. I am writing the code with the help of OPC server. But i am not getting the voltage. What could be the possible error in the code or any configuration has to be made using Field Point explorer module.
0 Kudos
Message 1 of 2
(3,115 Views)
Hello,

It is possible that your code is fine, but that your hardware configuration is incorrect. I recommend that you download the Server Explorer application from our website. This application will allow you to monitor all of the channels of the OPC server on your machine which will include the channels of your FP-AO-210. This will allow you to monitor the values of each channel and determine if your hardware configuration is correct. Also, if you have not yet upgraded to the latest FP driver, you may wanted to consider upgrading. Here are links to download the Server Explorer and the latest FieldPoint driver.

Server Explorer:
http://digital.ni.com/softlib.nsf/websearch/34E67FA9F8FF7A0686256AE60054198C?opendocument&node=132070_US

FieldPoint 4.0.1
htt
p://digital.ni.com/softlib.nsf/websearch/E1869C0611048EA886256DB9004DD2C7?opendocument&node=132070_US

Regards,
Bill B
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,115 Views)