FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Testing if FP-1000 is powered up

When using the FP-1000, Measurement Studio,VB 6.0 and Datasocket, how can I test to see if the FP-1000 is powered up before connecting to FieldPoint modules.
When executing CWDS_DI1(0).ConnectTo "opc://localhost/National Instruments.OPCFieldPoint/FP Res\FP-DI-330 @1\All", cwdsReadAutoUpdate on an un-powered FP-1000, is there an error message returned or some other way to determine if the FP-1000 is powered up?
Thank you in advance for your help
0 Kudos
Message 1 of 4
(3,729 Views)
If a FP-1000/1001 is not powered on, you will receive a "No Response within timeout period error". I do not know the specific error code off the top of my head.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 2 of 4
(3,729 Views)
Maybe I'm missing something but I tried the usual VB error handling and no errors occur when the FP-1000 is not powered up with the following code:

On Error Resume Next
CWDS_DI1(0).ConnectTo "opc://localhost/National Instruments.OPCFieldPoint/FP Res\FP-DI-330 @1\All", cwdsReadAutoUpdate
If Err.Number <> 0 Then MsgBox "Connect:" + CStr(Err.Number)

What am I doing wrong?
Is error handeling different for DataSocket controls (ie. CWDataSocket1) than it is for typical NI Controls (ie. CWDI)?
0 Kudos
Message 3 of 4
(3,729 Views)
Sorry, my bad for not further clarifying. The error is reported as part of the Data Quality. Because the OPC Server itself is working even though the FP-1000 module is not online, the OPC Server will return data and not directly report an error, instead it says that the quality of the data is no good. I suggest that you take a look at App Note 139. App Note 139 talks about using DataSockets in Visual Basic as an OPC client and includes information on how to use the data quality. This information will be applicable to most programming environments that you use DataSockets in.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 4 of 4
(3,729 Views)